Expand description
16-bit Huffman compression and decompression. Huffman compression and decompression routines written by Christian Rouet for his PIZ image file format.
Structs§
Enums§
- Code 🔒
Constants§
Functions§
- Build a “canonical” Huffman code table:
- Build a decoding hash table based on the encoding table code:
- Compute Huffman codes (based on frq input) and store them in frq:
- code 🔒
- Decode (uncompress) n bits based on encoding & decoding tables:
- length 🔒
- Pack an encoding table:
- Run-length-decompresses all zero runs from the packed table to the encoding table