Home
last modified time | relevance | path

Searched refs:bits_left (Results 1 – 21 of 21) sorted by relevance

/external/pdfium/third_party/libjpeg/
Djdhuff.h84 int bits_left; /* # of unused bits in it */ member
96 int bits_left; /* # of unused bits in it */ member
104 register int bits_left; \
112 bits_left = permstate.bits_left;
118 permstate.bits_left = bits_left
139 { if (bits_left < (nbits)) { \
140 if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \
142 get_buffer = (state).get_buffer; bits_left = (state).bits_left; } }
145 (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1))
148 (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1))
[all …]
Dfpdfapi_jdhuff.c135 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
296 register bit_buf_type get_buffer, register int bits_left, in jpeg_fill_bit_buffer() argument
310 while (bits_left < MIN_GET_BITS) { in jpeg_fill_bit_buffer()
361 bits_left += 8; in jpeg_fill_bit_buffer()
369 if (nbits > bits_left) { in jpeg_fill_bit_buffer()
380 get_buffer <<= MIN_GET_BITS - bits_left; in jpeg_fill_bit_buffer()
381 bits_left = MIN_GET_BITS; in jpeg_fill_bit_buffer()
389 state->bits_left = bits_left; in jpeg_fill_bit_buffer()
402 register bit_buf_type get_buffer, register int bits_left, in jpeg_huff_decode() argument
426 state->bits_left = bits_left; in jpeg_huff_decode()
[all …]
Dfpdfapi_jdphuff.c184 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
235 cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8; in process_restart()
236 entropy->bitstate.bits_left = 0; in process_restart()
/external/libjpeg-turbo/
Djdhuff.h95 int bits_left; /* # of unused bits in it */ member
107 int bits_left; /* # of unused bits in it */ member
115 register int bits_left; \
123 bits_left = permstate.bits_left;
129 permstate.bits_left = bits_left
150 { if (bits_left < (nbits)) { \
151 if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \
153 get_buffer = (state).get_buffer; bits_left = (state).bits_left; } }
156 (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1))
159 (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1))
[all …]
Djdhuff.c137 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
299 register bit_buf_type get_buffer, register int bits_left, in jpeg_fill_bit_buffer() argument
313 while (bits_left < MIN_GET_BITS) { in jpeg_fill_bit_buffer()
364 bits_left += 8; in jpeg_fill_bit_buffer()
372 if (nbits > bits_left) { in jpeg_fill_bit_buffer()
383 get_buffer <<= MIN_GET_BITS - bits_left; in jpeg_fill_bit_buffer()
384 bits_left = MIN_GET_BITS; in jpeg_fill_bit_buffer()
392 state->bits_left = bits_left; in jpeg_fill_bit_buffer()
409 bits_left += 8; \
427 if (bits_left <= 16) { \
[all …]
Djdphuff.c187 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
240 cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8; in process_restart()
241 entropy->bitstate.bits_left = 0; in process_restart()
/external/opencv3/3rdparty/libjpeg/
Djdhuff.c81 int bits_left; /* # of unused bits in it */ member
93 int bits_left; /* # of unused bits in it */ member
101 register int bits_left; \
109 bits_left = permstate.bits_left;
115 permstate.bits_left = bits_left
136 { if (bits_left < (nbits)) { \
137 if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \
139 get_buffer = (state).get_buffer; bits_left = (state).bits_left; } }
142 (((int) (get_buffer >> (bits_left -= (nbits)))) & BIT_MASK(nbits))
145 (((int) (get_buffer >> (bits_left - (nbits)))) & BIT_MASK(nbits))
[all …]
/external/libavc/encoder/
Dih264e_cabac.c266 WORD32 bits_left; in ih264e_cabac_flush() local
304 bits_left = u4_bits_gen + 1; in ih264e_cabac_flush()
305 rem_bits = (u4_low >> (u4_bits_gen + CABAC_BITS - bits_left)); in ih264e_cabac_flush()
307 if (bits_left >= 8) in ih264e_cabac_flush()
309 last_byte = (rem_bits >> (bits_left - 8)) & 0xFF; in ih264e_cabac_flush()
311 bits_left -= 8; in ih264e_cabac_flush()
315 last_byte = (rem_bits << (8 - bits_left)) in ih264e_cabac_flush()
316 | (1 << (7 - bits_left) | (1 << (7 - bits_left - 1))); in ih264e_cabac_flush()
/external/libvpx/libvpx/vpx_dsp/
Dbitreader.c48 const size_t bits_left = bytes_left * CHAR_BIT; in vpx_reader_fill() local
57 if (bits_left > BD_VALUE_SIZE) { in vpx_reader_fill()
72 const int bits_over = (int)(shift + CHAR_BIT - bits_left); in vpx_reader_fill()
79 if (bits_over < 0 || bits_left) { in vpx_reader_fill()
/external/libopus/celt/
Dquant_bands.c184 int bits_left; in quant_coarse_energy_impl() local
217 bits_left = budget-tell-3*C*(end-i); in quant_coarse_energy_impl()
218 if (i!=start && bits_left < 30) in quant_coarse_energy_impl()
220 if (bits_left < 24) in quant_coarse_energy_impl()
222 if (bits_left < 16) in quant_coarse_energy_impl()
398 …*oldEBands, opus_val16 *error, int *fine_quant, int *fine_priority, int bits_left, ec_enc *enc, in… in quant_energy_finalise() argument
405 for (i=start;i<end && bits_left>=C ;i++) in quant_energy_finalise()
421 bits_left--; in quant_energy_finalise()
515 …t end, opus_val16 *oldEBands, int *fine_quant, int *fine_priority, int bits_left, ec_dec *dec, in… in unquant_energy_finalise() argument
522 for (i=start;i<end && bits_left>=C ;i++) in unquant_energy_finalise()
[all …]
Dquant_bands.h58 …*oldEBands, opus_val16 *error, int *fine_quant, int *fine_priority, int bits_left, ec_enc *enc, in…
64 …nt end, opus_val16 *oldEBands, int *fine_quant, int *fine_priority, int bits_left, ec_dec *dec, in…
/external/libvpx/libvpx/vp8/decoder/
Ddboolhuff.c46 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill() local
47 int x = (int)(shift + CHAR_BIT - bits_left); in vp8dx_bool_decoder_fill()
63 if (x < 0 || bits_left) in vp8dx_bool_decoder_fill()
/external/libpng/contrib/pngminus/
Dpnm2png.c559 static int bits_left = 0; in get_data() local
569 if (bits_left <= 0) in get_data()
572 bits_left = 8; in get_data()
580 bits_left -= depth; in get_data()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_firstpass.h105 int64_t bits_left; member
Dvp9_firstpass.c1298 twopass->bits_left = (int64_t)(stats->duration * in vp9_init_second_pass()
1303 twopass->bits_left = (int64_t)(stats->duration * oxcf->target_bandwidth / in vp9_init_second_pass()
2410 if (twopass->bits_left > 0 && twopass->modified_error_left > 0.0) { in find_next_key_frame()
2419 twopass->kf_group_bits = (int64_t)(twopass->bits_left * in find_next_key_frame()
2645 const int section_target_bandwidth = (int)(twopass->bits_left / in vp9_rc_get_second_pass_params()
2772 twopass->bits_left = VPXMAX(twopass->bits_left - bits_used, 0); in vp9_twopass_postencode_update()
Dvp9_encoder.c2995 cpi->twopass.bits_left,
2997 cpi->twopass.bits_left /
/external/libvpx/libvpx/vp8/encoder/
Dfirstpass.c385 …max_bits = (int)(((double)cpi->twopass.bits_left / (cpi->twopass.total_stats.count - (double)cpi->… in frame_max_bits()
1356 …cpi->twopass.bits_left = (int64_t)(cpi->twopass.total_stats.duration * cpi->oxcf.target_bandwidth … in vp8_init_second_pass()
1357 …cpi->twopass.bits_left -= (int64_t)(cpi->twopass.total_stats.duration * two_pass_min_rate / 100000… in vp8_init_second_pass()
2117 (cpi->twopass.bits_left > 0) ? cpi->twopass.bits_left : 0; in define_gf_group()
2558 (int)(cpi->twopass.bits_left / frames_left), in vp8_second_pass()
2573 (int)(cpi->twopass.bits_left / frames_left), in vp8_second_pass()
2607 (int)(cpi->twopass.bits_left / frames_left), in vp8_second_pass()
2892 if ((cpi->twopass.bits_left > 0) && (cpi->twopass.modified_error_left > 0.0)) in find_next_key_frame()
2903 cpi->twopass.kf_group_bits = (int64_t)( cpi->twopass.bits_left * in find_next_key_frame()
3153 ((double)cpi->twopass.bits_left * in find_next_key_frame()
[all …]
Donyx_int.h587 int64_t bits_left; member
Donyx_if.c5043 cpi->twopass.bits_left, in encode_frame_to_data_rate()
5045 (double)cpi->twopass.bits_left / in encode_frame_to_data_rate()
5064 cpi->twopass.bits_left, in encode_frame_to_data_rate()
5204 cpi->twopass.bits_left -= 8 * *size; in Pass2Encode()
5210 cpi->twopass.bits_left += (int64_t)(two_pass_min_rate / cpi->framerate); in Pass2Encode()
/external/pdfium/core/src/fxcodec/lgif/
Dfx_gif.cpp19 bits_left = 0; in InitTable()
79 while (i <= des_size && (avail_in > 0 || bits_left >= code_size_cur)) { in Decode()
88 code_store |= (*next_in++) << bits_left; in Decode()
90 bits_left += 8; in Decode()
92 while (bits_left >= code_size_cur) { in Decode()
95 bits_left -= code_size_cur; in Decode()
Dfx_gif.h155 uint8_t bits_left; variable