Crates.io | simple-arithmetic-coding |
lib.rs | simple-arithmetic-coding |
version | 0.1.1 |
source | src |
created_at | 2024-08-08 14:19:04.551198 |
updated_at | 2024-08-08 14:27:28.936454 |
description | Arithmetic coding, directly derived from the well-known CACM87 C-language implementation. |
homepage | |
repository | |
max_upload_size | |
id | 1329600 |
size | 26,131 |
A simple arithmetic coder implementation that should be easy to read. Includes a driver binary and a library. By default a binary is built.
Run cargo build --release
.
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 target/release/simple-arithmetic-coding -d <input from stdin>
.