Ocean
testlibyuv/TestFrameConverterRGBA32.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_TEST_TESTCV_TESTLIBYUV_TEST_FRAME_CONVERTER_RGBA_32_H
9 #define META_OCEAN_TEST_TESTCV_TESTLIBYUV_TEST_FRAME_CONVERTER_RGBA_32_H
10 
12 
13 namespace Ocean
14 {
15 
16 namespace Test
17 {
18 
19 namespace TestCV
20 {
21 
22 namespace TestLibyuv
23 {
24 
25 /**
26  * This class tests/benchmarks the performance of the frame converter function of libyuv for RGBA32 frames.
27  * @ingroup testcvlibyuv
28  */
29 class OCEAN_TEST_CV_LIBYUV_EXPORT TestFrameConverterRGBA32
30 {
31  public:
32 
33  /**
34  * Benchmarks the performance of libyuv agains Ocean for frame converter functions.
35  * @param testDuration Number of seconds for each test, with range (0, infinity)
36  * @param skipValidation True, to skip the validation
37  */
38  static void test(const double testDuration, const bool skipValidation = false);
39 
40  /**
41  * Benchmarks the conversion from RGBA32 frames to Y8 frames.
42  * @param testDuration Number of seconds for each test, with range (0, infinity)
43  * @param skipValidation True, to skip the validation
44  * @return True, if succeeded
45  */
46  static bool testConvertRGBA32ToY8(const double testDuration, const bool skipValidation = false);
47 };
48 
49 }
50 
51 }
52 
53 }
54 
55 }
56 
57 #endif // META_OCEAN_TEST_TESTCV_TESTLIBYUV_TEST_FRAME_CONVERTER_RGBA_32_H
This class tests/benchmarks the performance of the frame converter function of libyuv for RGBA32 fram...
Definition: testlibyuv/TestFrameConverterRGBA32.h:30
static void test(const double testDuration, const bool skipValidation=false)
Benchmarks the performance of libyuv agains Ocean for frame converter functions.
static bool testConvertRGBA32ToY8(const double testDuration, const bool skipValidation=false)
Benchmarks the conversion from RGBA32 frames to Y8 frames.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15