• Home
  • Raw
  • Download

Lines Matching refs:nbits_in_reservoir

163 #define fill_nbits(reservoir,nbits_in_reservoir,stream,nbits_wanted) do { \  argument
164 while (nbits_in_reservoir<nbits_wanted) \
174 nbits_in_reservoir+=8; \
179 #define get_nbits(reservoir,nbits_in_reservoir,stream,nbits_wanted,result) do { \ argument
180 fill_nbits(reservoir,nbits_in_reservoir,stream,(nbits_wanted)); \
181 result = ((reservoir)>>(nbits_in_reservoir-(nbits_wanted))); \
182 nbits_in_reservoir -= (nbits_wanted); \
183 reservoir &= ((1U<<nbits_in_reservoir)-1); \
188 #define look_nbits(reservoir,nbits_in_reservoir,stream,nbits_wanted,result) do { \ argument
189 fill_nbits(reservoir,nbits_in_reservoir,stream,(nbits_wanted)); \
190 result = ((reservoir)>>(nbits_in_reservoir-(nbits_wanted))); \
201 #define skip_nbits(reservoir,nbits_in_reservoir,stream,nbits_wanted) do { \ argument
202 nbits_in_reservoir -= (nbits_wanted); \
203 reservoir &= ((1U<<nbits_in_reservoir)-1); \
228 look_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, HUFFMAN_HASH_NBITS, hcode); in get_next_huffman_code()
233 skip_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, code_size); in get_next_huffman_code()
242 look_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, nbits, hcode); in get_next_huffman_code()
247 skip_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, nbits); in get_next_huffman_code()
282 get_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, huff_code, DCT[0]); in tinyjpeg_process_Huffman_data_unit()
314 get_nbits(priv->reservoir, priv->nbits_in_reservoir, priv->stream, size_val, DCT[j]); in tinyjpeg_process_Huffman_data_unit()
687 priv->nbits_in_reservoir = 0; in resync()
961 priv->stream -= (priv->nbits_in_reservoir/8); in tinyjpeg_decode()