simple-arithmetic-coding 0.1.1

Arithmetic coding, directly derived from the well-known CACM87 C-language implementation.
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 25.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 561.43 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • duckling747

Arithmetic coding in Rust

A simple arithmetic coder implementation that should be easy to read. Includes a driver binary and a library. By default a binary is built.

Build

Run cargo build --release.

Run encoding routine

Run target/release/simple-arithmetic-coding -e <input from stdin>. For example on Linux, just pipe your file using cat, and then direct the output to file: cat war_and_peace.txt | target/release/simple-arithmetic-coding -e > output.bin

Run decoding routine

Run target/release/simple-arithmetic-coding -d <input from stdin>.