8 #ifndef META_OCEAN_CV_FRAME_CONVERTER_R_G_B_24_H
9 #define META_OCEAN_CV_FRAME_CONVERTER_R_G_B_24_H
60 static inline void convertR_G_B24ToRGB24(
const uint8_t* rSource,
const uint8_t* gSource,
const uint8_t* bSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int rSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int bSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
77 static inline void convertR_G_B24ToBGR24(
const uint8_t* rSource,
const uint8_t* gSource,
const uint8_t* bSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int rSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int bSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
80 inline void FrameConverterR_G_B24::convertR_G_B24ToRGB24(
const uint8_t* rSource,
const uint8_t* gSource,
const uint8_t* bSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int rSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int bSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker)
82 ocean_assert(rSource !=
nullptr && gSource !=
nullptr && bSource !=
nullptr && target !=
nullptr);
84 const int options[4] =
87 int(rSourcePaddingElements), int(gSourcePaddingElements), int(bSourcePaddingElements), int(targetPaddingElements)
90 const void* sources[3] =
97 FrameConverter::convertArbitraryPixelFormat(sources, (
void**)(&target), width, height, flag, 1u, FrameConverter::mapOneRow_3Plane1Channel_To_1Plane3Channels_8BitPerChannel<0u, 1u, 2u>, options, worker);
100 inline void FrameConverterR_G_B24::convertR_G_B24ToBGR24(
const uint8_t* rSource,
const uint8_t* gSource,
const uint8_t* bSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int rSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int bSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker)
102 ocean_assert(rSource !=
nullptr && gSource !=
nullptr && bSource !=
nullptr && target !=
nullptr);
104 const int options[4] =
107 int(rSourcePaddingElements), int(gSourcePaddingElements), int(bSourcePaddingElements), int(targetPaddingElements)
110 const void* sources[3] =
117 FrameConverter::convertArbitraryPixelFormat(sources, (
void**)(&target), width, height, flag, 1u, FrameConverter::mapOneRow_3Plane1Channel_To_1Plane3Channels_8BitPerChannel<2u, 1u, 0u>, options, 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
static void convertArbitraryPixelFormat(const void **sources, void **targets, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int multipleRowsPerIteration, const MultipleRowsConversionFunction multipleRowsConversionFunction, const void *options, Worker *worker)
Converts a frame with arbitrary pixel format (e.g., Y_UV12, Y_VU12, YUYV16, ...) to a frame with arbi...
Definition: FrameConverter.h:3234
This class provides functions to convert frames with R_G_B24 pixel format.
Definition: FrameConverterR_G_B24.h:42
static void convertR_G_B24ToRGB24(const uint8_t *rSource, const uint8_t *gSource, const uint8_t *bSource, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int rSourcePaddingElements, const unsigned int gSourcePaddingElements, const unsigned int bSourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a R_G_B24 frame to a 24 bit RGB frame into a second image buffer.
Definition: FrameConverterR_G_B24.h:80
static void convertR_G_B24ToBGR24(const uint8_t *rSource, const uint8_t *gSource, const uint8_t *bSource, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int rSourcePaddingElements, const unsigned int gSourcePaddingElements, const unsigned int bSourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a R_G_B24 frame to a 24 bit BGR frame into a second image buffer.
Definition: FrameConverterR_G_B24.h:100
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