• Home
  • Raw
  • Download

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 err = ixheaacd_find_syncword(adts, it_bit_buff); in ixheaacd_adtsframe()
332 adts->id = (tmp & 0x200) >> 9; in ixheaacd_adtsframe()
333 adts->layer = (tmp & 0x180) >> 7; in ixheaacd_adtsframe()
334 adts->protection_absent = (tmp & 0x40) >> 6; in ixheaacd_adtsframe()
335 adts->profile = (tmp & 0x30) >> 4; in ixheaacd_adtsframe()
336 { adts->profile++; } in ixheaacd_adtsframe()
337 adts->samp_freq_index = (tmp & 0xF); in ixheaacd_adtsframe()
339 if (((adts->profile != AAC_LC_PROFILE)) || (adts->samp_freq_index > 11)) in ixheaacd_adtsframe()
347 adts->channel_configuration = (WORD32)(tmp & 0xE0000) >> 17; in ixheaacd_adtsframe()
349 adts->aac_frame_length = (tmp & 0x1FFF); in ixheaacd_adtsframe()
353 adts->no_raw_data_blocks = (tmp & 0x3); in ixheaacd_adtsframe()
357 if (adts->protection_absent == 0) { in ixheaacd_adtsframe()
358 ixheaacd_skip_bits(it_bit_buff, 16, adts->no_raw_data_blocks); in ixheaacd_adtsframe()
359 adts->crc_check = ixheaacd_read_bits_buf(it_bit_buff, 16); in ixheaacd_adtsframe()
362 ptr_adts_crc_info->file_value = adts->crc_check; in ixheaacd_adtsframe()
765 WORD32 ixheaacd_check_if_adts(ia_adts_header_struct *adts, in ixheaacd_check_if_adts() argument
770 result = ixheaacd_adtsframe(adts, it_bit_buff); in ixheaacd_check_if_adts()
772 max_frm_len_per_ch = ixheaacd_mult32(768, (adts->no_raw_data_blocks + 1)); in ixheaacd_check_if_adts()
774 if (adts->channel_configuration != 0) in ixheaacd_check_if_adts()
776 ixheaacd_mult32(max_frm_len_per_ch, adts->channel_configuration); in ixheaacd_check_if_adts()
780 return ((result != 0) || (adts->aac_frame_length < 8) || (adts->layer != 0) || in ixheaacd_check_if_adts()
781 (adts->profile != AAC_LC_PROFILE)); in ixheaacd_check_if_adts()
914 ia_adts_header_struct adts = {0}; in ixheaacd_aac_headerdecode() local
998 result = ixheaacd_check_if_adts(&adts, handle_bit_buff, usr_max_ch); in ixheaacd_aac_headerdecode()
1003 if ((adts.aac_frame_length + ADTS_HEADER_LENGTH) < in ixheaacd_aac_headerdecode()
1008 &it_bit_buff, (UWORD8 *)(buffer + adts.aac_frame_length), in ixheaacd_aac_headerdecode()
1009 (WORD16)(header_len - bytes_taken - adts.aac_frame_length)); in ixheaacd_aac_headerdecode()
1023 (adts.samp_freq_index != adts_loc.samp_freq_index) || in ixheaacd_aac_headerdecode()
1024 (adts.channel_configuration != adts_loc.channel_configuration)) { in ixheaacd_aac_headerdecode()
1031 obj_type = adts.profile; in ixheaacd_aac_headerdecode()
1035 ((pstr_samp_rate_info[adts.samp_freq_index].sampling_frequency)); in ixheaacd_aac_headerdecode()
1036 aac_state_struct->ch_config = adts.channel_configuration; in ixheaacd_aac_headerdecode()