Home
last modified time | relevance | path

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

/external/libjpeg-turbo/
Djdhuff.h191 #define HUFF_DECODE(result, state, htbl, failaction, slowlabel) { \ argument
202 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \
204 result = htbl->lookup[look] & ((1 << HUFF_LOOKAHEAD) - 1); \
208 jpeg_huff_decode(&state, get_buffer, bits_left, htbl, nb)) < 0) \
214 #define HUFF_DECODE_FAST(s, nb, htbl) \ argument
217 s = htbl->lookup[s]; \
226 while (s > htbl->maxcode[nb]) { \
231 s = htbl->pub->huffval[(int)(s + htbl->valoffset[nb]) & 0xFF]; \
237 register int bits_left, d_derived_tbl *htbl,
Djdhuff.c161 JHUFF_TBL *htbl; in jpeg_make_d_derived_tbl() local
176 htbl = in jpeg_make_d_derived_tbl()
178 if (htbl == NULL) in jpeg_make_d_derived_tbl()
187 dtbl->pub = htbl; /* fill in back link */ in jpeg_make_d_derived_tbl()
193 i = (int)htbl->bits[l]; in jpeg_make_d_derived_tbl()
226 if (htbl->bits[l]) { in jpeg_make_d_derived_tbl()
231 p += htbl->bits[l]; in jpeg_make_d_derived_tbl()
252 for (i = 1; i <= (int)htbl->bits[l]; i++, p++) { in jpeg_make_d_derived_tbl()
257 dtbl->lookup[lookbits] = (l << HUFF_LOOKAHEAD) | htbl->huffval[p]; in jpeg_make_d_derived_tbl()
271 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.c224 JHUFF_TBL *htbl; in jpeg_make_c_derived_tbl() local
238 htbl = in jpeg_make_c_derived_tbl()
240 if (htbl == NULL) in jpeg_make_c_derived_tbl()
254 i = (int)htbl->bits[l]; in jpeg_make_c_derived_tbl()
300 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()
1013 htbl->huffval[p] = (UINT8)j; in jpeg_gen_optimal_table()
1020 htbl->sent_table = FALSE; in jpeg_gen_optimal_table()
Djchuff.h41 EXTERN(void) jpeg_gen_optimal_table(j_compress_ptr cinfo, JHUFF_TBL *htbl,
/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()