Crate libqoi

Source

Structs§

Header
A QOI header, storing all the metadata

Enums§

Part
A decoded version of a qoi Part/Chunk (I had to rewrite to add this API) All values stored unbiased

Functions§

decode_qoi
Decodes an QOI image to raw RGBA data row-major, returns metadata in a Header struct
encode_qoi
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
read_header
Reads a header from data, can be used to check image size before decoding.