Encodes a QOI file, with 4 channels when the image has alpha and 3 otherwise. Gray is written as colour. QOI is far quicker to write and read than PNG, at a larger size.
qoi := encode_qoi(make_image(8, 8, .RGB8));
defer free(qoi.data);
assert(detect_image_format(qoi) == .QOI);encode_qoi :: (image: Image) -> [] u8
Parameters
- image: Image
Returns
- [] u8