Expand description
Huffman coding tables for JPEG entropy decoding and encoding.
Structs§
- Huffman
Decode Table - Huffman decode table with two-level lookup.
- Huffman
Encode Table - Huffman encode table: maps symbol → (code_bits, code_length).
Functions§
- encode_
value - Encode a signed value into JPEG “additional bits” representation. Returns (magnitude_bits, category/size).
- extend_
sign - Extend a signed value from its JPEG “additional bits” representation.