Skip to main content

Module tables

Module tables 

Source
Expand description

Quantization and Huffman table parsing/serialization.

Handles DQT (Define Quantization Table) and DHT (Define Huffman Table) marker segments. Supports both 8-bit and 16-bit quantization precision and multiple tables per marker segment.

Structs§

HuffmanSpec
Parsed Huffman table specification.

Functions§

parse_dht
Parse a DHT marker segment body (after the 2-byte length).
parse_dqt
Parse a DQT marker segment body (after the 2-byte length).
write_dht
Write a DHT marker segment (including 0xFFC4 marker and length).
write_dqt
Write a DQT marker segment (including 0xFFDB marker and length).