Commit Graph

154 Commits

Author SHA1 Message Date
ZettaScript 8099e065f3 wip 2022-12-16 22:12:43 +01:00
Ivan Smirnov e97077e527
Merge pull request #4 from aldanor/feature/pub-bytes
Make `qoi::decode::Bytes` pub + clippy fixes
2022-10-17 00:52:10 +01:00
Ivan Smirnov fe83d1b3ee Version bump to v0.4.1 2022-10-17 00:51:38 +01:00
Ivan Smirnov 0e799be72d Bump MSRV to 1.60, set edition to 2021 2022-10-17 00:46:02 +01:00
Ivan Smirnov e30c034738 Bump bytemuck dependency 2022-10-17 00:42:28 +01:00
Ivan Smirnov bd00948952 Various clippy fixes 2022-10-17 00:34:11 +01:00
Ivan Smirnov 9fdca30f9e Make `Bytes` pub 2022-10-17 00:31:27 +01:00
Ivan Smirnov 53ecac38a9 Rename qoi-fast -> qoi (qoi-rust) + update repo 2022-01-06 03:59:32 +03:00
Ivan Smirnov 3cc5a260fb Update benchmarks in the lib.rs as well 2022-01-06 03:46:10 +03:00
Ivan Smirnov 437d9b6280 tests: make them 1.51-compatible, fix tiny gen bug 2022-01-06 03:39:35 +03:00
Ivan Smirnov fa2a675ecb Improve tests in the generated test suite 2022-01-06 03:26:58 +03:00
Ivan Smirnov 49b4b5b69c Fix chunk tests to match encoder run logic fixes 2022-01-06 03:15:40 +03:00
Ivan Smirnov a75e7fe445 Update benchmarks info in the readme 2022-01-06 03:12:32 +03:00
Ivan Smirnov 7ac43c442c qoi-bench: report MB/s, improve totals formatting 2022-01-06 03:08:38 +03:00
Ivan Smirnov 7cadd4c03e Encoder fix - always disallow first-run shortcut 2022-01-06 02:50:21 +03:00
Ivan Smirnov 5a899bbf25 Index bugfix: force decoder index to be 4-channel 2022-01-06 02:49:15 +03:00
Ivan Smirnov fcbec6cf76 Pull in upstream qoi submodule in CI 2022-01-05 17:26:05 +03:00
Ivan Smirnov c2d23f8dec tests: add generated image tests 2022-01-05 17:17:42 +03:00
Ivan Smirnov 8c7b78a97f tests: move common stuff into a `common` mod 2022-01-05 17:17:10 +03:00
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