8#ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_CONVERTER_Y_U_V_12_H
9#define META_OCEAN_TEST_TESTCV_TEST_FRAME_CONVERTER_Y_U_V_12_H
234 static bool validateY_U_V12ToY_UV12(
const uint8_t* ySource,
const uint8_t* uSource,
const uint8_t* vSource,
const uint8_t* yTarget,
const uint8_t* uvTarget,
const unsigned int width,
const unsigned int height,
const unsigned int ySourcePaddingElements,
const unsigned int uSourcePaddingElements,
const unsigned int vSourcePaddingElements,
const unsigned int yTargetPaddingElements,
const unsigned int uvTargetPaddingElements,
const unsigned int ySourcePixelStride,
const unsigned int uSourcePixelStride,
const unsigned int vSourcePixelStride);
ConversionFlag
Definition of individual conversion flags.
Definition FrameConverter.h:40
This class implements Ocean's image class.
Definition Frame.h:1969
This class implements a matrix with arbitrary size.
Definition Matrix.h:63
This class implements a Y_U_V 12bit frame converter test.
Definition TestFrameConverterY_U_V12.h:34
static bool testY_U_V12ToYVU24(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12 to YVU24 conversion.
static bool validateY_U_V12ToY_UV12(const uint8_t *ySource, const uint8_t *uSource, const uint8_t *vSource, const uint8_t *yTarget, const uint8_t *uvTarget, const unsigned int width, const unsigned int height, const unsigned int ySourcePaddingElements, const unsigned int uSourcePaddingElements, const unsigned int vSourcePaddingElements, const unsigned int yTargetPaddingElements, const unsigned int uvTargetPaddingElements, const unsigned int ySourcePixelStride, const unsigned int uSourcePixelStride, const unsigned int vSourcePixelStride)
Validates the Y_U_V12 to Y_UV12 conversion.
static bool testY_U_V12LimitedRangeToY8LimitedRange(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_LIMITED_RANGE to Y8_LIMITED_RANGE conversion.
static bool testY_U_V12LimitedRangeToY8FullRange(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_LIMITED_RANGE to Y8_FULL_RANGE conversion.
static bool testY_U_V12ToYUV24(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12 to YUV24 conversion.
static bool testY_U_V12LimitedRangeToBGR24FullRange(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_LIMITED_RANGE to BGR24 (full range) conversion.
static bool testY_U_V12FullRangeToRGB24FullRangePrecision6Bit(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_FULL_RANGE to RGB24 (full range) conversion.
static bool testY_U_V12LimitedRangeToRGBA32FullRangePrecision6Bit(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_LIMITED_RANGE to RGBA32 (full range) conversion with 6 bit precision.
static MatrixD pixelFunctionY_U_V12ForYUV24(const Frame &frame, const unsigned int x, const unsigned int y, const CV::FrameConverter::ConversionFlag conversionFlag)
Extracts one pixel from a Y_U_V12 source frame.
static bool testY_U_V12ToY_UV12(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the Y_U_V12 to Y_UV12 conversion.
static bool testY_U_V12FullRangeToBGR24FullRangePrecision6Bit(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_FULL_RANGE to BGR24 (full range) conversion.
static bool testY_U_V12ToY_U_V12(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12 to Y_U_V12 conversion.
static bool testY_U_V12LimitedRangeToRGB24FullRangePrecision6Bit(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_LIMITED_RANGE to RGB24 (full range) conversion with 6 bit precision.
static bool testY_U_V12FullRangeToY8LimitedRange(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_FULL_RANGE to Y8_LIMITED_RANGE conversion.
static bool testY_U_V12LimitedRangeToRGB24FullRange(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_LIMITED_RANGE to RGB24 (full range) conversion.
static bool testY_U_V12LimitedRangeToBGRA32FullRangePrecision6Bit(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_LIMITED_RANGE to BGRA32 (full range) conversion with 6 bit precision.
static bool testY_U_V12FullRangeToY8FullRange(const unsigned int width, const unsigned int height, const CV::FrameConverter::ConversionFlag conversionFlag, const double testDuration, Worker &worker)
Tests the Y_U_V12_FULL_RANGE to Y8_FULL_RANGE conversion.
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker, const TestSelector &selector=TestSelector())
Tests all Y_U_V12 frame conversion functions.
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