8#ifndef META_OCEAN_CV_FRAME_CONVERTER_BGR_32_H 
    9#define META_OCEAN_CV_FRAME_CONVERTER_BGR_32_H 
   42        static inline void convertBGR32ToRGB24(
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);
 
   56        static inline void convertBGR32ToRGBA32(
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, 
const uint8_t alphaValue = 0xFF, 
Worker* worker = 
nullptr);
 
 
   61    ocean_assert(source != 
nullptr && target != 
nullptr);
 
   62    ocean_assert(width >= 1u && height >= 1u);
 
   68    constexpr unsigned int shufflePattern = 0x012u;
 
   70    FrameChannels::shuffleChannels<uint8_t, 4u, 3u, shufflePattern>(source, target, width, height, flag, sourcePaddingElements, targetPaddingElements, worker);
 
 
   75    ocean_assert(source != 
nullptr && target != 
nullptr);
 
   76    ocean_assert(width >= 1u && height >= 1u);
 
   82    constexpr unsigned int shufflePattern = 0x012u;
 
   84    FrameChannels::shuffleChannelsAndSetLastChannelValue<uint8_t, 4u, 4u, shufflePattern>(source, alphaValue, target, width, height, flag, sourcePaddingElements, targetPaddingElements, worker);
 
 
This class provides functions to convert or to change frames with RGB pixel format.
Definition FrameConverterBGR32.h:28
static void convertBGR32ToRGBA32(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, const uint8_t alphaValue=0xFF, Worker *worker=nullptr)
Converts a BGR 32 bit frame to a RGBA 32 bit frame.
Definition FrameConverterBGR32.h:73
static void convertBGR32ToRGB24(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 BGR 32 bit frame to a RGB 24 bit frame.
Definition FrameConverterBGR32.h:59
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 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