8 #ifndef META_OCEAN_CV_FRAME_CONVERTER_Y16_H
9 #define META_OCEAN_CV_FRAME_CONVERTER_Y16_H
40 static inline void convertY16ToY8(
const uint16_t* source, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag conversionFlag,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
43 inline void FrameConverterY16::convertY16ToY8(
const uint16_t* source, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag conversionFlag,
const unsigned int sourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker)
45 ocean_assert(source !=
nullptr && target !=
nullptr);
46 ocean_assert(width != 0u && height != 0u);
static void narrow16BitPerChannelTo8BitPerChannel(const uint16_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag conversionFlag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Narrows 16 bit channels of a frame to 8 bit channels.
Definition: FrameChannels.h:3938
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 Y16 pixel format.
Definition: FrameConverterY16.h:26
static void convertY16ToY8(const uint16_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag conversionFlag, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a Y16 bit frame linearly to a Y8 bit frame.
Definition: FrameConverterY16.h:43
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