Home
last modified time | relevance | path

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

/external/libjpeg-turbo/
Djdhuff.h97 int bits_left; /* # of unused bits in it */ member
109 int bits_left; /* # of unused bits in it */ member
117 register int bits_left; \
125 bits_left = permstate.bits_left;
131 permstate.bits_left = bits_left
152 if (bits_left < (nbits)) { \
153 if (!jpeg_fill_bit_buffer(&(state), get_buffer, bits_left, nbits)) \
155 get_buffer = (state).get_buffer; bits_left = (state).bits_left; \
160 (((int)(get_buffer >> (bits_left -= (nbits)))) & ((1 << (nbits)) - 1))
163 (((int)(get_buffer >> (bits_left - (nbits)))) & ((1 << (nbits)) - 1))
[all …]
Djdhuff.c141 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
303 register bit_buf_type get_buffer, register int bits_left, in jpeg_fill_bit_buffer() argument
317 while (bits_left < MIN_GET_BITS) { in jpeg_fill_bit_buffer()
368 bits_left += 8; in jpeg_fill_bit_buffer()
376 if (nbits > bits_left) { in jpeg_fill_bit_buffer()
387 get_buffer <<= MIN_GET_BITS - bits_left; in jpeg_fill_bit_buffer()
388 bits_left = MIN_GET_BITS; in jpeg_fill_bit_buffer()
396 state->bits_left = bits_left; in jpeg_fill_bit_buffer()
412 bits_left += 8; \
430 if (bits_left <= 16) { \
[all …]
Djdphuff.c192 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
249 cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8; in process_restart()
250 entropy->bitstate.bits_left = 0; in process_restart()
/external/v4l2_codec2/vda/
Dh264_bit_reader.cc69 int bits_left = num_bits; in ReadBits() local
73 while (num_remaining_bits_in_curr_byte_ < bits_left) { in ReadBits()
75 *out |= (curr_byte_ << (bits_left - num_remaining_bits_in_curr_byte_)); in ReadBits()
76 bits_left -= num_remaining_bits_in_curr_byte_; in ReadBits()
82 *out |= (curr_byte_ >> (num_remaining_bits_in_curr_byte_ - bits_left)); in ReadBits()
84 num_remaining_bits_in_curr_byte_ -= bits_left; in ReadBits()
Dvp9_bool_decoder.cc71 int bits_left = reader_->bits_available(); in Fill() local
72 if (bits_left < count_to_fill_) { in Fill()
80 int bits_to_read = std::min(max_bits_to_read, bits_left); in Fill()
Dvp8_bool_decoder.cc107 size_t bits_left = bytes_left * CHAR_BIT; in FillDecoder() local
108 int x = shift + CHAR_BIT - static_cast<int>(bits_left); in FillDecoder()
116 if (x < 0 || bits_left) { in FillDecoder()
Dvp9_raw_bits_reader.cc58 int bits_left = GetBytesRead() * 8 - reader_->bits_read(); in ConsumeTrailingBits() local
59 return ReadLiteral(bits_left) == 0; in ConsumeTrailingBits()
/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.c45 const size_t bits_left = bytes_left * CHAR_BIT; in vpx_reader_fill() local
54 if (bits_left > BD_VALUE_SIZE) { in vpx_reader_fill()
69 const int bits_over = (int)(shift + CHAR_BIT - (int)bits_left); in vpx_reader_fill()
76 if (bits_over < 0 || bits_left) { in vpx_reader_fill()
/external/libhevc/encoder/
Dihevce_cabac.c787 WORD32 bits_left; in ihevce_cabac_flush() local
836 bits_left = u4_bits_gen + 1; in ihevce_cabac_flush()
837 rem_bits = (u4_low >> (u4_bits_gen + CABAC_BITS - bits_left)); in ihevce_cabac_flush()
839 if(bits_left >= 8) in ihevce_cabac_flush()
841 last_byte = (rem_bits >> (bits_left - 8)) & 0xFF; in ihevce_cabac_flush()
843 bits_left -= 8; in ihevce_cabac_flush()
847 last_byte = (rem_bits << (8 - bits_left)) | (1 << (7 - bits_left)); in ihevce_cabac_flush()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h361 vl_vlc_limit(struct vl_vlc *vlc, unsigned bits_left) in vl_vlc_limit() argument
363 assert(bits_left <= vl_vlc_bits_left(vlc)); in vl_vlc_limit()
366 if (bits_left < vl_vlc_valid_bits(vlc)) { in vl_vlc_limit()
367 vlc->invalid_bits = 32 - bits_left; in vl_vlc_limit()
372 assert((bits_left - vl_vlc_valid_bits(vlc)) % 8 == 0); in vl_vlc_limit()
373 vlc->bytes_left = (bits_left - vl_vlc_valid_bits(vlc)) / 8; in vl_vlc_limit()
Dvl_rbsp.h53 unsigned valid, bits_left = vl_vlc_bits_left(nal); in vl_rbsp_init() local
63 vl_vlc_limit(&rbsp->nal, bits_left - vl_vlc_bits_left(nal)); in vl_rbsp_init()
/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()
422 bits_left--; in quant_energy_finalise()
516 …t end, opus_val16 *oldEBands, int *fine_quant, int *fine_priority, int bits_left, ec_dec *dec, in… in unquant_energy_finalise() argument
523 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.c40 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill() local
41 int x = shift + CHAR_BIT - (int)bits_left; in vp8dx_bool_decoder_fill()
56 if (x < 0 || bits_left) { in vp8dx_bool_decoder_fill()
/external/libpng/contrib/pngminus/
Dpnm2png.c581 static int bits_left = 0; in get_data() local
591 if (bits_left <= 0) in get_data()
594 bits_left = 8; in get_data()
602 bits_left -= depth; in get_data()
/external/libvpx/libvpx/vp8/encoder/
Dfirstpass.c357 max_bits = (int)(((double)cpi->twopass.bits_left / in frame_max_bits()
1279 cpi->twopass.bits_left = (int64_t)(cpi->twopass.total_stats.duration * in vp8_init_second_pass()
1281 cpi->twopass.bits_left -= (int64_t)(cpi->twopass.total_stats.duration * in vp8_init_second_pass()
1970 (cpi->twopass.bits_left > 0) ? cpi->twopass.bits_left : 0; in define_gf_group()
2380 (int)(cpi->twopass.bits_left / frames_left), in vp8_second_pass()
2392 (int)(cpi->twopass.bits_left / frames_left), in vp8_second_pass()
2422 (int)(cpi->twopass.bits_left / frames_left), in vp8_second_pass()
2695 if ((cpi->twopass.bits_left > 0) && in find_next_key_frame()
2707 (int64_t)(cpi->twopass.bits_left * in find_next_key_frame()
2938 ((double)cpi->twopass.bits_left * in find_next_key_frame()
[all …]
Donyx_int.h572 int64_t bits_left; member
Donyx_if.c4608 cpi->twopass.bits_left, in encode_frame_to_data_rate()
4610 (double)cpi->twopass.bits_left / in encode_frame_to_data_rate()
4629 cpi->twopass.bits_left, in encode_frame_to_data_rate()
4755 cpi->twopass.bits_left -= 8 * (int)(*size); in Pass2Encode()
4761 cpi->twopass.bits_left += (int64_t)(two_pass_min_rate / cpi->framerate); in Pass2Encode()
/external/libaom/libaom/av1/encoder/
Dfirstpass.h138 int64_t bits_left; member
Dpass2_strategy.c1349 if (twopass->bits_left > 0 && twopass->modified_error_left > 0.0) { in find_next_key_frame()
1359 twopass->bits_left * (kf_group_err / twopass->modified_error_left)); in find_next_key_frame()
1542 (int)(twopass->bits_left / frames_left); in av1_get_second_pass_params()
1661 twopass->bits_left = in av1_init_second_pass()
1710 twopass->bits_left = AOMMAX(twopass->bits_left - bits_used, 0); in av1_twopass_postencode_update()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_firstpass.h156 int64_t bits_left; member
Dvp9_firstpass.c1714 twopass->bits_left = in vp9_init_second_pass()
2987 if (twopass->bits_left > 0 && twopass->normalized_score_left > 0.0) { in find_next_key_frame()
2997 twopass->bits_left * (kf_group_err / twopass->normalized_score_left)); in find_next_key_frame()
3166 (int)(twopass->bits_left / frames_left); in vp9_rc_get_second_pass_params()
3267 twopass->bits_left = VPXMAX(twopass->bits_left - bits_used, 0); in vp9_twopass_postencode_update()
Dvp9_encoder.c3397 cpi->twopass.bits_left,
3399 cpi->twopass.bits_left /
/external/libvpx/libvpx/vp9/
Dvp9_cx_iface.c1091 twopass->bits_left = in encoder_encode()