#arithmetic-coding #lossless #encoding

arithmetic-coding-adder-dep

fast and flexible arithmetic coding library

2 releases

0.3.2 Dec 12, 2023
0.3.1 Nov 30, 2023

#334 in Compression

Download history 29/week @ 2024-02-19 16/week @ 2024-02-26 1/week @ 2024-03-04 14/week @ 2024-03-11 10/week @ 2024-03-18 29/week @ 2024-03-25 25/week @ 2024-04-01

79 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.5–1MB
~22K SLoC