Home
last modified time | relevance | path

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

12

/external/libxaac/decoder/
Dixheaacd_aacpluscheck.c60 WORD32 cnt_bits, WORD32 ld_sbr_crc_flag, ia_drc_dec_struct *drc_dummy) { in ixheaacd_check_for_sbr_payload() argument
65 count = it_bit_buff->cnt_bits >> 3; in ixheaacd_check_for_sbr_payload()
66 if (adtsheader == 1) count = cnt_bits >> 3; in ixheaacd_check_for_sbr_payload()
120 cnt_bits = cnt_bits - 8; in ixheaacd_check_for_sbr_payload()
128 cnt_bits = cnt_bits - 8; in ixheaacd_check_for_sbr_payload()
129 if (cnt_bits > 0) { in ixheaacd_check_for_sbr_payload()
130 WORD32 unaligned_bits = (8 - it_bit_buff->cnt_bits); in ixheaacd_check_for_sbr_payload()
132 (WORD8)ixheaacd_read_bits_buf(it_bit_buff, cnt_bits); in ixheaacd_check_for_sbr_payload()
137 if (it_bit_buff->cnt_bits > 0) { in ixheaacd_check_for_sbr_payload()
138 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()
525 bits_decoded = (it_bit_buff->size - it_bit_buff->cnt_bits); in ixheaacd_aacdec_decodeframe()
[all …]
Dixheaacd_common_lpfuncs.c184 start_pos = temp_bs.cnt_bits; in ixheaacd_read_data_stream_element()
207 if (!drc_handle->dvb_anc_data_present && temp_bs.cnt_bits >= 0) { in ixheaacd_read_data_stream_element()
214 if (it_bit_buff->cnt_bits < (cnt << 3)) { in ixheaacd_read_data_stream_element()
219 it_bit_buff->cnt_bits -= ((cnt) << 3); in ixheaacd_read_data_stream_element()
247 if (it_bit_buff->cnt_bits < ((count - 1) << 3)) { in ixheaacd_read_fill_element()
252 it_bit_buff->cnt_bits -= ((count - 1) << 3); in ixheaacd_read_fill_element()
283 aac_dec_handle->byte_align_bits = it_bit_buff->cnt_bits; in ixheaacd_get_element_index_tag()
287 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag()
288 it_bit_buff->cnt_bits = -1; in ixheaacd_get_element_index_tag()
305 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag()
[all …]
Dixheaacd_bitbuffer.c40 alignment = (WORD)((*align_bits_cnt - it_bit_buff->cnt_bits) & 0x07); in ixheaacd_byte_align()
46 *align_bits_cnt = it_bit_buff->cnt_bits; in ixheaacd_byte_align()
53 if (it_bit_buff->cnt_bits < no_of_bits) in ixheaacd_skip_bits_buf()
56 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_skip_bits_buf()
76 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_show_bits_buf()
107 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_read_bits_buf()
112 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_read_bits_buf()
116 if (0 == it_bit_buff->cnt_bits) { in ixheaacd_read_bits_buf()
217 it_bit_buff->cnt_bits += no_of_bits; in ixheaacd_aac_read_bit()
235 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_aac_read_bit_rev()
[all …]
Dixheaacd_headerdecode.c111 it_bit_buff->cnt_bits -= num_bit; in ixheaacd_aac_bytealign()
305 if (it_bit_buff->cnt_bits < 12) { in ixheaacd_find_syncword()
489 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_ga_hdr_dec() local
644 dummy = ixheaacd_skip_bits_buf(it_bit_buff, it_bit_buff->cnt_bits); in ixheaacd_ga_hdr_dec()
702 tmp = (header_len * 8) - it_bit_buff->cnt_bits; in ixheaacd_ga_hdr_dec()
705 (it_bit_buff->cnt_bits >= 16)) { in ixheaacd_ga_hdr_dec()
722 if (it_bit_buff->cnt_bits >= 12) { in ixheaacd_ga_hdr_dec()
746 *bytes_consumed = (cnt_bits - it_bit_buff->cnt_bits) >> 3; in ixheaacd_ga_hdr_dec()
785 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_latm_header_decode() local
798 if (it_bit_buff->cnt_bits < 13) { in ixheaacd_latm_header_decode()
[all …]
Dixheaacd_bitbuffer.h39 WORD32 cnt_bits; member
68 WORD32 cnt_bits; member
116 UWORD32 ixheaacd_aac_showbits_32(UWORD8 *ptr_read_next, WORD32 cnt_bits,
129 #define get_no_bits_available(it_bit_buff) ((it_bit_buff)->cnt_bits)
131 ((it_bit_buff)->size - (it_bit_buff)->cnt_bits)
Dixheaacd_latmdemux.c125 (it_bit_buff->size - it_bit_buff->cnt_bits) >> 3; in ixheaacd_latm_payload_length_info()
204 pos = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_latm_stream_mux_config()
212 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config()
217 asc_len -= (it_bit_buff->size - it_bit_buff->cnt_bits) - pos; in ixheaacd_latm_stream_mux_config()
234 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config()
272 if (latm_element->other_data_length > (UWORD32)it_bit_buff->cnt_bits) in ixheaacd_latm_stream_mux_config()
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_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()
284 pstr_dec_data->dec_bit_buf.cnt_bits = pstr_dec_data->dec_bit_buf.size; in ixheaacd_dec_main()
311 config_bit_buf.cnt_bits = config_bit_buf.size; in ixheaacd_dec_main()
345 pstr_dec_data->dec_bit_buf.cnt_bits = pstr_dec_data->dec_bit_buf.size; in ixheaacd_dec_main()
351 pstr_dec_data->dec_bit_buf.cnt_bits = in ixheaacd_dec_main()
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_process.c148 cnt_bits_in = it_bit_buff->cnt_bits; in ixheaacd_sbr_ext_data_read()
149 count = (it_bit_buff->cnt_bits) >> 3; in ixheaacd_sbr_ext_data_read()
193 if ((it_bit_buff->cnt_bits >> 3) < (WORD32)pay_load_length) in ixheaacd_read_ext_element()
207 if (it_bit_buff->cnt_bits < (WORD32)(pay_load_length << 3)) { in ixheaacd_read_ext_element()
213 it_bit_buff->cnt_bits = in ixheaacd_read_ext_element()
214 it_bit_buff->cnt_bits - (WORD32)(pay_load_length << 3); in ixheaacd_read_ext_element()
Dixheaacd_api.c188 (it_bit_buff->cnt_bits == 0)) { in ixheaacd_updatebytesconsumed()
192 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_updatebytesconsumed()
213 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_readifadts()
1660 { it_bit_buff->initial_cnt_bits = it_bit_buff->cnt_bits; } in ixheaacd_dec_init()
1690 WORD32 cnt_bits; in ixheaacd_dec_init() local
1693 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_dec_init()
1694 if (it_bit_buff->cnt_bits <= 24) { in ixheaacd_dec_init()
1700 if (it_bit_buff->cnt_bits < 11) { in ixheaacd_dec_init()
1703 (cnt_bits - it_bit_buff->cnt_bits) / 8; in ixheaacd_dec_init()
1708 it_bit_buff->audio_mux_align = it_bit_buff->cnt_bits - 13; in ixheaacd_dec_init()
[all …]
Dixheaacd_rev_vlc.c411 *ptr_position - (it_bit_buff->size - it_bit_buff->cnt_bits); in ixheaacd_rvlc_read_bits()
413 if (read_bit_offset) it_bit_buff->cnt_bits -= read_bit_offset; in ixheaacd_rvlc_read_bits()
417 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_rvlc_read_bits()
418 it_bit_buff->bit_pos = ((it_bit_buff->size - it_bit_buff->cnt_bits) & 7); in ixheaacd_rvlc_read_bits()
990 ptr_rvlc->rvl_fwd_bit_str_idx = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_rvlc_init()
992 it_bit_buff->size - it_bit_buff->cnt_bits + ptr_rvlc->rvlc_sf_len - 1; in ixheaacd_rvlc_init()
994 it_bit_buff->cnt_bits -= ptr_rvlc->rvlc_sf_len; in ixheaacd_rvlc_init()
997 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_rvlc_init()
998 it_bit_buff->bit_pos = ((it_bit_buff->size - it_bit_buff->cnt_bits) & 7); in ixheaacd_rvlc_init()
1001 ptr_rvlc->esc_bit_str_idx = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_rvlc_init()
[all …]
Dixheaacd_channel.c85 UWORD32 ixheaacd_aac_showbits_32(UWORD8 *ptr_read_next, WORD32 cnt_bits, in ixheaacd_aac_showbits_32() argument
94 if (cnt_bits > 0) { in ixheaacd_aac_showbits_32()
99 cnt_bits -= 8; in ixheaacd_aac_showbits_32()
497 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_individual_ch_stream()
513 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_individual_ch_stream()
891 if (it_bit_buff->cnt_bits < in ixheaacd_read_spectral_data()
897 it_bit_buff->cnt_bits += in ixheaacd_read_spectral_data()
901 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_read_spectral_data()
902 it_bit_buff->bit_pos = (it_bit_buff->size - it_bit_buff->cnt_bits) & 7; in ixheaacd_read_spectral_data()
907 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_read_spectral_data()
[all …]
Dixheaacd_block.c177 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word1()
354 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word2_11()
511 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_quad()
652 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word2_quad()
821 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_pair()
919 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word2_pair()
1064 it_bit_buff->cnt_bits -= bits_cons; in ixheaacd_decode_huffman()
1076 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_huffman_dec_word2() local
1119 it_bit_buff->cnt_bits = cnt_bits - bits_cons; in ixheaacd_huffman_dec_word2()
1126 it_bit_buff->cnt_bits = cnt_bits - bits_cons; in ixheaacd_huffman_dec_word2()
Dixheaacd_huff_code_reorder.c284 itt_bit_buff->size - itt_bit_buff->cnt_bits; in ixheaacd_huff_code_reorder_init()
1109 itt_bit_buff->ptr_read_next, itt_bit_buff->cnt_bits, &increment); in ixheaacd_decode_pcw()
1110 WORD32 read_bits = itt_bit_buff->cnt_bits; in ixheaacd_decode_pcw()
1249 itt_bit_buff->cnt_bits = read_bits; in ixheaacd_decode_pcw()
1507 (itt_bit_buff->size - itt_bit_buff->cnt_bits); in ixheaacd_decode_hcr_non_pcw()
1509 itt_bit_buff->cnt_bits += -read_bit_offset; in ixheaacd_decode_hcr_non_pcw()
1513 ((itt_bit_buff->size - itt_bit_buff->cnt_bits) >> 3); in ixheaacd_decode_hcr_non_pcw()
1515 ((itt_bit_buff->size - itt_bit_buff->cnt_bits) & 7); in ixheaacd_decode_hcr_non_pcw()
1529 (itt_bit_buff->size - itt_bit_buff->cnt_bits); in ixheaacd_decode_hcr_non_pcw()
1531 itt_bit_buff->cnt_bits += -read_bit_offset; in ixheaacd_decode_hcr_non_pcw()
[all …]
Dixheaacd_arith_dec.c1692 if (it_bit_buff->cnt_bits < 16) { in ixheaacd_arith_first_symbol()
1693 WORD32 shift_value = 16 - it_bit_buff->cnt_bits; in ixheaacd_arith_first_symbol()
1694 val = ixheaacd_read_bits_buf(it_bit_buff, it_bit_buff->cnt_bits); in ixheaacd_arith_first_symbol()
1739 if (it_bit_buff->cnt_bits < 16) { in ixheaacd_arith_decode()
1740 shift_value = 16 - it_bit_buff->cnt_bits; in ixheaacd_arith_decode()
1741 short_value = ixheaacd_read_bits_buf(it_bit_buff, it_bit_buff->cnt_bits); in ixheaacd_arith_decode()
1889 if (bit_count > it_bit_buff->cnt_bits) in ixheaacd_arth_decoding_level2()
Dixheaacd_sbrdec_lpfuncs.c570 WORD cnt_bits; in ixheaacd_read_ps_data() local
578 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_read_ps_data()
611 num_bits_left -= (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data()
619 return (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data()
695 return (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data()
Dixheaacd_multichannel.c218 ixheaacd_aac_showbits_32(bs->ptr_read_next, bs->cnt_bits, NULL); in ixheaacd_dec_coupling_channel_element()
232 bs->cnt_bits -= length; in ixheaacd_dec_coupling_channel_element()
252 if (bs->cnt_bits < 0) { in ixheaacd_dec_coupling_channel_element()
Dixheaacd_sbr_payload.h27 WORD32 cnt_bits, WORD32 ld_sbr_crc_flag, ia_drc_dec_struct *drc_dummy);
Dixheaacd_init_config.c284 if ((it_bit_buff->cnt_bits >> 3) < (WORD32)usac_ext_element_config_length) in ixheaacd_ext_element_config()
287 it_bit_buff->cnt_bits -= (usac_ext_element_config_length << 3); in ixheaacd_ext_element_config()
473 if ((WORD32)usac_config_ext_len > (it_bit_buff->cnt_bits >> 3)) { in ixheaacd_config_extension()
Dixheaacd_longblock.c178 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_read_scale_factor_data()
302 it_bit_buff->cnt_bits -= bits_consumed; in ixheaacd_read_scale_factor_data()
Dixheaacd_sbr_crc.c82 bits_available = it_bit_buff->cnt_bits; in ixheaacd_sbr_crccheck()
/external/libxaac/decoder/drc_src/
Dimpd_drc_bitbuffer.c38 if (it_bit_buff->cnt_bits <= 0) { in impd_read_bits_buf()
47 it_bit_buff->cnt_bits -= no_of_bits; in impd_read_bits_buf()
74 if (it_bit_buff->cnt_bits < no_of_bits) { in impd_skip_bits_buf()
79 it_bit_buff->cnt_bits -= no_of_bits; in impd_skip_bits_buf()
99 it_bit_buff->cnt_bits = 0; in impd_create_bit_buf()
110 it_bit_buff->cnt_bits = (bit_buf_size << 3); in impd_create_init_bit_buf()
207 *num_bits_read = it_bit_buff->size - it_bit_buff->cnt_bits; in impd_process_drc_bitstream_dec()
249 *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

12