Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 347 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 347 Bytes

CPP20-QOI

A simple C++20 implementation of the qoi format

Reading

fileInputStream is("input.qoi");
uint8_t* pixels = qoi::decode(is, &width, &height, &channels, &colorspace);
is.close();

Writing

fileOutputStream os("output.qoi");
qoi::encode(os, pixels, width, height, channels);
os.flush();
os.close();