#arithmetic-coding #lossless #codec

arithmetic-coding-adder-dep

fast and flexible arithmetic coding library

2 releases

0.3.2 Dec 12, 2023
0.3.1 Nov 30, 2023

#606 in Compression

30 downloads per month
Used in 2 crates (via adder-codec-core)

MIT license

240KB
388 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

~0.4–0.9MB
~19K SLoC