Function exr::compression::piz::huffman::build_decoding_table
source ยท fn build_decoding_table(
encoding_table: &[u64],
min_code_index: usize,
max_code_index: usize,
) -> Result<Vec<Code>>
Expand description
Build a decoding hash table based on the encoding table code:
- short codes (<= HUF_DECBITS) are resolved with a single table access;
- long code entry allocations are not optimized, because long codes are unfrequent;
- decoding tables are used by hufDecode();