8 #ifndef META_OCEAN_CV_FRAME_CONVERTER_YA_16_H
9 #define META_OCEAN_CV_FRAME_CONVERTER_YA_16_H
40 static inline void convertYA16ToBGRA32(
const uint8_t* source, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
53 static inline void convertYA16ToRGBA32(
const uint8_t* source, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
66 static inline void convertYA16ToY8(
const uint8_t* source, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
79 static inline void convertYA16ToYA16(
const uint8_t* source, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
84 ocean_assert(source !=
nullptr && target !=
nullptr);
85 ocean_assert(width >= 1u && height >= 1u);
91 constexpr
unsigned int shufflePattern = 0x1000u;
93 FrameChannels::shuffleChannels<uint8_t, 2u, 4u, shufflePattern>(source, target, width, height, flag, sourcePaddingElements, targetPaddingElements, worker);
98 ocean_assert(source !=
nullptr && target !=
nullptr);
99 ocean_assert(width >= 1u && height >= 1u);
105 constexpr
unsigned int shufflePattern = 0x1000u;
107 FrameChannels::shuffleChannels<uint8_t, 2u, 4u, shufflePattern>(source, target, width, height, flag, sourcePaddingElements, targetPaddingElements, worker);
112 ocean_assert(source !=
nullptr && target !=
nullptr);
113 ocean_assert(width >= 1u && height >= 1u);
115 FrameChannels::removeLastChannel<uint8_t, 2u>(source, target, width, height, flag, sourcePaddingElements, targetPaddingElements, worker);
120 ocean_assert(source !=
nullptr && target !=
nullptr);
121 ocean_assert(width >= 1u && height >= 1u);
123 FrameChannels::transformGeneric<uint8_t, 2u>(source, target, width, height, flag, sourcePaddingElements, targetPaddingElements, worker);
This is the base class for all frame converter classes.
Definition: FrameConverter.h:32
ConversionFlag
Definition of individual conversion flags.
Definition: FrameConverter.h:39
This class provides functions to convert frames with YA16 pixel format.
Definition: FrameConverterYA16.h:26
static void convertYA16ToRGBA32(const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a YA 16 bit frame to a RGBA 32 bit frame.
Definition: FrameConverterYA16.h:96
static void convertYA16ToY8(const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a YA 16 bit frame to a Y 8 bit frame.
Definition: FrameConverterYA16.h:110
static void convertYA16ToBGRA32(const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a YA 16 bit frame to a BGRA 32 bit frame.
Definition: FrameConverterYA16.h:82
static void convertYA16ToYA16(const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a YA 16 bit frame to a YA 16 bit frame.
Definition: FrameConverterYA16.h:118
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