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);
120 ocean_assert(source !=
nullptr && target !=
nullptr);
121 ocean_assert(width >= 1u && height >= 1u);
static void shuffleChannels(const T *source, T *target, const unsigned int width, const unsigned int height, const ConversionFlag conversionFlag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Shuffles the channels of a frame by an arbitrary pattern.
Definition FrameChannels.h:4006
static void removeLastChannel(const T *source, T *target, const unsigned int width, const unsigned int height, const ConversionFlag conversionFlag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Removes the last channel from a given frame with zipped (generic) pixel format.
Definition FrameChannels.h:2907
static void transformGeneric(const T *source, T *target, const unsigned int width, const unsigned int height, const ConversionFlag conversionFlag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker)
Transforms a frame with generic pixel format (with zipped pixel information) like RGB24 or YUV24,...
Definition FrameChannels.h:4156
This is the base class for all frame converter classes.
Definition FrameConverter.h:33
ConversionFlag
Definition of individual conversion flags.
Definition FrameConverter.h:40
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
Namespace of the CV library.
Definition Advanced.h:17
The namespace covering the entire Ocean framework.
Definition Accessor.h:15