#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

#207 in Compression

Download history 2/week @ 2024-09-09 36/week @ 2024-09-23 1/week @ 2024-10-14 134/week @ 2024-10-28 21/week @ 2024-11-04

156 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

~0.4–0.9MB
~19K SLoC