Lines Matching refs:htbl
120 static void FixHuffTbl (HuffmanTable *htbl) in FixHuffTbl() argument
148 for (i = 1; i <= (int32) htbl->bits [l]; i++) in FixHuffTbl()
188 memset (htbl->ehufsi, 0, sizeof (htbl->ehufsi)); in FixHuffTbl()
193 htbl->ehufco [htbl->huffval [p]] = huffcode [p]; in FixHuffTbl()
194 htbl->ehufsi [htbl->huffval [p]] = huffsize [p]; in FixHuffTbl()
205 if (htbl->bits [l]) in FixHuffTbl()
208 htbl->valptr [l] = (int16) p; in FixHuffTbl()
209 htbl->mincode [l] = huffcode [p]; in FixHuffTbl()
211 p += htbl->bits [l]; in FixHuffTbl()
213 htbl->maxcode [l] = huffcode [p - 1]; in FixHuffTbl()
219 htbl->maxcode [l] = -1; in FixHuffTbl()
226 htbl->maxcode[17] = 0xFFFFFL; in FixHuffTbl()
234 memset (htbl->numbits, 0, sizeof (htbl->numbits)); in FixHuffTbl()
244 int32 value = htbl->huffval [p]; in FixHuffTbl()
252 if (ul >= static_cast<int32>(sizeof(htbl->numbits) / sizeof(htbl->numbits[0])) || in FixHuffTbl()
253 ul >= static_cast<int32>(sizeof(htbl->value) / sizeof(htbl->value[0]))) in FixHuffTbl()
260 htbl->numbits [i] = size; in FixHuffTbl()
261 htbl->value [i] = value; in FixHuffTbl()
475 int32 HuffDecode (HuffmanTable *htbl);
1616 inline int32 dng_lossless_decoder::HuffDecode (HuffmanTable *htbl) in HuffDecode() argument
1625 if (htbl->numbits [code]) in HuffDecode()
1628 flush_bits (htbl->numbits [code]); in HuffDecode()
1630 return htbl->value [code]; in HuffDecode()
1641 while (code > htbl->maxcode [l]) in HuffDecode()
1655 return htbl->huffval [htbl->valptr [l] + in HuffDecode()
1656 ((int32) (code - htbl->mincode [l]))]; in HuffDecode()
2664 void GenHuffCoding (HuffmanTable *htbl, uint32 *freq);
3182 void dng_lossless_encoder::GenHuffCoding (HuffmanTable *htbl, uint32 *freq) in GenHuffCoding() argument
3360 memcpy (htbl->bits, bits, sizeof (htbl->bits)); in GenHuffCoding()
3376 htbl->huffval [p] = (uint8) j; in GenHuffCoding()
3530 HuffmanTable *htbl = &huffTable [index]; in EmitDht() local
3537 length += htbl->bits [i]; in EmitDht()
3544 EmitByte (htbl->bits [i]); in EmitDht()
3547 EmitByte (htbl->huffval [i]); in EmitDht()