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

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.
 

Detailed Description

Decodes compressed images.

Member Function Documentation

◆ Decode() [1/2]

Image idliveface::ImageDecoder::Decode ( const std::vector< uint8_t > &  bytes)

Decodes the image from the memory.

Parameters
bytesImage content.
Exceptions
ImageDecodingExceptionif the image can't be decoded.

◆ Decode() [2/2]

Image idliveface::ImageDecoder::Decode ( const uint8_t *  bytes,
size_t  size 
)

Decodes the image from the memory.

Parameters
bytesImage content.
sizeSize of the bytes array.
Exceptions
ImageDecodingExceptionif the image can't be decoded.

◆ DecodeFile()

Image idliveface::ImageDecoder::DecodeFile ( const std::string &  file_path)

Loads and decodes the image from the file.

Parameters
file_pathPath to the image file.
Exceptions
ImageDecodingExceptionif the image can't be decoded or the invalid path is provided.