04f83a55d2da4e4a7d6cbc01477a2be0099d55ed
This is a full QOI file decode routine, although the image it contains is just one single blue pixel. I've added this because I finally found the bug I've been hunting: I'm using `tests/codec.rs` to load reference files and decode them, but this is resulting in data size errors. There are 32 extra bytes coming out of the decoder -- too much for the WIDTH x HEIGHT number of pixels, and it happens to every image. The cause is the 8-byte end marker. It is not properly detected by the decoder and is instead used as additional data (probably QOI_OP_INDEX). Since the decoder emits *pixels*, each of which are 4 bytes, we have 32 bytes of garbage data coming out of the decoder. Bug found! Now to make the test pass...
Description
QOI codec library made in Rust
Languages
Rust
100%