#lossless #encoding #codec

arithmetic-coding

fast and flexible arithmetic coding library

6 releases (3 breaking)

0.4.0 Oct 29, 2024
0.3.1 Aug 17, 2022
0.2.0 Mar 23, 2022
0.1.1 Mar 23, 2022

#243 in Compression

Download history 4/week @ 2024-09-27 1/week @ 2024-10-11 122/week @ 2024-10-25 27/week @ 2024-11-01 6/week @ 2024-11-08 5/week @ 2024-11-15 4/week @ 2024-11-22 2/week @ 2024-12-06

366 downloads per month
Used in 2 crates

MIT license

270KB
639 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

Was this useful? Buy me a coffee

Dependencies

~355–800KB
~18K SLoC