Lines Matching refs:it_bit_buff
106 ia_bit_buf_struct *it_bit_buff; in ixheaacd_aacdec_decodeframe() local
136 it_bit_buff = p_state_enhaacplus_dec->ptr_bit_stream; in ixheaacd_aacdec_decodeframe()
138 ptr_adts_crc_info = it_bit_buff->pstr_adts_crc_info; in ixheaacd_aacdec_decodeframe()
302 cnt_bits = it_bit_buff->cnt_bits; in ixheaacd_aacdec_decodeframe()
307 ele_type = (WORD)ixheaacd_read_bits_buf(it_bit_buff, 3); in ixheaacd_aacdec_decodeframe()
308 ixheaacd_read_bidirection(it_bit_buff, -3); 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()
318 ele_type = (WORD)ixheaacd_read_bits_buf(it_bit_buff, 3); in ixheaacd_aacdec_decodeframe()
324 ele_type = (WORD)ixheaacd_read_bits_buf(it_bit_buff, 3); in ixheaacd_aacdec_decodeframe()
327 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
353 ptr_adts_crc_info, it_bit_buff, CRC_ADTS_RAW_DATA_BLK_LEN); in ixheaacd_aacdec_decodeframe()
357 (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_aacdec_decodeframe()
381 (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_aacdec_decodeframe()
385 it_bit_buff, ptr_ics_info, aac_dec_handle->num_swb_window, in ixheaacd_aacdec_decodeframe()
389 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
401 ixheaacd_read_ms_data(it_bit_buff, pstr_aac_dec_ch_info); in ixheaacd_aacdec_decodeframe()
406 it_bit_buff, aac_dec_handle, ele_ch, frame_length, in ixheaacd_aacdec_decodeframe()
410 ixheaacd_adts_crc_end_reg(ptr_adts_crc_info, it_bit_buff, in ixheaacd_aacdec_decodeframe()
414 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
447 it_bit_buff, aac_dec_handle, in ixheaacd_aacdec_decodeframe()
475 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
492 ixheaacd_adts_crc_start_reg(ptr_adts_crc_info, it_bit_buff, 0); in ixheaacd_aacdec_decodeframe()
496 it_bit_buff, &aac_dec_handle->byte_align_bits, in ixheaacd_aacdec_decodeframe()
502 it_bit_buff, 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()
528 if (cnt_bits > it_bit_buff->cnt_bits) in ixheaacd_aacdec_decodeframe()
534 it_bit_buff, aac_dec_handle->pstr_sbr_bitstream, in ixheaacd_aacdec_decodeframe()
541 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
553 ixheaacd_adts_crc_end_reg(ptr_adts_crc_info, it_bit_buff, crc_reg); in ixheaacd_aacdec_decodeframe()
599 ptr_adts_crc_info, it_bit_buff, CRC_ADTS_RAW_DATA_BLK_LEN); in ixheaacd_aacdec_decodeframe()
604 (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_aacdec_decodeframe()
628 (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_aacdec_decodeframe()
634 it_bit_buff, ptr_ics_info, aac_dec_handle->num_swb_window, in ixheaacd_aacdec_decodeframe()
638 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
650 ixheaacd_read_ms_data(it_bit_buff, pstr_aac_dec_ch_info); in ixheaacd_aacdec_decodeframe()
655 it_bit_buff, ptr_ics_info, object_type, in ixheaacd_aacdec_decodeframe()
667 it_bit_buff, aac_dec_handle, ele_ch, frame_length, in ixheaacd_aacdec_decodeframe()
671 ixheaacd_adts_crc_end_reg(ptr_adts_crc_info, it_bit_buff, in ixheaacd_aacdec_decodeframe()
675 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_aacdec_decodeframe()
709 bits_decoded = (it_bit_buff->size - it_bit_buff->cnt_bits); in ixheaacd_aacdec_decodeframe()
713 ixheaacd_extension_payload(it_bit_buff, cnt_bits); in ixheaacd_aacdec_decodeframe()
719 if (it_bit_buff->cnt_bits) { in ixheaacd_aacdec_decodeframe()
720 WORD32 alignment = it_bit_buff->bit_pos & 0x07; in ixheaacd_aacdec_decodeframe()
721 it_bit_buff->cnt_bits = (it_bit_buff->cnt_bits + alignment) & 7; in ixheaacd_aacdec_decodeframe()
722 it_bit_buff->bit_pos = 7; in ixheaacd_aacdec_decodeframe()
723 it_bit_buff->ptr_read_next++; in ixheaacd_aacdec_decodeframe()
726 if (it_bit_buff->bit_pos != 7) { in ixheaacd_aacdec_decodeframe()
727 WORD32 alignment = it_bit_buff->bit_pos & 0x07; in ixheaacd_aacdec_decodeframe()
728 it_bit_buff->cnt_bits -= alignment + 1; in ixheaacd_aacdec_decodeframe()
729 it_bit_buff->bit_pos += 7 - alignment; in ixheaacd_aacdec_decodeframe()
730 it_bit_buff->ptr_read_next++; in ixheaacd_aacdec_decodeframe()
735 bits_decoded = (it_bit_buff->size - it_bit_buff->cnt_bits); in ixheaacd_aacdec_decodeframe()
738 if (cnt_bits > it_bit_buff->cnt_bits) in ixheaacd_aacdec_decodeframe()
742 it_bit_buff, aac_dec_handle->pstr_sbr_bitstream, in ixheaacd_aacdec_decodeframe()
753 (it_bit_buff->initial_cnt_bits - it_bit_buff->cnt_bits); in ixheaacd_aacdec_decodeframe()
755 if (tmp > 0) ixheaacd_read_bidirection(it_bit_buff, tmp); in ixheaacd_aacdec_decodeframe()
759 ixheaacd_read_bidirection(it_bit_buff, count_bits); in ixheaacd_aacdec_decodeframe()
845 ixheaacd_byte_align(it_bit_buff, &aac_dec_handle->byte_align_bits); in ixheaacd_aacdec_decodeframe()
847 ixheaacd_byte_align(it_bit_buff, &it_bit_buff->audio_mux_align); in ixheaacd_aacdec_decodeframe()
857 WORD32 ixheaacd_extension_payload(ia_bit_buf_struct *it_bit_buff, WORD32 cnt) { in ixheaacd_extension_payload() argument
863 extension_type = (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_extension_payload()
867 fill_nibble = ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_extension_payload()
871 ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_extension_payload()
880 discard = (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_extension_payload()