Go to the documentation of this file.
36 #ifndef RC_GENICAM_API_IMAGE
37 #define RC_GENICAM_API_IMAGE
93 std::unique_ptr<uint8_t []>
pixel;
168 void getColor(uint8_t rgb[3],
const std::shared_ptr<const Image> &img,
169 uint32_t ds, uint32_t i, uint32_t k);
188 bool convertImage(uint8_t *rgb_out, uint8_t *mono_out,
const uint8_t *raw, uint64_t pixelformat,
189 size_t width,
size_t height,
size_t xpadding);
The buffer class encapsulates a Genicam buffer that is provided by a stream.
The image class encapsulates image information.
bool isFormatSupported(uint64_t pixelformat, bool only_color)
Returns true if the given pixel format is supported by the convertImage() function.
void getColor(uint8_t rgb[3], const std::shared_ptr< const Image > &img, uint32_t ds, uint32_t i, uint32_t k)
Expects an image in Mono8, RGB8, YCbCr411_8, YCbCr422_8 or YUV422_8 format and returns the color as R...
uint64_t getTimestampNS() const
uint64_t getPixelFormat() const
size_t getXPadding() const
uint64_t getFrameID() const
std::unique_ptr< uint8_t[]> pixel
size_t getYPadding() const
void convYCbCr411toQuadRGB(uint8_t rgb[12], const uint8_t *row, int i)
Conversion of a group of four pixels from YCbCr411 format (6 bytes for four pixels) to RGB.
size_t getXOffset() const
void convYCbCr422toRGB(uint8_t rgb[3], const uint8_t *row, int i)
Conversion of one pixel from YCbCr422 format (4 bytes for 2 pixels) to RGB.
bool convertImage(uint8_t *rgb_out, uint8_t *mono_out, const uint8_t *raw, uint64_t pixelformat, size_t width, size_t height, size_t xpadding)
Converts image to RGB and monochrome format.
Image(const Buffer *buffer, uint32_t part)
Copies the image information of the buffer.
size_t getYOffset() const
Image & operator=(const Image &)
const uint8_t * getPixels() const
Pointer to pixel information of the image.
void convYCbCr422toQuadRGB(uint8_t rgb[12], const uint8_t *row, int i)
Conversion of a group of four pixels from YCbCr422 format (8 bytes for 4 pixels) to RGB.
void convYCbCr411toRGB(uint8_t rgb[3], const uint8_t *row, int i)
Conversion of one pixel from YCbCr411 format (6 bytes for four pixels) to RGB.
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11