Home
last modified time | relevance | path

Searched refs:HUFF_LOOKAHEAD (Results 1 – 2 of 2) sorted by relevance

/external/libjpeg-turbo/
Djdhuff.h21 #define HUFF_LOOKAHEAD 8 /* # of bits of lookahead */ macro
46 int lookup[1 << HUFF_LOOKAHEAD];
193 if (bits_left < HUFF_LOOKAHEAD) { \
197 if (bits_left < HUFF_LOOKAHEAD) { \
201 look = PEEK_BITS(HUFF_LOOKAHEAD); \
202 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \
204 result = htbl->lookup[look] & ((1 << HUFF_LOOKAHEAD) - 1); \
216 s = PEEK_BITS(HUFF_LOOKAHEAD); \
218 nb = s >> HUFF_LOOKAHEAD; \
221 s = s & ((1 << HUFF_LOOKAHEAD) - 1); \
[all …]
Djdhuff.c247 for (i = 0; i < (1 << HUFF_LOOKAHEAD); i++) in jpeg_make_d_derived_tbl()
248 dtbl->lookup[i] = (HUFF_LOOKAHEAD + 1) << HUFF_LOOKAHEAD; in jpeg_make_d_derived_tbl()
251 for (l = 1; l <= HUFF_LOOKAHEAD; l++) { in jpeg_make_d_derived_tbl()
255 lookbits = huffcode[p] << (HUFF_LOOKAHEAD - l); in jpeg_make_d_derived_tbl()
256 for (ctr = 1 << (HUFF_LOOKAHEAD - l); ctr > 0; ctr--) { in jpeg_make_d_derived_tbl()
257 dtbl->lookup[lookbits] = (l << HUFF_LOOKAHEAD) | htbl->huffval[p]; in jpeg_make_d_derived_tbl()