Lines Matching refs:aac_state_struct

484 WORD32 ixheaacd_ga_hdr_dec(ia_aac_dec_state_struct *aac_state_struct,  in ixheaacd_ga_hdr_dec()  argument
493 memset(aac_state_struct->ia_audio_specific_config, 0, in ixheaacd_ga_hdr_dec()
496 memset(&(aac_state_struct->eld_specific_config), 0, in ixheaacd_ga_hdr_dec()
499 pstr_audio_specific_config = aac_state_struct->ia_audio_specific_config; in ixheaacd_ga_hdr_dec()
501 aac_state_struct->p_config->str_prog_config.alignment_bits = in ixheaacd_ga_hdr_dec()
504 aac_state_struct->audio_object_type = ixheaacd_read_bits_buf(it_bit_buff, 5); in ixheaacd_ga_hdr_dec()
506 if (aac_state_struct->audio_object_type == 31) { in ixheaacd_ga_hdr_dec()
508 aac_state_struct->audio_object_type = 32 + tmp; in ixheaacd_ga_hdr_dec()
511 aac_state_struct->audio_object_type; in ixheaacd_ga_hdr_dec()
521 aac_state_struct->sampling_rate = tmp; in ixheaacd_ga_hdr_dec()
522 aac_state_struct->p_config->ui_samp_freq = tmp; in ixheaacd_ga_hdr_dec()
524 aac_state_struct->ch_config = ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_ga_hdr_dec()
527 aac_state_struct->ch_config; in ixheaacd_ga_hdr_dec()
529 if (aac_state_struct->audio_object_type == AOT_SBR || in ixheaacd_ga_hdr_dec()
530 aac_state_struct->audio_object_type == AOT_PS) { in ixheaacd_ga_hdr_dec()
533 aac_state_struct->sbr_present_flag = 1; in ixheaacd_ga_hdr_dec()
538 aac_state_struct->extension_samp_rate = tmp; in ixheaacd_ga_hdr_dec()
540 aac_state_struct->audio_object_type = in ixheaacd_ga_hdr_dec()
544 if (((aac_state_struct->audio_object_type >= AOT_AAC_MAIN && in ixheaacd_ga_hdr_dec()
545 aac_state_struct->audio_object_type <= AOT_AAC_LTP) || in ixheaacd_ga_hdr_dec()
546 aac_state_struct->audio_object_type == AOT_AAC_SCAL || in ixheaacd_ga_hdr_dec()
547 aac_state_struct->audio_object_type == AOT_TWIN_VQ || in ixheaacd_ga_hdr_dec()
548 aac_state_struct->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_ga_hdr_dec()
549 aac_state_struct->audio_object_type == AOT_ER_AAC_ELD || in ixheaacd_ga_hdr_dec()
550 aac_state_struct->audio_object_type == AOT_ER_AAC_LC) && in ixheaacd_ga_hdr_dec()
551 aac_state_struct->audio_object_type != AOT_USAC) in ixheaacd_ga_hdr_dec()
554 aac_state_struct->usac_flag = 0; in ixheaacd_ga_hdr_dec()
556 aac_state_struct->frame_len_flag = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_ga_hdr_dec()
557 if (aac_state_struct->audio_object_type != AOT_ER_AAC_ELD) { in ixheaacd_ga_hdr_dec()
558 aac_state_struct->depends_on_core_coder = in ixheaacd_ga_hdr_dec()
560 aac_state_struct->extension_flag = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_ga_hdr_dec()
562 if (aac_state_struct->ch_config == 0) { in ixheaacd_ga_hdr_dec()
565 &aac_state_struct->p_config->str_prog_config, it_bit_buff); in ixheaacd_ga_hdr_dec()
570 aac_state_struct->p_config->ui_pce_found_in_hdr = 1; in ixheaacd_ga_hdr_dec()
573 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD || in ixheaacd_ga_hdr_dec()
574 aac_state_struct->audio_object_type == AOT_ER_AAC_LD) { in ixheaacd_ga_hdr_dec()
575 aac_state_struct->eld_specific_config.aac_sect_data_resil_flag = 0; in ixheaacd_ga_hdr_dec()
576 aac_state_struct->eld_specific_config.aac_sf_data_resil_flag = 0; in ixheaacd_ga_hdr_dec()
577 aac_state_struct->eld_specific_config.aac_spect_data_resil_flag = 0; in ixheaacd_ga_hdr_dec()
578 aac_state_struct->eld_specific_config.ep_config = 0; in ixheaacd_ga_hdr_dec()
579 if ((aac_state_struct->extension_flag == 1) || in ixheaacd_ga_hdr_dec()
580 aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_ga_hdr_dec()
581 if (aac_state_struct->audio_object_type >= ER_OBJECT_START) { in ixheaacd_ga_hdr_dec()
582 aac_state_struct->eld_specific_config.aac_sect_data_resil_flag = in ixheaacd_ga_hdr_dec()
584 aac_state_struct->eld_specific_config.aac_sf_data_resil_flag = in ixheaacd_ga_hdr_dec()
586 aac_state_struct->eld_specific_config.aac_spect_data_resil_flag = in ixheaacd_ga_hdr_dec()
588 if (aac_state_struct->audio_object_type != AOT_ER_AAC_ELD) in ixheaacd_ga_hdr_dec()
589 aac_state_struct->eld_specific_config.ep_config = in ixheaacd_ga_hdr_dec()
592 aac_state_struct->eld_specific_config.ld_sbr_flag_present = in ixheaacd_ga_hdr_dec()
608 aac_state_struct->usac_flag = 1; in ixheaacd_ga_hdr_dec()
660 aac_state_struct->frame_length = FRAME_SIZE; in ixheaacd_ga_hdr_dec()
661 if (aac_state_struct->frame_len_flag) in ixheaacd_ga_hdr_dec()
663 aac_state_struct->frame_length = FRAME_SIZE_SMALL; in ixheaacd_ga_hdr_dec()
668 if (aac_state_struct->extension_flag) in ixheaacd_ga_hdr_dec()
669 aac_state_struct->extension_flag_3 = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_ga_hdr_dec()
671 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_ga_hdr_dec()
672 aac_state_struct->frame_length >>= 1; in ixheaacd_ga_hdr_dec()
674 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_ga_hdr_dec()
675 aac_state_struct->frame_length >>= 1; in ixheaacd_ga_hdr_dec()
676 if (aac_state_struct->eld_specific_config.ld_sbr_flag_present) { in ixheaacd_ga_hdr_dec()
677 aac_state_struct->eld_specific_config.ld_sbr_samp_rate = in ixheaacd_ga_hdr_dec()
679 aac_state_struct->eld_specific_config.ld_sbr_crc_flag = in ixheaacd_ga_hdr_dec()
682 ixheaacd_eld_sbr_header(it_bit_buff, aac_state_struct->ch_config, in ixheaacd_ga_hdr_dec()
683 &aac_state_struct->str_sbr_config); in ixheaacd_ga_hdr_dec()
685 aac_state_struct->dwnsmp_signal = in ixheaacd_ga_hdr_dec()
686 !aac_state_struct->eld_specific_config.ld_sbr_samp_rate; in ixheaacd_ga_hdr_dec()
691 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_ga_hdr_dec()
704 if (aac_state_struct->audio_object_type != AOT_SBR && in ixheaacd_ga_hdr_dec()
720 aac_state_struct->extension_samp_rate = tmp; in ixheaacd_ga_hdr_dec()
730 } else if (aac_state_struct->bs_format == LOAS_BSFORMAT) { in ixheaacd_ga_hdr_dec()
735 if (aac_state_struct->audio_object_type != AOT_AAC_LC && in ixheaacd_ga_hdr_dec()
736 aac_state_struct->audio_object_type != AOT_SBR && in ixheaacd_ga_hdr_dec()
737 aac_state_struct->audio_object_type != AOT_PS && in ixheaacd_ga_hdr_dec()
738 aac_state_struct->audio_object_type != AOT_ER_AAC_LC && in ixheaacd_ga_hdr_dec()
739 aac_state_struct->audio_object_type != AOT_ER_AAC_LD && in ixheaacd_ga_hdr_dec()
740 aac_state_struct->audio_object_type != AOT_ER_AAC_ELD && in ixheaacd_ga_hdr_dec()
741 aac_state_struct->audio_object_type != AOT_AAC_LTP) { in ixheaacd_ga_hdr_dec()
745 if (aac_state_struct->bs_format == LOAS_BSFORMAT) { in ixheaacd_ga_hdr_dec()
776 ia_aac_dec_state_struct *aac_state_struct, in ixheaacd_latm_header_decode() argument
783 WORD32 sync_status = aac_state_struct->sync_status; in ixheaacd_latm_header_decode()
784 WORD32 bit_count = aac_state_struct->bit_count; in ixheaacd_latm_header_decode()
789 aac_state_struct->bs_format = LOAS_BSFORMAT; in ixheaacd_latm_header_decode()
857 aac_state_struct->bit_count = bit_count; in ixheaacd_latm_header_decode()
866 aac_state_struct->sync_status = sync_status; in ixheaacd_latm_header_decode()
884 it_bit_buff, &latm_struct_element, aac_state_struct, in ixheaacd_latm_header_decode()
888 aac_state_struct->sync_status = sync_status; in ixheaacd_latm_header_decode()
915 ia_aac_dec_state_struct *aac_state_struct = in ixheaacd_aac_headerdecode() local
917 WORD32 usr_max_ch = aac_state_struct->p_config->ui_max_channels; in ixheaacd_aac_headerdecode()
927 header_len = aac_state_struct->ui_in_bytes; in ixheaacd_aac_headerdecode()
932 handle_bit_buff->xaac_jmp_buf = &aac_state_struct->xaac_jmp_buf; in ixheaacd_aac_headerdecode()
935 return ixheaacd_ga_hdr_dec(aac_state_struct, header_len, bytes_consumed, in ixheaacd_aac_headerdecode()
938 return ixheaacd_latm_header_decode(aac_state_struct, &it_bit_buff, in ixheaacd_aac_headerdecode()
968 aac_state_struct->p_config->ui_pce_found_in_hdr = 1; in ixheaacd_aac_headerdecode()
969 aac_state_struct->p_config->str_prog_config = adif.str_prog_config; in ixheaacd_aac_headerdecode()
971 aac_state_struct->s_adif_hdr_present = 1; in ixheaacd_aac_headerdecode()
972 aac_state_struct->audio_object_type = in ixheaacd_aac_headerdecode()
974 aac_state_struct->sampling_rate = in ixheaacd_aac_headerdecode()
977 aac_state_struct->ch_config = adif.str_prog_config.channels; in ixheaacd_aac_headerdecode()
982 aac_state_struct->frame_length = FRAME_SIZE; in ixheaacd_aac_headerdecode()
983 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_aac_headerdecode()
984 aac_state_struct->frame_length >>= 1; in ixheaacd_aac_headerdecode()
1022 aac_state_struct->audio_object_type = obj_type; in ixheaacd_aac_headerdecode()
1023 aac_state_struct->sampling_rate = in ixheaacd_aac_headerdecode()
1025 aac_state_struct->ch_config = adts.channel_configuration; in ixheaacd_aac_headerdecode()
1026 aac_state_struct->s_adts_hdr_present = 1; in ixheaacd_aac_headerdecode()
1028 aac_state_struct->bs_format = ADTS_BSFORMAT; in ixheaacd_aac_headerdecode()
1029 aac_state_struct->frame_length = FRAME_SIZE; in ixheaacd_aac_headerdecode()
1030 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_aac_headerdecode()
1031 aac_state_struct->frame_length >>= 1; in ixheaacd_aac_headerdecode()
1036 ixheaacd_latm_header_decode(aac_state_struct, &it_bit_buff, in ixheaacd_aac_headerdecode()
1056 aac_state_struct->bs_format = LOAS_BSFORMAT; in ixheaacd_aac_headerdecode()
1067 ixheaacd_ga_hdr_dec(aac_state_struct, header_len, bytes_consumed, in ixheaacd_aac_headerdecode()
1074 switch (aac_state_struct->audio_object_type) { in ixheaacd_aac_headerdecode()
1090 if (aac_state_struct->audio_object_type != AOT_USAC) in ixheaacd_aac_headerdecode()
1091 aac_state_struct->usac_flag = 0; in ixheaacd_aac_headerdecode()