Commit graph

135 commits

Author SHA1 Message Date
Ivan Smirnov
432f9d3af6 qoi-bench: minor formatting and cosmetic fixes 2022-01-05 17:16:41 +03:00
Ivan Smirnov
112fd637e6 qoi-bench: use C bindings from libqoi 2022-01-05 17:13:15 +03:00
Ivan Smirnov
497d188f9a qoi-bench: rework png decoding, convert grayscale 2022-01-05 17:11:38 +03:00
Ivan Smirnov
81bd8abdbe Add libqoi helper crate that wraps qoi.h 2022-01-05 17:07:30 +03:00
Ivan Smirnov
50d268cd14 Add extensive tests for specific chunk types 2022-01-05 02:28:39 +03:00
Ivan Smirnov
d5cfc60013 Fix an edge case bug with non-reference encoding 2022-01-05 02:27:08 +03:00
Ivan Smirnov
2999dc5a50 Add a paragraph to readme/lib.rs re: MSRV 2022-01-04 14:52:45 +03:00
Ivan Smirnov
72c9128c61 (Minor clippy fixes) 2022-01-04 03:13:53 +03:00
Ivan Smirnov
6884969222 Update readme and crate root doc 2022-01-04 03:10:55 +03:00
Ivan Smirnov
f3120d5df3 Tons of docstrings + some renames 2022-01-04 02:59:32 +03:00
Ivan Smirnov
86d5462958 Update Header docstring 2022-01-04 01:59:58 +03:00
Ivan Smirnov
bbbdb86ef1 Readme update re: benches 2022-01-04 01:58:27 +03:00
Ivan Smirnov
d21dd97c10 Update readme with a simple example 2022-01-04 01:52:42 +03:00
Ivan Smirnov
caee8701f5 Update benchmarks with all the latest changes 2022-01-04 01:47:01 +03:00
Ivan Smirnov
c062c6b79b Improve hashing algorithm slightly (see credits) 2022-01-04 01:46:13 +03:00
Ivan Smirnov
52cc56381e Compute hash on 4-byte (extended) pixels always 2022-01-04 01:30:45 +03:00
Ivan Smirnov
88a020b851 Merge StreamDecoder into Decoder 2022-01-04 00:25:05 +03:00
Ivan Smirnov
5371c75a59 (Rearrange code in utils mod a bit) 2022-01-04 00:24:11 +03:00
Ivan Smirnov
b0dca7ba02 Add docstrings for Error variants 2022-01-03 22:10:03 +03:00
Ivan Smirnov
d9bf3db32c Add no_std section to readme 2022-01-03 21:57:54 +03:00
Ivan Smirnov
0736dfa4b4 (Add fuzz coverage to .gitignore) 2022-01-03 21:57:41 +03:00
Ivan Smirnov
328cfac40d Big batch of renames: strip qoi prefix everywhere 2022-01-03 21:40:24 +03:00
Ivan Smirnov
cb10dd3629 Error types cleanup + clippy fixes 2022-01-03 21:18:38 +03:00
Ivan Smirnov
82f07a3e8d Update readme + update bench timings 2022-01-03 20:57:25 +03:00
Ivan Smirnov
718e09e303 Minor tweaks to Pixel::read() 2022-01-03 20:44:05 +03:00
Ivan Smirnov
4633be5c52 Add docstrings for Channels / ColorSpace 2022-01-03 20:43:55 +03:00
Ivan Smirnov
b95022f3fd Update bench timings in the readme 2022-01-03 19:08:38 +03:00
Ivan Smirnov
f9f5acb73a Slight improvement to BytesMut 2022-01-03 18:31:06 +03:00
Ivan Smirnov
4f0bce5fca qoi-bench: only abort on r/t fail if it's qoi-fast 2022-01-03 17:43:28 +03:00
Ivan Smirnov
a9b369e585 In tests, always check for encoded length match 2022-01-03 17:15:18 +03:00
Ivan Smirnov
5952a88e8c Minor fixups to Pixel struct 2022-01-03 17:15:18 +03:00
Ivan Smirnov
5469530c64 Initial attempt at no_std 2022-01-03 17:15:18 +03:00
Ivan Smirnov
e39bec8725 Bug-fix with non-reference encoding 2022-01-03 17:15:18 +03:00
Ivan Smirnov
f3947a2a01 qoi-bench: fail immediately if roundtrip fails 2022-01-03 17:15:18 +03:00
Ivan Smirnov
217d11287d (Update .gitignore) 2022-01-03 17:15:18 +03:00
Ivan Smirnov
df48b77f23 Update CI config (reference enabled) 2022-01-03 17:15:18 +03:00
Ivan Smirnov
c59f6ac686 Update the tests (with reference feature on/off) 2022-01-03 17:15:18 +03:00
Ivan Smirnov
465a5b86a1 Encode runs of 1 as index (+ "reference" feature) 2022-01-03 17:15:18 +03:00
Ivan Smirnov
ab92cf64b6 Disable doctests for the main crate 2022-01-03 17:15:18 +03:00
Ivan Smirnov
7b0044a824 qoi-bench: only report totals if more than one png 2022-01-03 17:15:18 +03:00
Ivan Smirnov
feaac28244 Run tests in opt-level=3 mode 2022-01-03 15:13:56 +03:00
Ivan Smirnov
55977b8981 Minor updates to crate manifests and readme 2022-01-03 15:13:56 +03:00
Ivan Smirnov
5036518108 Change crate edition to "2018" 2022-01-03 15:13:56 +03:00
Ivan Smirnov
45bed0445d Fix a few clippy warnings 2022-01-03 15:13:56 +03:00
Ivan Smirnov
12147521f2 Update the readme with the benchmark timings 2022-01-03 14:25:40 +03:00
Ivan Smirnov
c52ff2bb9b Clean up header struct/mod, add docstrings 2022-01-03 14:25:40 +03:00
Ivan Smirnov
e3184aed01 Derive PartialOrd/Ord for Channels and ColorSpace 2022-01-03 14:25:40 +03:00
Ivan Smirnov
fb8a43fd13 Fix potential decoder panic when checking padding 2022-01-03 14:25:40 +03:00
Ivan Smirnov
e6e156f974 Update fuzz targets 2022-01-03 14:25:40 +03:00
Ivan Smirnov
4e43c8ba01 Add ColorSpace::as_u8() 2022-01-03 14:25:40 +03:00