update README and comments
Add license
Add the encode() and decode() functions
This package provides an implementation of the Quite OK Image Format (QOI).
make install
git subtree -P vendor/hare-qoi/ add https://git.sr.ht/~pierrec/hare-qoi main
use image::qoi;
use io;
fn run(src: io::handle, width: u32, height: u32) (void | io::error) = {
const h = qoi::header {
width = width,
height = height,
channels = qoi::channels::RGBA,
...
};
qoi::encode(src, h, pixels)?;
};
use image::qoi;
use io;
fn run(src: io::handle) (void | qoi::error) = {
const img = qoi::decode(src)?;
};