/external/libxaac/decoder/ |
D | ixheaacd_aacpluscheck.c | 59 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 …]
|
D | ixheaacd_aacdecoder.c | 118 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 …]
|
D | ixheaacd_common_lpfuncs.c | 180 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 …]
|
D | ixheaacd_headerdecode.c | 108 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 …]
|
D | ixheaacd_decode_main.c | 206 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()
|
D | ixheaacd_common_initfuncs.c | 136 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()
|
D | ixheaacd_bitbuffer.h | 37 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)
|
D | ixheaacd_latmdemux.c | 124 (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()
|
D | ixheaacd_bitbuffer.c | 38 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()
|
D | ixheaacd_adts_crc_check.c | 84 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()
|
D | ixheaacd_rev_vlc.c | 406 *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 …]
|
D | ixheaacd_api.c | 189 (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 …]
|
D | ixheaacd_process.c | 147 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()
|
D | ixheaacd_huff_code_reorder.c | 284 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 …]
|
D | ixheaacd_sbrdec_lpfuncs.c | 566 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()
|
D | ixheaacd_channel.c | 484 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()
|
D | ixheaacd_sbr_payload.h | 27 WORD32 cnt_bits, WORD32 ld_sbr_crc_flag, ia_drc_dec_struct *drc_dummy);
|
D | ixheaacd_init_config.c | 283 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()
|
D | ixheaacd_sbr_crc.c | 82 bits_available = it_bit_buff->cnt_bits; in ixheaacd_sbr_crccheck()
|
D | ixheaacd_multichannel.c | 230 bs->cnt_bits -= length; in ixheaacd_dec_coupling_channel_element() 250 if (bs->cnt_bits < 0) { in ixheaacd_dec_coupling_channel_element()
|
D | ixheaacd_arith_dec.c | 1670 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()
|
D | ixheaacd_longblock.c | 312 it_bit_buff->cnt_bits -= bits_consumed; in ixheaacd_read_scale_factor_data()
|
/external/libxaac/decoder/drc_src/ |
D | impd_drc_bitbuffer.c | 39 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()
|
D | impd_drc_bitbuffer.h | 30 WORD32 cnt_bits; member
|
D | impd_drc_interface_decoder.c | 50 *num_bits_read = (it_bit_buff->size) - it_bit_buff->cnt_bits; in impd_drc_dec_interface_process()
|