IDLive Face new C++ API 1.46.0
|
Contains the content of the decoded image. More...
#include <idliveface/idliveface.h>
Public Member Functions | |
Image (const uint8_t *pixels, int32_t width, int32_t height, PixelFormat pixel_format) | |
Constructs the image from the raw pixels. | |
const ImageAttributes & | GetAttributes () const |
Returns image attributes. | |
Contains the content of the decoded image.
Copying the Image
object only copies the pointer to the shared state, it does not create a copy of the image.
idliveface::Image::Image | ( | const uint8_t * | pixels, |
int32_t | width, | ||
int32_t | height, | ||
PixelFormat | pixel_format | ||
) |
Constructs the image from the raw pixels.
Depending on the pixel_format
will read either width*height*3
or width*height
bytes from the pixels
.