no-std rapid-qoi

Optimized QOI format encoder and decoder

12 releases (6 breaking)

0.6.1 Feb 18, 2022
0.5.5 Jan 4, 2022
0.5.2 Dec 29, 2021
0.1.0 Nov 30, 2021

#280 in Multimedia

Download history 51/week @ 2024-06-16 100/week @ 2024-06-23 14/week @ 2024-06-30 121/week @ 2024-07-07 81/week @ 2024-07-14 117/week @ 2024-07-21 46/week @ 2024-07-28 49/week @ 2024-08-04 50/week @ 2024-08-11 39/week @ 2024-08-18 54/week @ 2024-08-25 97/week @ 2024-09-01 48/week @ 2024-09-08 62/week @ 2024-09-15 78/week @ 2024-09-22 49/week @ 2024-09-29

246 downloads per month
Used in 12 crates (4 directly)

MIT/Apache

41KB
726 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.100       1.836        421.99        252.77
    

    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.

Dependencies

~135KB