8 #ifndef META_OCEAN_CV_FRAME_CONVERTER_B_G_R_24_H
9 #define META_OCEAN_CV_FRAME_CONVERTER_B_G_R_24_H
60 static inline void convertB_G_R24ToBGR24(
const uint8_t* bSource,
const uint8_t* gSource,
const uint8_t* rSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int bSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int rSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
77 static inline void convertB_G_R24ToRGB24(
const uint8_t* bSource,
const uint8_t* gSource,
const uint8_t* rSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int bSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int rSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker =
nullptr);
80 inline void FrameConverterB_G_R24::convertB_G_R24ToBGR24(
const uint8_t* bSource,
const uint8_t* gSource,
const uint8_t* rSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int bSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int rSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker)
82 ocean_assert(bSource !=
nullptr && gSource !=
nullptr && rSource !=
nullptr && target !=
nullptr);
84 const int options[4] =
87 int(bSourcePaddingElements), int(gSourcePaddingElements), int(rSourcePaddingElements), 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 FrameConverterB_G_R24::convertB_G_R24ToRGB24(
const uint8_t* bSource,
const uint8_t* gSource,
const uint8_t* rSource, uint8_t* target,
const unsigned int width,
const unsigned int height,
const ConversionFlag flag,
const unsigned int bSourcePaddingElements,
const unsigned int gSourcePaddingElements,
const unsigned int rSourcePaddingElements,
const unsigned int targetPaddingElements,
Worker* worker)
102 ocean_assert(bSource !=
nullptr && gSource !=
nullptr && rSource !=
nullptr && target !=
nullptr);
104 const int options[4] =
107 int(bSourcePaddingElements), int(gSourcePaddingElements), int(rSourcePaddingElements), 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 class provides functions to convert frames with B_G_R24 pixel format.
Definition: FrameConverterB_G_R24.h:42
static void convertB_G_R24ToRGB24(const uint8_t *bSource, const uint8_t *gSource, const uint8_t *rSource, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int bSourcePaddingElements, const unsigned int gSourcePaddingElements, const unsigned int rSourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a B_G_R24 frame to a 24 bit RGB frame into a second image buffer.
Definition: FrameConverterB_G_R24.h:100
static void convertB_G_R24ToBGR24(const uint8_t *bSource, const uint8_t *gSource, const uint8_t *rSource, uint8_t *target, const unsigned int width, const unsigned int height, const ConversionFlag flag, const unsigned int bSourcePaddingElements, const unsigned int gSourcePaddingElements, const unsigned int rSourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr)
Converts a B_G_R24 frame to a 24 bit BGR frame into a second image buffer.
Definition: FrameConverterB_G_R24.h:80
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 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