42 lines
1.6 KiB
Markdown
42 lines
1.6 KiB
Markdown
# qoi-fast
|
|
|
|
VERY fast encoder/decoder for [QOI image format](https://qoiformat.org/), implemented in pure Rust.
|
|
|
|
[](https://github.com/aldanor/qoi-fast/actions?query=branch%3Amaster)
|
|
[](https://crates.io/crates/qoi-fast)
|
|
[](https://docs.rs/qoi-fast)
|
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
[](https://opensource.org/licenses/MIT)
|
|
[](https://github.com/rust-secure-code/safety-dance)
|
|
|
|
Quick summary:
|
|
|
|
- One of the [fastest](https://github.com/aldanor/qoi-fast#benchmarks)
|
|
QOI encoders/decoders out there.
|
|
- Compliant with the latest QOI [format specification](https://qoiformat.org/qoi-specification.pdf).
|
|
- Zero unsafe code.
|
|
- Supports decoding from / encoding to `std::io` streams directly.
|
|
- Roundtrip-tested vs the reference C implementation; fuzz-tested.
|
|
|
|
### Examples
|
|
|
|
```rust
|
|
todo!();
|
|
```
|
|
|
|
### Benchmarks
|
|
|
|
Comparison to the reference C implementation
|
|
(as of [00e34217](https://github.com/phoboslab/qoi/commit/00e34217)),
|
|
benchmarks timings collected on Apple M1 (1782 images, 1187 MB total):
|
|
|
|
```
|
|
codec decode:ms encode:ms decode:mp/s encode:mp/s
|
|
|
|
qoi-c 4408.43 5529.64 282.3 225.1
|
|
qoi-fast 3202.04 4666.84 388.7 266.7
|
|
```
|
|
|
|
### License
|
|
|
|
This project is dual-licensed under MIT and Apache 2.0.
|