Home | History | Annotate | Download | only in jpeg

Lines Matching defs:huffman

11 // maxCodeLength is the maximum (inclusive) number of bits in a Huffman code.
14 // maxNCodes is the maximum (inclusive) number of codes in a Huffman tree.
17 // lutSize is the log-2 size of the Huffman decoder's look-up table.
20 // huffman is a Huffman decoder, specified in section C.
21 type huffman struct {
42 // Huffman data.
43 var errShortHuffmanData = FormatError("short Huffman data")
89 // processDHT processes a Define Huffman Table marker, and initializes a huffman
119 return FormatError("Huffman table has zero length")
122 return FormatError("Huffman table has excessive length")
175 // decodeHuffman returns the next Huffman-coded value from the bit-stream,
177 func (d *decoder) decodeHuffman(h *huffman) (uint8, error) {
179 return 0, FormatError("uninitialized Huffman table")
220 return 0, FormatError("bad Huffman code")