IDLive Face new C++ API 1.46.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
idliveface::Image Class Reference

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 ImageAttributesGetAttributes () const
 Returns image attributes.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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.