Expand description

QOI image decoder for embedded applications.

tinyqoi is a QOI image decoder mainly targeted at use with embedded_graphics.

Examples

A Qoi image can be wrapped in an embedded-graphics [Image] to display it on any [DrawTarget] which uses [Rgb888] colors:

use tinyqoi::Qoi;
use embedded_graphics::{prelude::*, image::Image};

// Parse QOI image.
let data = include_bytes!("../tests/colors.qoi");
let qoi = Qoi::new(data).unwrap();

// Draw image to display.
Image::new(&qoi, Point::zero()).draw(&mut display).unwrap();

Structs

Iterator over the pixels of a QOI image.

QOI image.

Enums

Error.