Home
last modified time | relevance | path

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

12

/external/libxaac/decoder/
Dixheaacd_aacpluscheck.c59 WORD32 cnt_bits, WORD32 ld_sbr_crc_flag, ia_drc_dec_struct *drc_dummy) { in ixheaacd_check_for_sbr_payload() argument
64 count = it_bit_buff->cnt_bits >> 3; in ixheaacd_check_for_sbr_payload()
65 if (adtsheader == 1) count = cnt_bits >> 3; in ixheaacd_check_for_sbr_payload()
119 cnt_bits = cnt_bits - 8; in ixheaacd_check_for_sbr_payload()
127 cnt_bits = cnt_bits - 8; in ixheaacd_check_for_sbr_payload()
128 if (cnt_bits > 0) { in ixheaacd_check_for_sbr_payload()
129 WORD32 unaligned_bits = (8 - it_bit_buff->cnt_bits); in ixheaacd_check_for_sbr_payload()
131 (WORD8)ixheaacd_read_bits_buf(it_bit_buff, cnt_bits); in ixheaacd_check_for_sbr_payload()
136 if (it_bit_buff->cnt_bits > 0) { in ixheaacd_check_for_sbr_payload()
137 WORD32 unaligned_bits = (8 - it_bit_buff->cnt_bits); in ixheaacd_check_for_sbr_payload()
[all …]
Dixheaacd_aacdecoder.c118 WORD32 cnt_bits = 0; in ixheaacd_aacdec_decodeframe() local
302 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_aacdec_decodeframe()
310 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_aacdec_decodeframe()
311 it_bit_buff->cnt_bits = -1; in ixheaacd_aacdec_decodeframe()
327 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
389 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
414 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
475 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
506 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
520 bits_decoded = (it_bit_buff->size - it_bit_buff->cnt_bits); in ixheaacd_aacdec_decodeframe()
[all …]
Dixheaacd_common_lpfuncs.c180 start_pos = temp_bs.cnt_bits; in ixheaacd_read_data_stream_element()
203 if (!drc_handle->dvb_anc_data_present && temp_bs.cnt_bits >= 0) { in ixheaacd_read_data_stream_element()
211 it_bit_buff->cnt_bits -= ((cnt) << 3); in ixheaacd_read_data_stream_element()
243 it_bit_buff->cnt_bits -= ((count - 1) << 3); in ixheaacd_read_fill_element()
277 aac_dec_handle->byte_align_bits = it_bit_buff->cnt_bits; in ixheaacd_get_element_index_tag()
281 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag()
282 it_bit_buff->cnt_bits = -1; in ixheaacd_get_element_index_tag()
299 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag()
300 it_bit_buff->cnt_bits = -1; in ixheaacd_get_element_index_tag()
315 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_get_element_index_tag()
[all …]
Dixheaacd_headerdecode.c108 it_bit_buff->cnt_bits -= num_bit; in ixheaacd_aac_bytealign()
304 if (it_bit_buff->cnt_bits < 12) { in ixheaacd_find_syncword()
488 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_ga_hdr_dec() local
741 tmp = (header_len * 8) - it_bit_buff->cnt_bits; in ixheaacd_ga_hdr_dec()
744 (it_bit_buff->cnt_bits >= 16)) { in ixheaacd_ga_hdr_dec()
761 if (it_bit_buff->cnt_bits >= 12) { in ixheaacd_ga_hdr_dec()
785 *bytes_consumed = (cnt_bits - it_bit_buff->cnt_bits) >> 3; in ixheaacd_ga_hdr_dec()
823 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_latm_header_decode() local
836 if (it_bit_buff->cnt_bits < 13) { in ixheaacd_latm_header_decode()
838 *bytes_consumed = (cnt_bits - it_bit_buff->cnt_bits) / 8; in ixheaacd_latm_header_decode()
[all …]
Dixheaacd_decode_main.c206 preroll_frame_offset[frame_idx] = temp_buff->size - temp_buff->cnt_bits; in ixheaacd_audio_preroll_parsing()
208 (8 * au_len) + (temp_buff->size - temp_buff->cnt_bits); in ixheaacd_audio_preroll_parsing()
210 temp_buff->cnt_bits -= au_len * 8; in ixheaacd_audio_preroll_parsing()
282 pstr_dec_data->dec_bit_buf.cnt_bits = pstr_dec_data->dec_bit_buf.size; in ixheaacd_dec_main()
309 config_bit_buf->cnt_bits = config_bit_buf->size; in ixheaacd_dec_main()
338 pstr_dec_data->dec_bit_buf.cnt_bits = pstr_dec_data->dec_bit_buf.size; in ixheaacd_dec_main()
343 pstr_dec_data->dec_bit_buf.cnt_bits = in ixheaacd_dec_main()
Dixheaacd_common_initfuncs.c136 it_bit_buff->cnt_bits = 0; in ixheaacd_create_bit_buf()
154 it_bit_buff->cnt_bits = (bit_buf_size << 3); in ixheaacd_create_init_bit_buf()
163 it_bit_buff->cnt_bits = it_bit_buff->cnt_bits - ixheaacd_drc_offset; in ixheaacd_read_bidirection()
Dixheaacd_bitbuffer.h37 WORD32 cnt_bits; member
66 WORD32 cnt_bits; member
125 #define get_no_bits_available(it_bit_buff) ((it_bit_buff)->cnt_bits)
127 ((it_bit_buff)->size - (it_bit_buff)->cnt_bits)
Dixheaacd_latmdemux.c124 (it_bit_buff->size - it_bit_buff->cnt_bits) >> 3; in ixheaacd_latm_payload_length_info()
203 pos = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_latm_stream_mux_config()
211 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config()
216 asc_len -= (it_bit_buff->size - it_bit_buff->cnt_bits) - pos; in ixheaacd_latm_stream_mux_config()
233 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config()
Dixheaacd_bitbuffer.c38 alignment = (WORD)((*align_bits_cnt - it_bit_buff->cnt_bits) & 0x07); in ixheaacd_byte_align()
44 *align_bits_cnt = it_bit_buff->cnt_bits; in ixheaacd_byte_align()
82 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_read_bits_buf()
196 it_bit_buff->cnt_bits += no_of_bits; in ixheaacd_aac_read_bit()
219 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_aac_read_bit_rev()
Dixheaacd_adts_crc_check.c84 it_crc_bit_buff_dst->cnt_bits = it_bit_buff_src->cnt_bits; in ixheaacd_copy_bit_buf_state()
129 ptr_adts_crc_info->str_crc_reg_data[reg].str_bit_buf.cnt_bits - in ixheaacd_adts_crc_end_reg()
130 it_bit_buff_src->cnt_bits; in ixheaacd_adts_crc_end_reg()
Dixheaacd_rev_vlc.c406 *ptr_position - (it_bit_buff->size - it_bit_buff->cnt_bits); in ixheaacd_rvlc_read_bits()
408 if (read_bit_offset) it_bit_buff->cnt_bits -= read_bit_offset; in ixheaacd_rvlc_read_bits()
412 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_rvlc_read_bits()
413 it_bit_buff->bit_pos = ((it_bit_buff->size - it_bit_buff->cnt_bits) & 7); in ixheaacd_rvlc_read_bits()
985 ptr_rvlc->rvl_fwd_bit_str_idx = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_rvlc_init()
987 it_bit_buff->size - it_bit_buff->cnt_bits + ptr_rvlc->rvlc_sf_len - 1; in ixheaacd_rvlc_init()
989 it_bit_buff->cnt_bits -= ptr_rvlc->rvlc_sf_len; in ixheaacd_rvlc_init()
992 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_rvlc_init()
993 it_bit_buff->bit_pos = ((it_bit_buff->size - it_bit_buff->cnt_bits) & 7); in ixheaacd_rvlc_init()
996 ptr_rvlc->esc_bit_str_idx = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_rvlc_init()
[all …]
Dixheaacd_api.c189 (it_bit_buff->cnt_bits == 0)) { in ixheaacd_updatebytesconsumed()
193 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_updatebytesconsumed()
214 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_readifadts()
1632 { it_bit_buff->initial_cnt_bits = it_bit_buff->cnt_bits; } in ixheaacd_dec_init()
1662 WORD32 cnt_bits; in ixheaacd_dec_init() local
1665 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_dec_init()
1666 if (it_bit_buff->cnt_bits <= 24) { in ixheaacd_dec_init()
1672 if (it_bit_buff->cnt_bits < 11) { in ixheaacd_dec_init()
1675 (cnt_bits - it_bit_buff->cnt_bits) / 8; in ixheaacd_dec_init()
1680 it_bit_buff->audio_mux_align = it_bit_buff->cnt_bits - 13; in ixheaacd_dec_init()
[all …]
Dixheaacd_process.c147 cnt_bits_in = it_bit_buff->cnt_bits; in ixheaacd_sbr_ext_data_read()
148 count = (it_bit_buff->cnt_bits) >> 3; in ixheaacd_sbr_ext_data_read()
192 if ((it_bit_buff->cnt_bits >> 3) < (WORD32)pay_load_length) in ixheaacd_read_ext_element()
208 it_bit_buff->cnt_bits = in ixheaacd_read_ext_element()
209 it_bit_buff->cnt_bits - (WORD32)(pay_load_length * 8); in ixheaacd_read_ext_element()
Dixheaacd_huff_code_reorder.c284 itt_bit_buff->size - itt_bit_buff->cnt_bits; in ixheaacd_huff_code_reorder_init()
1101 WORD32 read_bits = itt_bit_buff->cnt_bits; in ixheaacd_decode_pcw()
1236 itt_bit_buff->cnt_bits = read_bits; in ixheaacd_decode_pcw()
1495 (itt_bit_buff->size - itt_bit_buff->cnt_bits); in ixheaacd_decode_hcr_non_pcw()
1497 itt_bit_buff->cnt_bits += -read_bit_offset; in ixheaacd_decode_hcr_non_pcw()
1501 ((itt_bit_buff->size - itt_bit_buff->cnt_bits) >> 3); in ixheaacd_decode_hcr_non_pcw()
1503 ((itt_bit_buff->size - itt_bit_buff->cnt_bits) & 7); in ixheaacd_decode_hcr_non_pcw()
1517 (itt_bit_buff->size - itt_bit_buff->cnt_bits); in ixheaacd_decode_hcr_non_pcw()
1519 itt_bit_buff->cnt_bits += -read_bit_offset; in ixheaacd_decode_hcr_non_pcw()
1523 ((itt_bit_buff->size - itt_bit_buff->cnt_bits) >> 3); in ixheaacd_decode_hcr_non_pcw()
[all …]
Dixheaacd_sbrdec_lpfuncs.c566 WORD cnt_bits; in ixheaacd_read_ps_data() local
574 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_read_ps_data()
607 num_bits_left -= (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data()
615 return (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data()
691 return (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data()
Dixheaacd_channel.c484 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_individual_ch_stream()
500 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_individual_ch_stream()
881 it_bit_buff->cnt_bits += in ixheaacd_read_spectral_data()
885 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_read_spectral_data()
886 it_bit_buff->bit_pos = (it_bit_buff->size - it_bit_buff->cnt_bits) & 7; in ixheaacd_read_spectral_data()
891 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_read_spectral_data()
892 it_bit_buff->bit_pos = (it_bit_buff->size - it_bit_buff->cnt_bits) & 7; in ixheaacd_read_spectral_data()
Dixheaacd_sbr_payload.h27 WORD32 cnt_bits, WORD32 ld_sbr_crc_flag, ia_drc_dec_struct *drc_dummy);
Dixheaacd_init_config.c283 if ((it_bit_buff->cnt_bits >> 3) < (WORD32)usac_ext_element_config_length) in ixheaacd_ext_element_config()
286 it_bit_buff->cnt_bits -= (usac_ext_element_config_length << 3); in ixheaacd_ext_element_config()
472 if ((WORD32)usac_config_ext_len > (it_bit_buff->cnt_bits >> 3)) { in ixheaacd_config_extension()
Dixheaacd_sbr_crc.c82 bits_available = it_bit_buff->cnt_bits; in ixheaacd_sbr_crccheck()
Dixheaacd_multichannel.c230 bs->cnt_bits -= length; in ixheaacd_dec_coupling_channel_element()
250 if (bs->cnt_bits < 0) { in ixheaacd_dec_coupling_channel_element()
Dixheaacd_arith_dec.c1670 it_bit_buff_dst->cnt_bits = it_bit_buff_src->cnt_bits; in ixheaacd_copy_to_bitbuff()
1879 if (bit_count > it_bit_buff->cnt_bits) in ixheaacd_arth_decoding_level2()
Dixheaacd_longblock.c312 it_bit_buff->cnt_bits -= bits_consumed; in ixheaacd_read_scale_factor_data()
/external/libxaac/decoder/drc_src/
Dimpd_drc_bitbuffer.c39 if (it_bit_buff->cnt_bits <= 0) { in impd_read_bits_buf()
48 it_bit_buff->cnt_bits -= no_of_bits; in impd_read_bits_buf()
80 it_bit_buff->cnt_bits = 0; in impd_create_bit_buf()
90 it_bit_buff->cnt_bits = (bit_buf_size << 3); in impd_create_init_bit_buf()
187 *num_bits_read = it_bit_buff->size - it_bit_buff->cnt_bits; in impd_process_drc_bitstream_dec()
229 *num_bits_read = (it_bit_buff->size) - it_bit_buff->cnt_bits; in impd_process_drc_bitstream_dec_gain()
Dimpd_drc_bitbuffer.h30 WORD32 cnt_bits; member
Dimpd_drc_interface_decoder.c50 *num_bits_read = (it_bit_buff->size) - it_bit_buff->cnt_bits; in impd_drc_dec_interface_process()

12