IDLive Face new C++ API 1.47.0
|
Decodes compressed images. More...
#include <idliveface/idliveface.h>
Public Member Functions | |
Image | DecodeFile (const std::string &file_path) |
Loads and decodes the image from the file. | |
Image | Decode (const std::vector< uint8_t > &bytes) |
Decodes the image from the memory. | |
Image | Decode (const uint8_t *bytes, size_t size) |
Decodes the image from the memory. | |
Decodes compressed images.
Image idliveface::ImageDecoder::Decode | ( | const std::vector< uint8_t > & | bytes | ) |
Decodes the image from the memory.
bytes | Image content. |
ImageDecodingException | if the image can't be decoded. |
Image idliveface::ImageDecoder::Decode | ( | const uint8_t * | bytes, |
size_t | size | ||
) |
Decodes the image from the memory.
bytes | Image content. |
size | Size of the bytes array. |
ImageDecodingException | if the image can't be decoded. |
Image idliveface::ImageDecoder::DecodeFile | ( | const std::string & | file_path | ) |
Loads and decodes the image from the file.
file_path | Path to the image file. |
ImageDecodingException | if the image can't be decoded or the invalid path is provided. |