entropy
ptwm_core::entropy::outcome
Typed return for the [huffman]crate::entropy::huffman and [rans]crate::entropy::rans compressors.
ptwm_core::entropy::outcome
Typed return for the [huffman]crate::entropy::huffman and [rans]crate::entropy::rans compressors.
ptwm_core::entropy::outcome
crates/ptwm-core/src/entropy/outcome.rs:1mod outcomeTyped return for the [`huffman`][crate::entropy::huffman] and [`rans`][crate::entropy::rans] compressors.
The thin public wrappers (`huffman::compress`, `rans::compress`) return
`Result<usize, _>` for the pipeline layer and collapse every non-encoded
path to `Ok(0)`. The per-plane codec layer needs to distinguish those
cases so it can warn on unexpected fallbacks rather than silently
emitting an `Ok(0)`. The `compress_outcome` entry points return this
richer enum and the plane-codec wrappers inspect it before deciding
whether to log.
ptwm_core::entropy::outcome::CompressOutcome
crates/ptwm-core/src/entropy/outcome.rs:14pub enum CompressOutcomeResult of an entropy-coder compress attempt.
net
Tiny online-learning neural predictor: a trainable per-context embedding feeds a ReLU hidden layer and a linear output. Pure integer/fixed-point and fully deterministic, so encode and decode evolve in lockstep — losslessness does NOT depend on the net compressing well. No weights cross the wire.
rans
rANS (range Asymmetric Numeral Systems) entropy codec.