Ocean
Loading...
Searching...
No Matches
testlibyuv/TestFrameConverterBGRA32.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_BGRA_32_H
9#define META_OCEAN_TEST_TESTCV_TESTLIBYUV_TEST_FRAME_CONVERTER_BGRA_32_H
10
12
13namespace Ocean
14{
15
16namespace Test
17{
18
19namespace TestCV
20{
21
22namespace TestLibyuv
23{
24
25/**
26 * This class tests/benchmarks the performance of the frame converter function of libyuv for BGRA32 frames.
27 * @ingroup testcvlibyuv
28 */
29class OCEAN_TEST_CV_LIBYUV_EXPORT TestFrameConverterBGRA32
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 BGRA32 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 testConvertBGRA32ToY8(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_BGRA_32_H
This class tests/benchmarks the performance of the frame converter function of libyuv for BGRA32 fram...
Definition testlibyuv/TestFrameConverterBGRA32.h:30
static bool testConvertBGRA32ToY8(const double testDuration, const bool skipValidation=false)
Benchmarks the conversion from BGRA32 frames to Y8 frames.
static void test(const double testDuration, const bool skipValidation=false)
Benchmarks the performance of libyuv agains Ocean for frame converter functions.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15