Lines Matching refs:adts
296 WORD32 ixheaacd_find_syncword(ia_adts_header_struct *adts, in ixheaacd_find_syncword() argument
298 adts->sync_word = (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 12); in ixheaacd_find_syncword()
299 if (adts->sync_word == 0xFFF) { in ixheaacd_find_syncword()
308 adts->sync_word = (WORD16)ixheaacd_read_bits_buf(it_bit_buff, 12); in ixheaacd_find_syncword()
309 if (adts->sync_word == 0xFFF) { in ixheaacd_find_syncword()
316 WORD32 ixheaacd_adtsframe(ia_adts_header_struct *adts, in ixheaacd_adtsframe() argument
327 ixheaacd_find_syncword(adts, it_bit_buff); in ixheaacd_adtsframe()
331 adts->id = (tmp & 0x200) >> 9; in ixheaacd_adtsframe()
332 adts->layer = (tmp & 0x180) >> 7; in ixheaacd_adtsframe()
333 adts->protection_absent = (tmp & 0x40) >> 6; in ixheaacd_adtsframe()
334 adts->profile = (tmp & 0x30) >> 4; in ixheaacd_adtsframe()
335 { adts->profile++; } in ixheaacd_adtsframe()
336 adts->samp_freq_index = (tmp & 0xF); in ixheaacd_adtsframe()
338 if (((adts->profile != AAC_LC_PROFILE)) || (adts->samp_freq_index > 11)) in ixheaacd_adtsframe()
346 adts->channel_configuration = (WORD32)(tmp & 0xE0000) >> 17; in ixheaacd_adtsframe()
348 adts->aac_frame_length = (tmp & 0x1FFF); in ixheaacd_adtsframe()
352 adts->no_raw_data_blocks = (tmp & 0x3); in ixheaacd_adtsframe()
356 if (adts->protection_absent == 0) { in ixheaacd_adtsframe()
357 ixheaacd_skip_bits(it_bit_buff, 16, adts->no_raw_data_blocks); in ixheaacd_adtsframe()
358 adts->crc_check = ixheaacd_read_bits_buf(it_bit_buff, 16); in ixheaacd_adtsframe()
361 ptr_adts_crc_info->file_value = adts->crc_check; in ixheaacd_adtsframe()
756 WORD32 ixheaacd_check_if_adts(ia_adts_header_struct *adts, in ixheaacd_check_if_adts() argument
761 result = ixheaacd_adtsframe(adts, it_bit_buff); in ixheaacd_check_if_adts()
763 max_frm_len_per_ch = ixheaacd_mult32(768, (adts->no_raw_data_blocks + 1)); in ixheaacd_check_if_adts()
765 if (adts->channel_configuration != 0) in ixheaacd_check_if_adts()
767 ixheaacd_mult32(max_frm_len_per_ch, adts->channel_configuration); in ixheaacd_check_if_adts()
771 return ((result != 0) || (adts->aac_frame_length < 8) || (adts->layer != 0) || in ixheaacd_check_if_adts()
772 (adts->profile != AAC_LC_PROFILE)); in ixheaacd_check_if_adts()
905 ia_adts_header_struct adts = {0}; in ixheaacd_aac_headerdecode() local
989 result = ixheaacd_check_if_adts(&adts, handle_bit_buff, usr_max_ch); in ixheaacd_aac_headerdecode()
994 if ((adts.aac_frame_length + ADTS_HEADER_LENGTH) < in ixheaacd_aac_headerdecode()
999 &it_bit_buff, (UWORD8 *)(buffer + adts.aac_frame_length), in ixheaacd_aac_headerdecode()
1000 (WORD16)(header_len - adts.aac_frame_length)); in ixheaacd_aac_headerdecode()
1012 (adts.samp_freq_index != adts_loc.samp_freq_index) || in ixheaacd_aac_headerdecode()
1013 (adts.channel_configuration != adts_loc.channel_configuration)) { in ixheaacd_aac_headerdecode()
1020 obj_type = adts.profile; in ixheaacd_aac_headerdecode()
1024 ((pstr_samp_rate_info[adts.samp_freq_index].sampling_frequency)); in ixheaacd_aac_headerdecode()
1025 aac_state_struct->ch_config = adts.channel_configuration; in ixheaacd_aac_headerdecode()