Structs
A QOI header, storing all the metadata
Enums
A decoded version of a qoi Part/Chunk
(I had to rewrite to add this API)
All values stored unbiased
Functions
Decodes an QOI image to raw RGBA data row-major, returns metadata in a Header struct
Compresses raw image data to QOI.
img_data : Row major RGBA image data
hight, width: Image size
channel_count: 3 = RBG, 4 = RBGA
Panics if img_data.len() is not divisable by 4
Reads a header from data, can be used to check image size before decoding.