Skip to main content

tufazip_arith/
lib.rs

1//! Reference arithmetic coder, big-endian bit streams, and frequency tables for `tufazip`.
2//!
3//! Ported from `arithmetic_coder.py` (Project Nayuki) and `make_freq_table` in `nn.py`
4//! with exact resumable checkpoint state snapshots.
5
6mod bitstream;
7mod coder;
8mod error;
9
10pub use bitstream::{BitInputState, BitInputStream, BitOutputState, BitOutputStream};
11pub use coder::{
12    make_freq_table, make_freq_table_into, ArithmeticDecoder, ArithmeticEncoder, DecoderState,
13    EncoderState, DEFAULT_STATE_BITS, FREQ_TOTAL,
14};
15pub use error::ArithError;