![]() |
The open imaging DSP library
|
Uses libmpix to encode image to the QOI format.
The Quite Ok Image Format (QOI Format) a lossless compression codec with ratios close to PNG at a fraction of the complexity. This makes it a good candidate for use in low-power platforms such as microcontrollers.
First load a buffer into an image struct, in RGB format:
If the image is not in RGB format, you may then need ot add an extra format conversion step (How to convert pixel formats).
Then encode the image to the QOI format: