Home | History | Annotate | Download | only in decoder

Lines Matching refs:aac_state_struct

483 WORD32 ixheaacd_ga_hdr_dec(ia_aac_dec_state_struct *aac_state_struct,
492 memset(aac_state_struct->ia_audio_specific_config, 0,
495 pstr_audio_specific_config = aac_state_struct->ia_audio_specific_config;
497 aac_state_struct->p_config->str_prog_config.alignment_bits =
500 aac_state_struct->audio_object_type = ixheaacd_read_bits_buf(it_bit_buff, 5);
502 if (aac_state_struct->audio_object_type == 31) {
504 aac_state_struct->audio_object_type = 32 + tmp;
507 aac_state_struct->audio_object_type;
517 aac_state_struct->sampling_rate = tmp;
518 aac_state_struct->p_config->ui_samp_freq = tmp;
520 aac_state_struct->ch_config = ixheaacd_read_bits_buf(it_bit_buff, 4);
523 aac_state_struct->ch_config;
525 if (aac_state_struct->audio_object_type == AOT_SBR ||
526 aac_state_struct->audio_object_type == AOT_PS) {
529 aac_state_struct->sbr_present_flag = 1;
534 aac_state_struct->extension_samp_rate = tmp;
536 aac_state_struct->audio_object_type =
540 if ((aac_state_struct->audio_object_type >= AOT_AAC_MAIN ||
541 aac_state_struct->audio_object_type <= AOT_AAC_LTP ||
542 aac_state_struct->audio_object_type == AOT_AAC_SCAL ||
543 aac_state_struct->audio_object_type == AOT_TWIN_VQ ||
544 aac_state_struct->audio_object_type == AOT_ER_AAC_LD ||
545 aac_state_struct->audio_object_type == AOT_ER_AAC_LC) &&
546 aac_state_struct->audio_object_type != AOT_USAC)
549 aac_state_struct->usac_flag = 0;
551 aac_state_struct->frame_len_flag = ixheaacd_read_bits_buf(it_bit_buff, 1);
552 if (aac_state_struct->audio_object_type != AOT_ER_AAC_ELD) {
553 aac_state_struct->depends_on_core_coder =
555 aac_state_struct->extension_flag = ixheaacd_read_bits_buf(it_bit_buff, 1);
557 if (aac_state_struct->ch_config == 0) {
560 &aac_state_struct->p_config->str_prog_config, it_bit_buff);
565 aac_state_struct->p_config->ui_pce_found_in_hdr = 1;
568 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD ||
569 aac_state_struct->audio_object_type == AOT_ER_AAC_LD) {
570 aac_state_struct->eld_specific_config.aac_sect_data_resil_flag = 0;
571 aac_state_struct->eld_specific_config.aac_sf_data_resil_flag = 0;
572 aac_state_struct->eld_specific_config.aac_spect_data_resil_flag = 0;
573 aac_state_struct->eld_specific_config.ep_config = 0;
574 if ((aac_state_struct->extension_flag == 1) ||
575 aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) {
576 if (aac_state_struct->audio_object_type >= ER_OBJECT_START) {
577 aac_state_struct->eld_specific_config.aac_sect_data_resil_flag =
579 aac_state_struct->eld_specific_config.aac_sf_data_resil_flag =
581 aac_state_struct->eld_specific_config.aac_spect_data_resil_flag =
583 if (aac_state_struct->audio_object_type != AOT_ER_AAC_ELD)
584 aac_state_struct->eld_specific_config.ep_config =
587 aac_state_struct->eld_specific_config.ld_sbr_flag_present =
603 aac_state_struct->usac_flag = 1;
699 aac_state_struct->frame_length = FRAME_SIZE;
700 if (aac_state_struct->frame_len_flag)
702 aac_state_struct->frame_length = FRAME_SIZE_SMALL;
707 if (aac_state_struct->extension_flag)
708 aac_state_struct->extension_flag_3 = ixheaacd_read_bits_buf(it_bit_buff, 1);
710 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD)
711 aac_state_struct->frame_length >>= 1;
713 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) {
714 aac_state_struct->frame_length >>= 1;
715 if (aac_state_struct->eld_specific_config.ld_sbr_flag_present) {
716 aac_state_struct->eld_specific_config.ld_sbr_samp_rate =
718 aac_state_struct->eld_specific_config.ld_sbr_crc_flag =
721 ixheaacd_eld_sbr_header(it_bit_buff, aac_state_struct->ch_config,
722 &aac_state_struct->str_sbr_config);
724 aac_state_struct->dwnsmp_signal =
725 !aac_state_struct->eld_specific_config.ld_sbr_samp_rate;
730 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) {
743 if (aac_state_struct->audio_object_type != AOT_SBR &&
759 aac_state_struct->extension_samp_rate = tmp;
769 } else if (aac_state_struct->bs_format == LOAS_BSFORMAT) {
774 if (aac_state_struct->audio_object_type != AOT_AAC_LC &&
775 aac_state_struct->audio_object_type != AOT_SBR &&
776 aac_state_struct->audio_object_type != AOT_PS &&
777 aac_state_struct->audio_object_type != AOT_ER_AAC_LC &&
778 aac_state_struct->audio_object_type != AOT_ER_AAC_LD &&
779 aac_state_struct->audio_object_type != AOT_ER_AAC_ELD &&
780 aac_state_struct->audio_object_type != AOT_AAC_LTP) {
784 if (aac_state_struct->bs_format == LOAS_BSFORMAT) {
815 ia_aac_dec_state_struct *aac_state_struct,
821 WORD32 sync_status = aac_state_struct->sync_status;
822 WORD32 bit_count = aac_state_struct->bit_count;
827 aac_state_struct->bs_format = LOAS_BSFORMAT;
895 aac_state_struct->bit_count = bit_count;
904 aac_state_struct->sync_status = sync_status;
922 it_bit_buff, &latm_struct_element, aac_state_struct,
926 aac_state_struct->sync_status = sync_status;
953 ia_aac_dec_state_struct *aac_state_struct =
955 WORD32 usr_max_ch = aac_state_struct->p_config->ui_max_channels;
965 header_len = aac_state_struct->ui_in_bytes;
972 return ixheaacd_ga_hdr_dec(aac_state_struct, header_len, bytes_consumed,
975 return ixheaacd_latm_header_decode(aac_state_struct, &it_bit_buff,
1005 aac_state_struct->p_config->ui_pce_found_in_hdr = 1;
1006 aac_state_struct->p_config->str_prog_config = adif.str_prog_config;
1008 aac_state_struct->s_adif_hdr_present = 1;
1009 aac_state_struct->audio_object_type =
1011 aac_state_struct->sampling_rate =
1014 aac_state_struct->ch_config = adif.str_prog_config.channels;
1019 aac_state_struct->frame_length = FRAME_SIZE;
1020 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD)
1021 aac_state_struct->frame_length >>= 1;
1059 aac_state_struct->audio_object_type = obj_type;
1060 aac_state_struct->sampling_rate =
1062 aac_state_struct->ch_config = adts.channel_configuration;
1063 aac_state_struct->s_adts_hdr_present = 1;
1065 aac_state_struct->bs_format = ADTS_BSFORMAT;
1066 aac_state_struct->frame_length = FRAME_SIZE;
1067 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD)
1068 aac_state_struct->frame_length >>= 1;
1073 ixheaacd_latm_header_decode(aac_state_struct, &it_bit_buff,
1089 aac_state_struct->bs_format = LOAS_BSFORMAT;
1100 ixheaacd_ga_hdr_dec(aac_state_struct, header_len, bytes_consumed,
1107 if (aac_state_struct->audio_object_type != AOT_USAC)
1108 aac_state_struct->usac_flag = 0;