• Home
  • Raw
  • Download

Lines Matching refs:aac_state_struct

485 WORD32 ixheaacd_ga_hdr_dec(ia_aac_dec_state_struct *aac_state_struct,  in ixheaacd_ga_hdr_dec()  argument
496 memset(aac_state_struct->ia_audio_specific_config, 0, in ixheaacd_ga_hdr_dec()
499 memset(&(aac_state_struct->eld_specific_config), 0, in ixheaacd_ga_hdr_dec()
502 pstr_audio_specific_config = aac_state_struct->ia_audio_specific_config; in ixheaacd_ga_hdr_dec()
504 aac_state_struct->p_config->str_prog_config.alignment_bits = in ixheaacd_ga_hdr_dec()
507 aot_init = aac_state_struct->audio_object_type; in ixheaacd_ga_hdr_dec()
508 aac_state_struct->frame_length = FRAME_SIZE; in ixheaacd_ga_hdr_dec()
517 if (aac_state_struct->header_dec_done || aac_state_struct->ui_init_done) { in ixheaacd_ga_hdr_dec()
523 aac_state_struct->audio_object_type = tmp_aot; in ixheaacd_ga_hdr_dec()
533 aac_state_struct->sampling_rate = tmp; in ixheaacd_ga_hdr_dec()
534 aac_state_struct->p_config->ui_samp_freq = tmp; in ixheaacd_ga_hdr_dec()
536 aac_state_struct->ch_config = ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_ga_hdr_dec()
539 aac_state_struct->ch_config; in ixheaacd_ga_hdr_dec()
541 if (aac_state_struct->audio_object_type == AOT_SBR || in ixheaacd_ga_hdr_dec()
542 aac_state_struct->audio_object_type == AOT_PS) { in ixheaacd_ga_hdr_dec()
545 aac_state_struct->sbr_present_flag = 1; in ixheaacd_ga_hdr_dec()
550 aac_state_struct->extension_samp_rate = tmp; in ixheaacd_ga_hdr_dec()
552 aac_state_struct->audio_object_type = in ixheaacd_ga_hdr_dec()
556 if (aac_state_struct->header_dec_done || aac_state_struct->ui_init_done) { in ixheaacd_ga_hdr_dec()
557 if (aac_state_struct->audio_object_type != aot_init) return IA_FATAL_ERROR; in ixheaacd_ga_hdr_dec()
560 if (((aac_state_struct->audio_object_type >= AOT_AAC_MAIN && in ixheaacd_ga_hdr_dec()
561 aac_state_struct->audio_object_type <= AOT_AAC_LTP) || in ixheaacd_ga_hdr_dec()
562 aac_state_struct->audio_object_type == AOT_AAC_SCAL || in ixheaacd_ga_hdr_dec()
563 aac_state_struct->audio_object_type == AOT_TWIN_VQ || in ixheaacd_ga_hdr_dec()
564 aac_state_struct->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_ga_hdr_dec()
565 aac_state_struct->audio_object_type == AOT_ER_AAC_ELD || in ixheaacd_ga_hdr_dec()
566 aac_state_struct->audio_object_type == AOT_ER_AAC_SCAL || in ixheaacd_ga_hdr_dec()
567 aac_state_struct->audio_object_type == AOT_ER_AAC_LC) && in ixheaacd_ga_hdr_dec()
568 aac_state_struct->audio_object_type != AOT_USAC) in ixheaacd_ga_hdr_dec()
571 aac_state_struct->usac_flag = 0; in ixheaacd_ga_hdr_dec()
573 aac_state_struct->frame_len_flag = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_ga_hdr_dec()
574 if (aac_state_struct->audio_object_type != AOT_ER_AAC_ELD) { in ixheaacd_ga_hdr_dec()
575 aac_state_struct->depends_on_core_coder = in ixheaacd_ga_hdr_dec()
577 aac_state_struct->extension_flag = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_ga_hdr_dec()
579 if (aac_state_struct->ch_config == 0) { in ixheaacd_ga_hdr_dec()
582 &aac_state_struct->p_config->str_prog_config, it_bit_buff); in ixheaacd_ga_hdr_dec()
587 aac_state_struct->p_config->ui_pce_found_in_hdr = 1; in ixheaacd_ga_hdr_dec()
590 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD || in ixheaacd_ga_hdr_dec()
591 aac_state_struct->audio_object_type == AOT_ER_AAC_LD || in ixheaacd_ga_hdr_dec()
592 aac_state_struct->audio_object_type == AOT_ER_AAC_LC || in ixheaacd_ga_hdr_dec()
593 aac_state_struct->audio_object_type == AOT_ER_AAC_SCAL) { in ixheaacd_ga_hdr_dec()
594 aac_state_struct->eld_specific_config.aac_sect_data_resil_flag = 0; in ixheaacd_ga_hdr_dec()
595 aac_state_struct->eld_specific_config.aac_sf_data_resil_flag = 0; in ixheaacd_ga_hdr_dec()
596 aac_state_struct->eld_specific_config.aac_spect_data_resil_flag = 0; in ixheaacd_ga_hdr_dec()
597 aac_state_struct->eld_specific_config.ep_config = 0; in ixheaacd_ga_hdr_dec()
598 if ((aac_state_struct->extension_flag == 1) || in ixheaacd_ga_hdr_dec()
599 aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_ga_hdr_dec()
600 if (aac_state_struct->audio_object_type >= ER_OBJECT_START) { in ixheaacd_ga_hdr_dec()
601 aac_state_struct->eld_specific_config.aac_sect_data_resil_flag = in ixheaacd_ga_hdr_dec()
603 aac_state_struct->eld_specific_config.aac_sf_data_resil_flag = in ixheaacd_ga_hdr_dec()
605 aac_state_struct->eld_specific_config.aac_spect_data_resil_flag = in ixheaacd_ga_hdr_dec()
607 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_ga_hdr_dec()
608 aac_state_struct->eld_specific_config.ep_config = in ixheaacd_ga_hdr_dec()
610 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) in ixheaacd_ga_hdr_dec()
611 aac_state_struct->eld_specific_config.ld_sbr_flag_present = in ixheaacd_ga_hdr_dec()
629 aac_state_struct->usac_flag = 1; in ixheaacd_ga_hdr_dec()
634 aac_state_struct->ec_enable); in ixheaacd_ga_hdr_dec()
664 if (aac_state_struct->bs_format != LOAS_BSFORMAT) { in ixheaacd_ga_hdr_dec()
681 aac_state_struct->frame_length = FRAME_SIZE; in ixheaacd_ga_hdr_dec()
682 if (aac_state_struct->frame_len_flag) in ixheaacd_ga_hdr_dec()
683 aac_state_struct->frame_length = FRAME_SIZE_SMALL; in ixheaacd_ga_hdr_dec()
685 if (aac_state_struct->extension_flag) in ixheaacd_ga_hdr_dec()
686 aac_state_struct->extension_flag_3 = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_ga_hdr_dec()
688 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_ga_hdr_dec()
689 aac_state_struct->frame_length >>= 1; in ixheaacd_ga_hdr_dec()
691 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD) { in ixheaacd_ga_hdr_dec()
692 aac_state_struct->frame_length >>= 1; in ixheaacd_ga_hdr_dec()
693 if (aac_state_struct->eld_specific_config.ld_sbr_flag_present) { in ixheaacd_ga_hdr_dec()
694 aac_state_struct->eld_specific_config.ld_sbr_samp_rate = in ixheaacd_ga_hdr_dec()
696 aac_state_struct->eld_specific_config.ld_sbr_crc_flag = in ixheaacd_ga_hdr_dec()
699 ixheaacd_eld_sbr_header(it_bit_buff, aac_state_struct->ch_config, in ixheaacd_ga_hdr_dec()
700 &aac_state_struct->str_sbr_config); in ixheaacd_ga_hdr_dec()
702 aac_state_struct->dwnsmp_signal = in ixheaacd_ga_hdr_dec()
703 !aac_state_struct->eld_specific_config.ld_sbr_samp_rate; in ixheaacd_ga_hdr_dec()
726 aac_state_struct->ldmps_present = 1; in ixheaacd_ga_hdr_dec()
727 aac_state_struct->mps_dec_handle.ldmps_config.ldmps_present_flag = in ixheaacd_ga_hdr_dec()
729 aac_state_struct->mps_dec_handle.object_type = in ixheaacd_ga_hdr_dec()
730 aac_state_struct->audio_object_type; in ixheaacd_ga_hdr_dec()
731 aac_state_struct->mps_dec_handle.ec_flag = aac_state_struct->ec_enable; in ixheaacd_ga_hdr_dec()
733 &(aac_state_struct->mps_dec_handle.ldmps_config), it_bit_buff); in ixheaacd_ga_hdr_dec()
737 &aac_state_struct->mps_dec_handle, in ixheaacd_ga_hdr_dec()
738 aac_state_struct->mps_dec_handle.ldmps_config in ixheaacd_ga_hdr_dec()
740 0, &(aac_state_struct->mps_dec_handle.ldmps_config))) { in ixheaacd_ga_hdr_dec()
755 if (!((aac_state_struct->ldmps_present == 1) && in ixheaacd_ga_hdr_dec()
759 if (!((aac_state_struct->ldmps_present == 1) && !(it_bit_buff->cnt_bits > 0))) { in ixheaacd_ga_hdr_dec()
760 if (aac_state_struct->audio_object_type == AOT_ER_AAC_ELD || in ixheaacd_ga_hdr_dec()
761 aac_state_struct->audio_object_type == AOT_ER_AAC_LC || in ixheaacd_ga_hdr_dec()
762 aac_state_struct->audio_object_type == AOT_ER_AAC_SCAL) { in ixheaacd_ga_hdr_dec()
775 if (aac_state_struct->audio_object_type != AOT_SBR && in ixheaacd_ga_hdr_dec()
791 aac_state_struct->extension_samp_rate = tmp; in ixheaacd_ga_hdr_dec()
801 } else if (aac_state_struct->bs_format == LOAS_BSFORMAT) { in ixheaacd_ga_hdr_dec()
807 if (aac_state_struct->audio_object_type != AOT_AAC_LC && in ixheaacd_ga_hdr_dec()
808 aac_state_struct->audio_object_type != AOT_SBR && in ixheaacd_ga_hdr_dec()
809 aac_state_struct->audio_object_type != AOT_PS && in ixheaacd_ga_hdr_dec()
810 aac_state_struct->audio_object_type != AOT_ER_AAC_LC && in ixheaacd_ga_hdr_dec()
811 aac_state_struct->audio_object_type != AOT_ER_AAC_LD && in ixheaacd_ga_hdr_dec()
812 aac_state_struct->audio_object_type != AOT_ER_AAC_ELD && in ixheaacd_ga_hdr_dec()
813 aac_state_struct->audio_object_type != AOT_AAC_LTP) { in ixheaacd_ga_hdr_dec()
817 if (aac_state_struct->bs_format == LOAS_BSFORMAT) { in ixheaacd_ga_hdr_dec()
848 ia_aac_dec_state_struct *aac_state_struct, in ixheaacd_latm_header_decode() argument
855 WORD32 sync_status = aac_state_struct->sync_status; in ixheaacd_latm_header_decode()
856 WORD32 bit_count = aac_state_struct->bit_count; in ixheaacd_latm_header_decode()
861 aac_state_struct->bs_format = LOAS_BSFORMAT; in ixheaacd_latm_header_decode()
936 aac_state_struct->sync_status = sync_status; in ixheaacd_latm_header_decode()
941 aac_state_struct->bit_count = bit_count; in ixheaacd_latm_header_decode()
961 it_bit_buff, &latm_struct_element, aac_state_struct, in ixheaacd_latm_header_decode()
965 aac_state_struct->sync_status = sync_status; in ixheaacd_latm_header_decode()
992 ia_aac_dec_state_struct *aac_state_struct = in ixheaacd_aac_headerdecode() local
994 WORD32 usr_max_ch = aac_state_struct->p_config->ui_max_channels; in ixheaacd_aac_headerdecode()
1004 header_len = aac_state_struct->ui_in_bytes; in ixheaacd_aac_headerdecode()
1009 handle_bit_buff->xaac_jmp_buf = &aac_state_struct->xaac_jmp_buf; in ixheaacd_aac_headerdecode()
1012 return ixheaacd_ga_hdr_dec(aac_state_struct, header_len, bytes_consumed, in ixheaacd_aac_headerdecode()
1015 return ixheaacd_latm_header_decode(aac_state_struct, &it_bit_buff, in ixheaacd_aac_headerdecode()
1039 aac_state_struct->ldmps_present = 0; in ixheaacd_aac_headerdecode()
1040 aac_state_struct->latm_initialized = 0; in ixheaacd_aac_headerdecode()
1041 memset(&aac_state_struct->mps_dec_handle, 0, in ixheaacd_aac_headerdecode()
1042 sizeof(aac_state_struct->mps_dec_handle)); in ixheaacd_aac_headerdecode()
1043 memset(&aac_state_struct->eld_specific_config, 0, in ixheaacd_aac_headerdecode()
1044 sizeof(aac_state_struct->eld_specific_config)); in ixheaacd_aac_headerdecode()
1052 aac_state_struct->p_config->ui_pce_found_in_hdr = 1; in ixheaacd_aac_headerdecode()
1053 aac_state_struct->p_config->str_prog_config = adif.str_prog_config; in ixheaacd_aac_headerdecode()
1055 aac_state_struct->s_adif_hdr_present = 1; in ixheaacd_aac_headerdecode()
1056 aac_state_struct->audio_object_type = in ixheaacd_aac_headerdecode()
1058 aac_state_struct->sampling_rate = in ixheaacd_aac_headerdecode()
1061 aac_state_struct->ch_config = adif.str_prog_config.channels; in ixheaacd_aac_headerdecode()
1066 aac_state_struct->frame_length = FRAME_SIZE; in ixheaacd_aac_headerdecode()
1067 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_aac_headerdecode()
1068 aac_state_struct->frame_length >>= 1; in ixheaacd_aac_headerdecode()
1108 aac_state_struct->audio_object_type = obj_type; in ixheaacd_aac_headerdecode()
1109 aac_state_struct->sampling_rate = in ixheaacd_aac_headerdecode()
1111 aac_state_struct->ch_config = adts.channel_configuration; in ixheaacd_aac_headerdecode()
1112 aac_state_struct->s_adts_hdr_present = 1; in ixheaacd_aac_headerdecode()
1114 aac_state_struct->bs_format = ADTS_BSFORMAT; in ixheaacd_aac_headerdecode()
1115 aac_state_struct->frame_length = FRAME_SIZE; in ixheaacd_aac_headerdecode()
1116 if (aac_state_struct->audio_object_type == AOT_ER_AAC_LD) in ixheaacd_aac_headerdecode()
1117 aac_state_struct->frame_length >>= 1; in ixheaacd_aac_headerdecode()
1122 ixheaacd_latm_header_decode(aac_state_struct, &it_bit_buff, in ixheaacd_aac_headerdecode()
1142 aac_state_struct->bs_format = LOAS_BSFORMAT; in ixheaacd_aac_headerdecode()
1153 ixheaacd_ga_hdr_dec(aac_state_struct, header_len, bytes_consumed, in ixheaacd_aac_headerdecode()
1160 switch (aac_state_struct->audio_object_type) { in ixheaacd_aac_headerdecode()
1176 if (aac_state_struct->audio_object_type != AOT_USAC) in ixheaacd_aac_headerdecode()
1177 aac_state_struct->usac_flag = 0; in ixheaacd_aac_headerdecode()