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
13#include "ocean/base/Worker.h"
14
16
17namespace Ocean
18{
19
20namespace Test
21{
22
23namespace TestCV
24{
25
26/**
27 * This class implements a frame converter threshold test.
28 * @ingroup testcv
29 */
30class OCEAN_TEST_CV_EXPORT TestFrameConverterThreshold
31{
32 public:
33
34 /**
35 * Tests all frame channels functions.
36 * @param width The width of the test frame in pixel, with range [1, infinity)
37 * @param height The height of the test frame in pixel, with range [1, infinity)
38 * @param testDuration Number of seconds for each test, with range (0, infinity)
39 * @param worker The worker object to distribute the computation
40 * @param selector The test selector to control which tests to run
41 * @return True, if so
42 */
43 static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker, const TestSelector& selector = TestSelector());
44
45 /**
46 * Tests converter Y8 to binary.
47 * @param width The width of the test frame in pixel, with range [1, infinity)
48 * @param height The height of the test frame in pixel, with range [1, infinity)
49 * @param testDuration Number of seconds for each test, with range (0, infinity)
50 * @param worker The worker object to distribute the computation
51 * @return True, if succeeded
52 */
53 static bool testConvertY8ToB8(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
54
55 /**
56 * Tests in-place converter Y8 to binary.
57 * @param width The width of the test frame in pixel, with range [1, infinity)
58 * @param height The height of the test frame in pixel, with range [1, infinity)
59 * @param testDuration Number of seconds for each test, with range (0, infinity)
60 * @param worker The worker object to distribute the computation
61 * @return True, if succeeded
62 */
63 static bool testInPlaceConvertY8ToB8(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
64};
65
66}
67
68}
69
70}
71
72#endif // META_OCEAN_TEST_TESTCV_TEST_FRAME_CONVERTER_THRESHOLD_H
This class implements a frame converter threshold test.
Definition TestFrameConverterThreshold.h:31
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, const TestSelector &selector=TestSelector())
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 test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
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