Perform conversions to BGR8.
More...
#include <FormatConverter.h>
|
| | 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...
|
| |
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);
| 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 |
|
) |
| |
| uint8_t* getBuffer |
( |
| ) |
const |
Get a pointer to converted image.
| size_t getBufferSize |
( |
| ) |
const |
Get converted image size in bytes.
Save converted image to disk.
The documentation for this class was generated from the following file: