#compression #encoding #arithmetic-coding #lossless

arithmetic-coding

fast and flexible arithmetic coding library

5 unstable releases

Uses new Rust 2021

0.3.1 Aug 17, 2022
0.3.0 Aug 4, 2022
0.2.0 Mar 23, 2022
0.1.1 Mar 23, 2022
0.1.0 Mar 19, 2022

#152 in Compression

Download history 2/week @ 2022-06-18 1/week @ 2022-06-25 6/week @ 2022-07-02 6/week @ 2022-07-09 4/week @ 2022-07-16 9/week @ 2022-07-23 25/week @ 2022-07-30 59/week @ 2022-08-06 39/week @ 2022-08-13 16/week @ 2022-08-20 6/week @ 2022-08-27 12/week @ 2022-09-03 30/week @ 2022-09-10 7/week @ 2022-09-17 13/week @ 2022-09-24

62 downloads per month
Used in 2 crates

MIT license

265KB
663 lines

Arithmetic Coding

Latest Docs Continuous integration codecov

A symbolic arithmetic coding library.

Extending this library is as simple as implementing the Model trait for your own type, and then plugging it in the provided Encoder/Decoder. Supports both fixed-length and variable-length encoding, as well as both adaptive and non-adaptive models.

Take a look at the API docs or the examples.

This crate is heavily inspired by

Dependencies

~335–750KB
~17K SLoC