#qoi #image #encode #decode #no-std

no-std rapid-qoi

Optimized QOI format encoder and decoder

10 releases (5 breaking)

0.5.5 Jan 4, 2022
0.5.4 Jan 3, 2022
0.5.2 Dec 29, 2021
0.4.3 Dec 23, 2021
0.0.0 Nov 30, 2021

#11 in Encoding

Download history 40/week @ 2021-11-27 30/week @ 2021-12-04 6/week @ 2021-12-11 87/week @ 2021-12-18 53/week @ 2021-12-25 76/week @ 2022-01-01 25/week @ 2022-01-08

241 downloads per month

MIT/Apache

39KB
715 lines

rapid-qoi

crates docs actions MIT/Apache loc

Fast implementation of QOI format. Reference implementation is here 'https://github.com/phoboslab/qoi'

rapid-qoi is

  • no deps

  • 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.tar
    
              decode 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.164       1.844        398.88        251.72
    

    See benches for full reports.
    Run cargo run --release -p bench -- [iterations] [path]

License

Licensed under either of

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.

No runtime deps

Features

  • alloc
  • io
  • std
a