Ocean
Loading...
Searching...
No Matches
TestFrameConverterThreshold.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_TEST_FRAME_CONVERTER_THRESHOLD_H
9#define META_OCEAN_TEST_TESTCV_TEST_FRAME_CONVERTER_THRESHOLD_H
10
12
13namespace Ocean
14{
15
16namespace Test
17{
18
19namespace TestCV
20{
21
22/**
23 * This class implements a frame converter threshold test.
24 * @ingroup testcv
25 */
26class OCEAN_TEST_CV_EXPORT TestFrameConverterThreshold
27{
28 public:
29
30 /**
31 * Tests all frame channels functions.
32 * @param width The width of the test frame in pixel, with range [1, infinity)
33 * @param height The height of the test frame in pixel, with range [1, infinity)
34 * @param testDuration Number of seconds for each test, with range (0, infinity)
35 * @param worker The worker object to distribute the computation
36 * @return True, if so
37 */
38 static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
39
40 /**
41 * Tests converter Y8 to binary.
42 * @param width The width of the test frame in pixel, with range [1, infinity)
43 * @param height The height of the test frame in pixel, with range [1, infinity)
44 * @param testDuration Number of seconds for each test, with range (0, infinity)
45 * @param worker The worker object to distribute the computation
46 * @return True, if succeeded
47 */
48 static bool testConvertY8ToB8(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
49
50 /**
51 * Tests in-place converter Y8 to binary.
52 * @param width The width of the test frame in pixel, with range [1, infinity)
53 * @param height The height of the test frame in pixel, with range [1, infinity)
54 * @param testDuration Number of seconds for each test, with range (0, infinity)
55 * @param worker The worker object to distribute the computation
56 * @return True, if succeeded
57 */
58 static bool testInPlaceConvertY8ToB8(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
59};
60
61}
62
63}
64
65}
66
67#endif // META_OCEAN_TEST_TESTCV_TEST_FRAME_CONVERTER_THRESHOLD_H
This class implements a frame converter threshold test.
Definition TestFrameConverterThreshold.h:27
static bool testConvertY8ToB8(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests converter Y8 to binary.
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests all frame channels functions.
static bool testInPlaceConvertY8ToB8(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests in-place converter Y8 to binary.
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
The namespace covering the entire Ocean framework.
Definition Accessor.h:15