ptwm_core::entropy::huffman
ptwm_core::entropy::huffman
Pure-Rust canonical Huffman codec.
ptwm_core::entropy::huffman
crates/ptwm-core/src/entropy/huffman/mod.rs:1mod huffmanPure-Rust canonical Huffman codec.
ptwm_core::entropy::huffman::compress
crates/ptwm-core/src/entropy/huffman/mod.rs:30pub fn compress(dst: &mut [u8], src: &[u8]) -> Result<usize, PtwmCoreError>Pipeline-style entrypoint: returns the encoded length, or 0 for any non-encoded outcome. The caller (chunk pipeline) treats 0 as "store raw".
ptwm_core::entropy::huffman::decompress
crates/ptwm-core/src/entropy/huffman/mod.rs:34pub fn decompress(dst: &mut [u8], src: &[u8]) -> Result<usize, PtwmCoreError>ptwm_core::entropy::huffman::tree::MAX_TABLE_LOG
crates/ptwm-core/src/entropy/huffman/tree.rs:5pub const MAX_TABLE_LOGMaximum Huffman code length (bits). Controls the decode-table size (`1 << MAX_TABLE_LOG` entries) and the counts-per-length array. Exposed so consumers can probe the limit in tests; raising it requires also widening the decode-table index type in `bitstream.rs`.
huff_llm
Field-separated Huffman coding of 16-bit float planes (Huff-LLM).
neural_predictor
Opt-in NNCP-style neural-predictor plane codec. A tiny online-learning fixed-point MLP predicts each bit; a binary range coder writes the residual. Fully integer/deterministic; stateless on the wire (the model trains from scratch identically on both sides).