8 #ifndef META_OCEAN_TEST_TESTCV_TEST_FRAME_BLENDER_H
9 #define META_OCEAN_TEST_TESTCV_TEST_FRAME_BLENDER_H
36 static bool test(
const double testDuration,
Worker& worker);
53 template <
bool tTransparentIs0xFF>
63 template <
bool tTransparentIs0xFF>
73 template <
bool tTransparentIs0xFF>
85 template <
bool tTransparentIs0xFF>
95 template <
bool tTransparentIs0xFF>
109 template <
bool tTransparentIs0xFF>
123 template <
bool tTransparentIs0xFF>
140 template <
bool tTransparentIs0xFF>
141 static bool validateBlendResult(
const Frame& sourceWithAlpha,
const Frame& target,
const Frame& blendResult,
const unsigned int sourceLeft,
const unsigned int sourceTop,
const unsigned int targetLeft,
const unsigned int targetTop,
const unsigned int width,
const unsigned int height);
This class implements Ocean's image class.
Definition: Frame.h:1792
PixelFormat
Definition of all pixel formats available in the Ocean framework.
Definition: Frame.h:183
This class implements a test for the frame blender class.
Definition: TestFrameBlender.h:27
static bool testSeparateAlphaChannelSubFrame(const double testDuration, Worker &worker)
Tests the blending two images with a separate alpha channel.
static bool test(const double testDuration, Worker &worker)
Tests the frame blender functions.
static bool testConstantAlpha(const double testDuration, Worker &worker)
Tests the blending two images with constant alpha value.
static bool validateBlendResult(const Frame &sourceWithAlpha, const Frame &target, const Frame &blendResult, const unsigned int sourceLeft, const unsigned int sourceTop, const unsigned int targetLeft, const unsigned int targetTop, const unsigned int width, const unsigned int height)
Validates the blend function with alpha channel.
static bool testSeparateAlphaChannel(const double testDuration, Worker &worker)
Tests the blending two images with a separate alpha channel.
static bool testFullFrame(const FrameType::PixelFormat sourcePixelFormat, const FrameType::PixelFormat targetPixelFormat, const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the transparent blend function.
static bool testBlend(const double testDuration, Worker &worker)
Tests the blend function with alpha channel at the front or at the back.
static bool testBlendWithConstantValue(const double testDuration, Worker &worker)
Tests the blend function with constant value.
static bool testSubFrame(const FrameType::PixelFormat sourcePixelFormat, const FrameType::PixelFormat targetPixelFormat, const unsigned int targetWidth, const unsigned int targetHeight, const double testDuration, Worker &worker)
Tests the sub-region transparent blend function.
static bool testSeparateAlphaChannelFullFrame(const double testDuration, Worker &worker)
Tests the blending two images with a separate alpha channel.
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