EGrabber Reference  9.5.2.131
Public Member Functions | List of all members
FormatConverter::BGR8

Perform conversions to BGR8. More...

#include <FormatConverter.h>

Public Member Functions

 BGR8 (FormatConverter &conv, uint8_t *imgPtr, const std::string &fmt, size_t w, size_t h, size_t imgSize=0, size_t imgPitch=0)
 
 BGR8 (FormatConverter &conv, uint8_t *imgPtr, uint64_t fmt, size_t w, size_t h, size_t imgSize=0, size_t imgPitch=0)
 
 ~BGR8 ()
 
uint8_t * getBuffer () const
 Get a pointer to converted image. More...
 
size_t getBufferSize () const
 Get converted image size in bytes. More...
 
void saveToDisk (const std::string &filepath, int64_t index=-1, const ge::ImageSaveToDiskParams *params=0)
 Save converted image to disk. More...
 

Detailed Description

Perform conversions to BGR8.

Warning
this converter instance cannot outlive its originating FormatConverter instance
Deprecated:
please use FormatConverter::Auto and FormatConverter::OutputFormat instead, e.g.
FormatConverter::Auto bgr8(conv, FormatConverter::OutputFormat("BGR8"), imgPtr, format, width, height);

Constructor & Destructor Documentation

BGR8 ( FormatConverter conv,
uint8_t *  imgPtr,
const std::string &  fmt,
size_t  w,
size_t  h,
size_t  imgSize = 0,
size_t  imgPitch = 0 
)
BGR8 ( FormatConverter conv,
uint8_t *  imgPtr,
uint64_t  fmt,
size_t  w,
size_t  h,
size_t  imgSize = 0,
size_t  imgPitch = 0 
)
~BGR8 ( )

Member Function Documentation

uint8_t* getBuffer ( ) const

Get a pointer to converted image.

size_t getBufferSize ( ) const

Get converted image size in bytes.

void saveToDisk ( const std::string &  filepath,
int64_t  index = -1,
const ge::ImageSaveToDiskParams params = 0 
)

Save converted image to disk.


The documentation for this class was generated from the following file: