https://github.com/zakarumych/rapid-qoi
Fast implementation of QOI format in Rust
https://github.com/zakarumych/rapid-qoi
image-encoding qoi rust
Last synced: about 1 month ago
JSON representation
Fast implementation of QOI format in Rust
- Host: GitHub
- URL: https://github.com/zakarumych/rapid-qoi
- Owner: zakarumych
- License: other
- Created: 2021-11-30T14:25:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T19:31:54.000Z (over 2 years ago)
- Last Synced: 2025-03-31T10:04:35.487Z (about 2 months ago)
- Topics: image-encoding, qoi, rust
- Language: Rust
- Homepage:
- Size: 85.9 KB
- Stars: 93
- Watchers: 5
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING
Awesome Lists containing this project
README
# rapid-qoi
[](https://crates.io/crates/rapid-qoi)
[](https://docs.rs/rapid-qoi)
[](https://github.com/zakarumych/rapid-qoi/actions?query=workflow%3ARust)
[](COPYING)
Fast implementation of QOI format.
Reference implementation is here 'https://github.com/phoboslab/qoi'`rapid-qoi` is
* no std
* no unsafe
* tiny
* fast to build (0.8 sec clean build on i9)
* one of the most efficient implementations of QOI encoder and decoder.```
# Grand total for qoi benchmark suite
# https://qoiformat.org/benchmark/qoi_benchmark_suite.tardecode ms encode ms decode mpps encode mpps
## Intel i9
qoi: 2.009 2.706 231.01 171.52
rapid_qoi: 1.404 2.520 330.72 184.23## Apple M1
qoi: 1.676 2.088 277.01 222.26
rapid_qoi: 1.100 1.836 421.99 252.77
```
See [benches](./benches) for full reports.\
Run `cargo run --release -p bench -- [iterations] [path]`
## License
Licensed under either of
* Apache License, Version 2.0, ([license/APACHE](license/APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([license/MIT](license/MIT) or http://opensource.org/licenses/MIT)at your option.
## Contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.