class
JPEGXLCompressionClass for JPEG XL image compression.
Contents
Only supports 8 bit RGB images for now.
Constructors, destructors, conversion operators
Public functions
- void compress(void* data, int width, int height, std::vector<uint8_t>* compressedData, int quality = 90)
- auto decompress(uchar* compressedData, std::size_t bytes, int* widthOut, int* heightOut, uchar* outputBuffer = nullptr) -> void*
- Decompress.
Function documentation
void* fast:: JPEGXLCompression:: decompress(uchar* compressedData,
std::size_t bytes,
int* widthOut,
int* heightOut,
uchar* outputBuffer = nullptr)
Decompress.
Parameters | |
---|---|
compressedData | |
bytes | |
widthOut | |
heightOut | |
outputBuffer | if nullptr this buffer will be used to store data |
Returns | decompressed data |