Home
last modified time | relevance | path

Searched refs:htbl (Results 1 – 8 of 8) sorted by relevance

/external/libjpeg-turbo/
Djdhuff.h190 #define HUFF_DECODE(result,state,htbl,failaction,slowlabel) \ argument
200 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \
202 result = htbl->lookup[look] & ((1 << HUFF_LOOKAHEAD) - 1); \
205 if ((result=jpeg_huff_decode(&state,get_buffer,bits_left,htbl,nb)) < 0) \
211 #define HUFF_DECODE_FAST(s,nb,htbl) \ argument
214 s = htbl->lookup[s]; \
223 while (s > htbl->maxcode[nb]) { \
228 s = htbl->pub->huffval[ (int) (s + htbl->valoffset[nb]) & 0xFF ]; \
234 register int bits_left, d_derived_tbl *htbl, int min_bits);
Djdhuff.c158 JHUFF_TBL *htbl; in jpeg_make_d_derived_tbl() local
173 htbl = in jpeg_make_d_derived_tbl()
175 if (htbl == NULL) in jpeg_make_d_derived_tbl()
184 dtbl->pub = htbl; /* fill in back link */ in jpeg_make_d_derived_tbl()
190 i = (int) htbl->bits[l]; in jpeg_make_d_derived_tbl()
223 if (htbl->bits[l]) { in jpeg_make_d_derived_tbl()
228 p += htbl->bits[l]; in jpeg_make_d_derived_tbl()
249 for (i = 1; i <= (int) htbl->bits[l]; i++, p++) { in jpeg_make_d_derived_tbl()
254 dtbl->lookup[lookbits] = (l << HUFF_LOOKAHEAD) | htbl->huffval[p]; in jpeg_make_d_derived_tbl()
268 int sym = htbl->huffval[i]; in jpeg_make_d_derived_tbl()
[all …]
Djcmarker.c192 JHUFF_TBL *htbl; in emit_dht() local
196 htbl = cinfo->ac_huff_tbl_ptrs[index]; in emit_dht()
199 htbl = cinfo->dc_huff_tbl_ptrs[index]; in emit_dht()
202 if (htbl == NULL) in emit_dht()
205 if (! htbl->sent_table) { in emit_dht()
210 length += htbl->bits[i]; in emit_dht()
216 emit_byte(cinfo, htbl->bits[i]); in emit_dht()
219 emit_byte(cinfo, htbl->huffval[i]); in emit_dht()
221 htbl->sent_table = TRUE; in emit_dht()
Djcapimin.c138 JHUFF_TBL *htbl; in jpeg_suppress_tables() local
146 if ((htbl = cinfo->dc_huff_tbl_ptrs[i]) != NULL) in jpeg_suppress_tables()
147 htbl->sent_table = suppress; in jpeg_suppress_tables()
148 if ((htbl = cinfo->ac_huff_tbl_ptrs[i]) != NULL) in jpeg_suppress_tables()
149 htbl->sent_table = suppress; in jpeg_suppress_tables()
Djchuff.c225 JHUFF_TBL *htbl; in jpeg_make_c_derived_tbl() local
239 htbl = in jpeg_make_c_derived_tbl()
241 if (htbl == NULL) in jpeg_make_c_derived_tbl()
255 i = (int) htbl->bits[l]; in jpeg_make_c_derived_tbl()
301 i = htbl->huffval[p]; in jpeg_make_c_derived_tbl()
887 jpeg_gen_optimal_table (j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[]) in jpeg_gen_optimal_table() argument
1002 MEMCOPY(htbl->bits, bits, sizeof(htbl->bits)); in jpeg_gen_optimal_table()
1012 htbl->huffval[p] = (UINT8) j; in jpeg_gen_optimal_table()
1019 htbl->sent_table = FALSE; in jpeg_gen_optimal_table()
Djchuff.h43 (j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[]);
/external/dng_sdk/source/
Ddng_lossless_jpeg.cpp120 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()
[all …]
/external/pdfium/third_party/libtiff/
Dtif_jpeg.c1535 JHUFF_TBL* htbl; in unsuppress_huff_table() local
1537 if ((htbl = sp->cinfo.c.dc_huff_tbl_ptrs[tblno]) != NULL) in unsuppress_huff_table()
1538 htbl->sent_table = FALSE; in unsuppress_huff_table()
1539 if ((htbl = sp->cinfo.c.ac_huff_tbl_ptrs[tblno]) != NULL) in unsuppress_huff_table()
1540 htbl->sent_table = FALSE; in unsuppress_huff_table()
1546 JHUFF_TBL* htbl; in suppress_huff_table() local
1548 if ((htbl = sp->cinfo.c.dc_huff_tbl_ptrs[tblno]) != NULL) in suppress_huff_table()
1549 htbl->sent_table = TRUE; in suppress_huff_table()
1550 if ((htbl = sp->cinfo.c.ac_huff_tbl_ptrs[tblno]) != NULL) in suppress_huff_table()
1551 htbl->sent_table = TRUE; in suppress_huff_table()