Commit graph

15 commits

Author SHA1 Message Date
Ivan Smirnov
b0467472ae Big rework: everything now matches the latest spec 2021-12-30 13:25:52 +03:00
Ivan Smirnov
6640bc571a Add unique stream-end marker (7 zeros and one 1) 2021-12-29 16:07:54 +03:00
Ivan Smirnov
0825c0aa3a Fix a few clippy lints 2021-12-02 15:55:56 +00:00
Ivan Smirnov
0d612fd3c2 Fix: check decode buffer end after the run opcode 2021-12-01 17:13:50 +00:00
Ivan Smirnov
7446a0f171 Add Header::validate(), don't check in qoi_dec_hdr 2021-12-01 17:07:21 +00:00
Ivan Smirnov
fc41914a48 Refactor decoder so it now uses qoi_decode_header 2021-12-01 17:01:41 +00:00
Ivan Smirnov
f17d2b6201 Add decode::qoi_decode_header() 2021-12-01 16:01:58 +00:00
Ivan Smirnov
d7c8346e39 Error::BadDecodingDataSize -> InputBufferTooSmall 2021-12-01 16:01:17 +00:00
Ivan Smirnov
cd6f8df1fa Remove unneeded mut 2021-12-01 00:05:04 +00:00
Ivan Smirnov
dd2ed70e70 Decoder: check read buffer bounds for safety 2021-11-30 14:31:33 +00:00
Ivan Smirnov
572194c0f2 Decoder: mark redundant match arm as unreachable 2021-11-30 14:30:55 +00:00
Ivan Smirnov
f19c0ee641 Remove unused imports from decode module 2021-11-29 22:33:27 +00:00
Ivan Smirnov
899270e42e Rework all branching in the decoder 2021-11-29 11:30:09 +00:00
Ivan Smirnov
cbae67b07d No bound checks when indexing during decoding 2021-11-29 04:21:50 +00:00
Ivan Smirnov
f8ec8011fc Initial working version (but lots of temp stuff) 2021-11-28 16:20:24 +00:00