Commit graph

17 commits

Author SHA1 Message Date
Ivan Smirnov
1bb6ee118c Add qoi_encode_to_buf() and encode_size_required() 2021-11-30 02:46:04 +00:00
Ivan Smirnov
439a285920 Add canonical mod with reference i16-diff encode 2021-11-29 23:24:47 +00:00
Ivan Smirnov
b290afbc02 Re-export Header type at the crate root 2021-11-29 22:39:06 +00:00
Ivan Smirnov
62a659eb03 Change magic type to u32 (like in reference impl) 2021-11-29 22:38:09 +00:00
Ivan Smirnov
f19c0ee641 Remove unused imports from decode module 2021-11-29 22:33:27 +00:00
Ivan Smirnov
fd71a24506 Mark tag masks in consts mod as allow(unused) 2021-11-29 22:32:04 +00:00
Ivan Smirnov
236f55ed3c Change Header::default() impl so it's a valid one 2021-11-29 22:30:53 +00:00
Ivan Smirnov
7d0b0a5b62 Change colorspace in Header to ColorSpace type 2021-11-29 22:30:29 +00:00
Ivan Smirnov
83e75b1b65 Add colorspace support to qoi_encode_to_vec() 2021-11-29 22:27:17 +00:00
Ivan Smirnov
9ef519164b Add ColorSpace type 2021-11-29 22:23:39 +00:00
Ivan Smirnov
3dc0d6adab Add mask comments to consts module 2021-11-29 13:58:11 +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
92a750c2e3 Add reference implementation as a submodule 2021-11-29 04:21:09 +00:00
Ivan Smirnov
1bf84b1946 Ignore target/Cargo.lock in all subfolders 2021-11-28 16:59:07 +00:00
Ivan Smirnov
afe6dd1ab3 Update Cargo.toml 2021-11-28 16:54:16 +00:00
Ivan Smirnov
f8ec8011fc Initial working version (but lots of temp stuff) 2021-11-28 16:20:24 +00:00