/external/libxaac/decoder/ |
D | ixheaacd_aacpluscheck.c | 60 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 …]
|
D | ixheaacd_common_lpfuncs.c | 182 start_pos = temp_bs.cnt_bits; in ixheaacd_read_data_stream_element() 205 if (!drc_handle->dvb_anc_data_present && temp_bs.cnt_bits >= 0) { in ixheaacd_read_data_stream_element() 212 if (it_bit_buff->cnt_bits < (cnt << 3)) { in ixheaacd_read_data_stream_element() 217 it_bit_buff->cnt_bits -= ((cnt) << 3); in ixheaacd_read_data_stream_element() 244 if (it_bit_buff->cnt_bits < ((count - 1) << 3)) { in ixheaacd_read_fill_element() 249 it_bit_buff->cnt_bits -= ((count - 1) << 3); in ixheaacd_read_fill_element() 279 aac_dec_handle->byte_align_bits = it_bit_buff->cnt_bits; in ixheaacd_get_element_index_tag() 283 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag() 284 it_bit_buff->cnt_bits = -1; in ixheaacd_get_element_index_tag() 301 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag() [all …]
|
D | ixheaacd_bitbuffer.c | 41 alignment = (WORD)((*align_bits_cnt - it_bit_buff->cnt_bits) & 0x07); in ixheaacd_byte_align() 47 *align_bits_cnt = it_bit_buff->cnt_bits; in ixheaacd_byte_align() 54 if (it_bit_buff->cnt_bits < no_of_bits || it_bit_buff->cnt_bits < 0) in ixheaacd_skip_bits_buf() 57 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_skip_bits_buf() 81 if (it_bit_buff->cnt_bits < no_of_bits || it_bit_buff->cnt_bits < 0 || in ixheaacd_show_bits_buf() 119 if (it_bit_buff->cnt_bits < no_of_bits || it_bit_buff->cnt_bits < 0 || in ixheaacd_read_bits_buf() 125 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_read_bits_buf() 223 it_bit_buff->cnt_bits += no_of_bits; in ixheaacd_aac_read_bit() 241 if (it_bit_buff->cnt_bits < no_of_bits || it_bit_buff->cnt_bits < 0) { in ixheaacd_aac_read_bit_rev() 251 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_aac_read_bit_rev()
|
D | ixheaacd_aacdecoder.c | 115 WORD32 cnt_bits = 0; in ixheaacd_aacdec_decodeframe() local 299 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_aacdec_decodeframe() 307 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_aacdec_decodeframe() 308 it_bit_buff->cnt_bits = -1; in ixheaacd_aacdec_decodeframe() 324 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe() 386 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe() 412 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe() 474 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe() 505 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe() 524 bits_decoded = (it_bit_buff->size - it_bit_buff->cnt_bits); in ixheaacd_aacdec_decodeframe() [all …]
|
D | ixheaacd_common_initfuncs.c | 135 it_bit_buff->cnt_bits = 0; in ixheaacd_create_bit_buf() 153 it_bit_buff->cnt_bits = (bit_buf_size << 3); in ixheaacd_create_init_bit_buf() 161 if ((it_bit_buff->cnt_bits < 0) || in ixheaacd_read_bidirection() 162 (it_bit_buff->cnt_bits - ixheaacd_drc_offset < 0) || in ixheaacd_read_bidirection() 163 (it_bit_buff->cnt_bits - ixheaacd_drc_offset > it_bit_buff->size)) { in ixheaacd_read_bidirection() 167 it_bit_buff->cnt_bits = it_bit_buff->cnt_bits - ixheaacd_drc_offset; in ixheaacd_read_bidirection()
|
D | ixheaacd_headerdecode.c | 111 it_bit_buff->cnt_bits -= num_bit; in ixheaacd_aac_bytealign() 305 if (it_bit_buff->cnt_bits < 12) { in ixheaacd_find_syncword() 490 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_ga_hdr_dec() local 653 dummy = ixheaacd_skip_bits_buf(it_bit_buff, it_bit_buff->cnt_bits); in ixheaacd_ga_hdr_dec() 711 tmp = (header_len * 8) - it_bit_buff->cnt_bits; in ixheaacd_ga_hdr_dec() 714 (it_bit_buff->cnt_bits >= 16)) { in ixheaacd_ga_hdr_dec() 731 if (it_bit_buff->cnt_bits >= 12) { in ixheaacd_ga_hdr_dec() 755 *bytes_consumed = (cnt_bits - it_bit_buff->cnt_bits) >> 3; in ixheaacd_ga_hdr_dec() 794 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_latm_header_decode() local 807 if (it_bit_buff->cnt_bits < 13) { in ixheaacd_latm_header_decode() [all …]
|
D | ixheaacd_bitbuffer.h | 39 WORD32 cnt_bits; member 68 WORD32 cnt_bits; member 116 UWORD32 ixheaacd_aac_showbits_32(UWORD8 *ptr_read_next, WORD32 cnt_bits, 128 #define get_no_bits_available(it_bit_buff) ((it_bit_buff)->cnt_bits) 130 ((it_bit_buff)->size - (it_bit_buff)->cnt_bits)
|
D | ixheaacd_latmdemux.c | 122 (it_bit_buff->size - it_bit_buff->cnt_bits) >> 3; in ixheaacd_latm_payload_length_info() 201 pos = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_latm_stream_mux_config() 209 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config() 214 asc_len -= (it_bit_buff->size - it_bit_buff->cnt_bits) - pos; in ixheaacd_latm_stream_mux_config() 231 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config() 269 if (latm_element->other_data_length > (UWORD32)it_bit_buff->cnt_bits) in ixheaacd_latm_stream_mux_config()
|
D | ixheaacd_adts_crc_check.c | 83 it_crc_bit_buff_dst->cnt_bits = it_bit_buff_src->cnt_bits; in ixheaacd_copy_bit_buf_state() 128 ptr_adts_crc_info->str_crc_reg_data[reg].str_bit_buf.cnt_bits - in ixheaacd_adts_crc_end_reg() 129 it_bit_buff_src->cnt_bits; in ixheaacd_adts_crc_end_reg()
|
D | ixheaacd_decode_main.c | 194 preroll_frame_offset[frame_idx] = temp_buff->size - temp_buff->cnt_bits; in ixheaacd_audio_preroll_parsing() 196 (8 * au_len) + (temp_buff->size - temp_buff->cnt_bits); in ixheaacd_audio_preroll_parsing() 198 temp_buff->cnt_bits -= au_len * 8; in ixheaacd_audio_preroll_parsing() 273 pstr_dec_data->dec_bit_buf.cnt_bits = pstr_dec_data->dec_bit_buf.size; in ixheaacd_dec_main() 302 config_bit_buf.cnt_bits = config_bit_buf.size; in ixheaacd_dec_main() 336 pstr_dec_data->dec_bit_buf.cnt_bits = pstr_dec_data->dec_bit_buf.size; in ixheaacd_dec_main() 342 pstr_dec_data->dec_bit_buf.cnt_bits = in ixheaacd_dec_main()
|
D | ixheaacd_process.c | 155 cnt_bits_in = it_bit_buff->cnt_bits; in ixheaacd_sbr_ext_data_read() 156 count = (it_bit_buff->cnt_bits) >> 3; in ixheaacd_sbr_ext_data_read() 200 if ((it_bit_buff->cnt_bits >> 3) < (WORD32)pay_load_length) in ixheaacd_read_ext_element() 224 if (it_bit_buff->cnt_bits < (WORD32)(pay_load_length << 3)) { in ixheaacd_read_ext_element() 230 it_bit_buff->cnt_bits = in ixheaacd_read_ext_element() 231 it_bit_buff->cnt_bits - (WORD32)(pay_load_length << 3); in ixheaacd_read_ext_element()
|
D | ixheaacd_api.c | 188 (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() 1714 { it_bit_buff->initial_cnt_bits = it_bit_buff->cnt_bits; } in ixheaacd_dec_init() 1744 WORD32 cnt_bits; in ixheaacd_dec_init() local 1747 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_dec_init() 1748 if (it_bit_buff->cnt_bits <= 24) { in ixheaacd_dec_init() 1754 if (it_bit_buff->cnt_bits < 11) { in ixheaacd_dec_init() 1757 (cnt_bits - it_bit_buff->cnt_bits) / 8; in ixheaacd_dec_init() 1762 it_bit_buff->audio_mux_align = it_bit_buff->cnt_bits - 13; in ixheaacd_dec_init() [all …]
|
D | ixheaacd_rev_vlc.c | 411 *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 …]
|
D | ixheaacd_block.c | 179 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word1() 356 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word2_11() 513 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_quad() 654 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word2_quad() 823 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_pair() 921 read_word = ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->cnt_bits, in ixheaacd_huffman_dec_word2_pair() 1066 it_bit_buff->cnt_bits -= bits_cons; in ixheaacd_decode_huffman() 1078 WORD32 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_huffman_dec_word2() local 1121 it_bit_buff->cnt_bits = cnt_bits - bits_cons; in ixheaacd_huffman_dec_word2() 1128 it_bit_buff->cnt_bits = cnt_bits - bits_cons; in ixheaacd_huffman_dec_word2()
|
D | ixheaacd_channel.c | 85 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() 498 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_individual_ch_stream() 514 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_individual_ch_stream() 895 if (it_bit_buff->cnt_bits < in ixheaacd_read_spectral_data() 901 it_bit_buff->cnt_bits += in ixheaacd_read_spectral_data() 905 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_read_spectral_data() 906 it_bit_buff->bit_pos = (it_bit_buff->size - it_bit_buff->cnt_bits) & 7; in ixheaacd_read_spectral_data() 911 ((it_bit_buff->size - it_bit_buff->cnt_bits) >> 3); in ixheaacd_read_spectral_data() [all …]
|
D | ixheaacd_huff_code_reorder.c | 284 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 …]
|
D | ixheaacd_sbr_payload.h | 27 WORD32 cnt_bits, WORD32 ld_sbr_crc_flag, ia_drc_dec_struct *drc_dummy);
|
D | ixheaacd_multichannel.c | 218 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()
|
D | ixheaacd_sbrdec_lpfuncs.c | 579 WORD cnt_bits; in ixheaacd_read_ps_data() local 587 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_read_ps_data() 620 num_bits_left -= (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data() 628 return (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data() 704 return (cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_read_ps_data()
|
D | ixheaacd_longblock.c | 178 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()
|
D | ixheaacd_init_config.c | 285 if ((it_bit_buff->cnt_bits >> 3) < (WORD32)usac_ext_element_config_length) in ixheaacd_ext_element_config() 288 it_bit_buff->cnt_bits -= (usac_ext_element_config_length << 3); in ixheaacd_ext_element_config() 489 if ((WORD32)usac_config_ext_len > (it_bit_buff->cnt_bits >> 3)) { in ixheaacd_config_extension()
|
D | ixheaacd_arith_dec.c | 1692 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() 1744 if (it_bit_buff->cnt_bits == 0) in ixheaacd_arith_decode() 1781 if (it_bit_buff->cnt_bits > 0) in ixheaacd_arith_decode() 1879 if (bit_count > it_bit_buff->cnt_bits) in ixheaacd_arth_decoding_level2()
|
D | ixheaacd_sbr_crc.c | 82 bits_available = it_bit_buff->cnt_bits; in ixheaacd_sbr_crccheck()
|
/external/libxaac/decoder/drc_src/ |
D | impd_drc_bitbuffer.c | 38 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() 98 it_bit_buff->cnt_bits = 0; in impd_create_bit_buf() 108 it_bit_buff->cnt_bits = (bit_buf_size << 3); in impd_create_init_bit_buf() 200 *num_bits_read = (it_bit_buff->size) - it_bit_buff->cnt_bits; in impd_process_drc_bitstream_dec_gain()
|
D | impd_drc_bitbuffer.h | 30 WORD32 cnt_bits; member
|