Lines Matching refs:p_obj_exhaacplus_dec
123 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec, WORD32 i_cmd, in ixheaacd_dec_mem_api() argument
136 p_obj_exhaacplus_dec->p_mem_info_aac[i_idx].ui_alignment) != 0) { in ixheaacd_dec_mem_api()
139 p_obj_exhaacplus_dec->pp_mem_aac[i_idx] = pv_value; in ixheaacd_dec_mem_api()
140 memset(p_obj_exhaacplus_dec->pp_mem_aac[i_idx], 0, in ixheaacd_dec_mem_api()
141 p_obj_exhaacplus_dec->p_mem_info_aac[i_idx].ui_size); in ixheaacd_dec_mem_api()
146 (UWORD32 *)p_obj_exhaacplus_dec->p_mem_info_aac + i_idx; in ixheaacd_dec_mem_api()
151 p_obj_exhaacplus_dec->p_state_aac = pv_value; in ixheaacd_dec_mem_api()
153 p_obj_exhaacplus_dec->p_state_aac->pstr_dec_data = p_temp; in ixheaacd_dec_mem_api()
154 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config = in ixheaacd_dec_mem_api()
156 p_obj_exhaacplus_dec->p_state_aac->header_ptr = in ixheaacd_dec_mem_api()
163 (UWORD32 *)(p_obj_exhaacplus_dec->p_mem_info_aac + i_idx); in ixheaacd_dec_mem_api()
317 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec = p_ia_enhaacplus_dec_obj; in ixheaacd_dec_api() local
382 memset(p_obj_exhaacplus_dec, 0, sizeof(*p_obj_exhaacplus_dec)); in ixheaacd_dec_api()
383 p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz = 16; in ixheaacd_dec_api()
384 p_obj_exhaacplus_dec->aac_config.flag_downmix = 0; in ixheaacd_dec_api()
385 p_obj_exhaacplus_dec->aac_config.flag_08khz_out = 0; in ixheaacd_dec_api()
386 p_obj_exhaacplus_dec->aac_config.flag_16khz_out = 0; in ixheaacd_dec_api()
387 p_obj_exhaacplus_dec->aac_config.flag_to_stereo = 0; in ixheaacd_dec_api()
388 p_obj_exhaacplus_dec->aac_config.down_sample_flag = 0; in ixheaacd_dec_api()
389 p_obj_exhaacplus_dec->aac_config.header_dec_done = 0; in ixheaacd_dec_api()
390 p_obj_exhaacplus_dec->aac_config.frame_status = 1; in ixheaacd_dec_api()
391 p_obj_exhaacplus_dec->aac_config.ui_mp4_flag = 0; in ixheaacd_dec_api()
392 p_obj_exhaacplus_dec->aac_config.ui_disable_sync = 0; in ixheaacd_dec_api()
393 p_obj_exhaacplus_dec->aac_config.ui_auto_sbr_upsample = 1; in ixheaacd_dec_api()
394 p_obj_exhaacplus_dec->aac_config.ui_samp_freq = 0; in ixheaacd_dec_api()
395 p_obj_exhaacplus_dec->aac_config.ui_channel_mode = 3; in ixheaacd_dec_api()
396 p_obj_exhaacplus_dec->aac_config.ui_sbr_mode = 0; in ixheaacd_dec_api()
397 p_obj_exhaacplus_dec->aac_config.ui_effect_type = 0; in ixheaacd_dec_api()
398 p_obj_exhaacplus_dec->aac_config.ui_target_loudness = -24; in ixheaacd_dec_api()
399 p_obj_exhaacplus_dec->aac_config.ui_loud_norm_flag = 0; in ixheaacd_dec_api()
400 p_obj_exhaacplus_dec->aac_config.ui_pce_found_in_hdr = 0; in ixheaacd_dec_api()
401 p_obj_exhaacplus_dec->aac_config.loas_present = 0; in ixheaacd_dec_api()
402 p_obj_exhaacplus_dec->aac_config.ld_decoder = 0; in ixheaacd_dec_api()
403 p_obj_exhaacplus_dec->aac_config.ui_drc_enable = 1; in ixheaacd_dec_api()
404 p_obj_exhaacplus_dec->aac_config.ui_drc_boost = 0; in ixheaacd_dec_api()
405 p_obj_exhaacplus_dec->aac_config.ui_drc_cut = 0; in ixheaacd_dec_api()
406 p_obj_exhaacplus_dec->aac_config.ui_drc_target_level = 108; in ixheaacd_dec_api()
407 p_obj_exhaacplus_dec->aac_config.ui_drc_set = 0; in ixheaacd_dec_api()
408 p_obj_exhaacplus_dec->aac_config.ui_flush_cmd = 0; in ixheaacd_dec_api()
410 p_obj_exhaacplus_dec->aac_config.ui_max_channels = 6; in ixheaacd_dec_api()
412 p_obj_exhaacplus_dec->aac_config.ui_coupling_channel = 0; in ixheaacd_dec_api()
413 p_obj_exhaacplus_dec->aac_config.downmix = 0; in ixheaacd_dec_api()
414 p_obj_exhaacplus_dec->aac_config.ui_n_channels = 2; in ixheaacd_dec_api()
415 p_obj_exhaacplus_dec->aac_config.i_channel_mask = 3; in ixheaacd_dec_api()
419 &p_obj_exhaacplus_dec->aac_tables; in ixheaacd_dec_api()
430 ixheaacd_init_sbr_tables(&p_obj_exhaacplus_dec->str_sbr_tables); in ixheaacd_dec_api()
431 p_obj_exhaacplus_dec->common_tables = in ixheaacd_dec_api()
433 p_obj_exhaacplus_dec->aac_config.ui_qmf_bands = 64; in ixheaacd_dec_api()
438 ixheaacd_fill_aac_mem_tables(p_obj_exhaacplus_dec); in ixheaacd_dec_api()
443 if (p_obj_exhaacplus_dec->p_state_aac->fatal_err_present) { in ixheaacd_dec_api()
446 err_code = ixheaacd_dec_init(p_obj_exhaacplus_dec); in ixheaacd_dec_api()
450 p_obj_exhaacplus_dec->p_state_aac->fatal_err_present = 1; in ixheaacd_dec_api()
451 p_obj_exhaacplus_dec->p_state_aac->i_bytes_consumed = in ixheaacd_dec_api()
452 p_obj_exhaacplus_dec->p_state_aac->ui_in_bytes; in ixheaacd_dec_api()
458 if (p_obj_exhaacplus_dec->p_state_aac->ui_init_done == 1) { in ixheaacd_dec_api()
467 return ixheaacd_decoder_2_ga_hdr(p_obj_exhaacplus_dec); in ixheaacd_dec_api()
472 return ixheaacd_decoder_flush_api(p_obj_exhaacplus_dec); in ixheaacd_dec_api()
488 p_obj_exhaacplus_dec->aac_config.ui_samp_freq = *pui_value; in ixheaacd_dec_api()
493 p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz = 16; in ixheaacd_dec_api()
496 p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz = *pui_value; in ixheaacd_dec_api()
501 p_obj_exhaacplus_dec->aac_config.flag_downmix = 0; in ixheaacd_dec_api()
504 p_obj_exhaacplus_dec->aac_config.flag_downmix = *pui_value; in ixheaacd_dec_api()
505 p_obj_exhaacplus_dec->aac_config.downmix = *pui_value; in ixheaacd_dec_api()
511 p_obj_exhaacplus_dec->aac_config.flag_to_stereo = 1; in ixheaacd_dec_api()
514 p_obj_exhaacplus_dec->aac_config.flag_to_stereo = *pui_value; in ixheaacd_dec_api()
519 p_obj_exhaacplus_dec->aac_config.down_sample_flag = 0; in ixheaacd_dec_api()
522 p_obj_exhaacplus_dec->aac_config.down_sample_flag = *pui_value; in ixheaacd_dec_api()
528 p_obj_exhaacplus_dec->aac_config.frame_status = 1; in ixheaacd_dec_api()
531 p_obj_exhaacplus_dec->aac_config.frame_status = *pui_value; in ixheaacd_dec_api()
537 p_obj_exhaacplus_dec->aac_config.ui_mp4_flag = 0; in ixheaacd_dec_api()
540 p_obj_exhaacplus_dec->aac_config.ui_mp4_flag = *pui_value; in ixheaacd_dec_api()
545 p_obj_exhaacplus_dec->aac_config.loas_present = 0; in ixheaacd_dec_api()
548 p_obj_exhaacplus_dec->aac_config.loas_present = *pui_value; in ixheaacd_dec_api()
553 p_obj_exhaacplus_dec->aac_config.ui_drc_enable = 0; in ixheaacd_dec_api()
556 p_obj_exhaacplus_dec->aac_config.ui_drc_enable = *pui_value; in ixheaacd_dec_api()
560 p_obj_exhaacplus_dec->aac_config.ui_drc_set = 1; in ixheaacd_dec_api()
562 p_obj_exhaacplus_dec->aac_config.ui_drc_cut = 0; in ixheaacd_dec_api()
565 p_obj_exhaacplus_dec->aac_config.ui_drc_cut = in ixheaacd_dec_api()
571 p_obj_exhaacplus_dec->aac_config.ui_drc_set = 1; in ixheaacd_dec_api()
573 p_obj_exhaacplus_dec->aac_config.ui_drc_boost = 0; in ixheaacd_dec_api()
576 p_obj_exhaacplus_dec->aac_config.ui_drc_boost = in ixheaacd_dec_api()
582 p_obj_exhaacplus_dec->aac_config.ui_drc_set = 1; in ixheaacd_dec_api()
584 p_obj_exhaacplus_dec->aac_config.ui_drc_target_level = 108; in ixheaacd_dec_api()
587 p_obj_exhaacplus_dec->aac_config.ui_drc_target_level = *pui_value; in ixheaacd_dec_api()
591 p_obj_exhaacplus_dec->aac_config.ui_drc_set = 1; in ixheaacd_dec_api()
593 p_obj_exhaacplus_dec->aac_config.ui_drc_heavy_comp = 0; in ixheaacd_dec_api()
596 p_obj_exhaacplus_dec->aac_config.ui_drc_heavy_comp = *pui_value; in ixheaacd_dec_api()
601 p_obj_exhaacplus_dec->aac_config.ui_disable_sync = 0; in ixheaacd_dec_api()
604 p_obj_exhaacplus_dec->aac_config.ui_disable_sync = *pui_value; in ixheaacd_dec_api()
609 p_obj_exhaacplus_dec->aac_config.ui_auto_sbr_upsample = 0; in ixheaacd_dec_api()
612 p_obj_exhaacplus_dec->aac_config.ui_auto_sbr_upsample = *pui_value; in ixheaacd_dec_api()
617 p_obj_exhaacplus_dec->aac_config.ui_max_channels = 8; in ixheaacd_dec_api()
621 p_obj_exhaacplus_dec->aac_config.ui_max_channels = 2; in ixheaacd_dec_api()
624 p_obj_exhaacplus_dec->aac_config.ui_max_channels = *pui_value; in ixheaacd_dec_api()
629 p_obj_exhaacplus_dec->aac_config.framesize_480 = 1; in ixheaacd_dec_api()
631 p_obj_exhaacplus_dec->aac_config.framesize_480 = 0; in ixheaacd_dec_api()
640 p_obj_exhaacplus_dec->aac_config.ld_decoder = 1; in ixheaacd_dec_api()
642 p_obj_exhaacplus_dec->aac_config.ld_decoder = 0; in ixheaacd_dec_api()
651 p_obj_exhaacplus_dec->aac_config.eld_sbr_present = 1; in ixheaacd_dec_api()
653 p_obj_exhaacplus_dec->aac_config.eld_sbr_present = 0; in ixheaacd_dec_api()
661 p_obj_exhaacplus_dec->aac_config.ui_coupling_channel = 1; in ixheaacd_dec_api()
664 p_obj_exhaacplus_dec->aac_config.ui_coupling_channel = *pui_value; in ixheaacd_dec_api()
670 p_obj_exhaacplus_dec->aac_config.downmix = 0; in ixheaacd_dec_api()
673 p_obj_exhaacplus_dec->aac_config.downmix = *pui_value; in ixheaacd_dec_api()
679 p_obj_exhaacplus_dec->aac_config.ui_effect_type = -1; in ixheaacd_dec_api()
682 p_obj_exhaacplus_dec->aac_config.ui_effect_type = *pui_value_signed; in ixheaacd_dec_api()
687 p_obj_exhaacplus_dec->aac_config.ui_loud_norm_flag = 1; in ixheaacd_dec_api()
691 p_obj_exhaacplus_dec->aac_config.ui_target_loudness = 0; in ixheaacd_dec_api()
694 p_obj_exhaacplus_dec->aac_config.ui_target_loudness = in ixheaacd_dec_api()
706 (WORD32 *)(&p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz); in ixheaacd_dec_api()
714 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
727 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
750 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
769 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
777 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
784 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
794 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
823 p_obj_exhaacplus_dec->p_mem_info_aac = pv_value; in ixheaacd_dec_api()
824 p_obj_exhaacplus_dec->pp_mem_aac = in ixheaacd_dec_api()
843 if (!p_obj_exhaacplus_dec->p_state_aac->ui_init_done || in ixheaacd_dec_api()
844 p_obj_exhaacplus_dec->p_state_aac->fatal_err_present) { in ixheaacd_dec_api()
847 err_code = ixheaacd_dec_execute(p_obj_exhaacplus_dec); in ixheaacd_dec_api()
851 p_obj_exhaacplus_dec->p_state_aac->fatal_err_present = 1; in ixheaacd_dec_api()
852 p_obj_exhaacplus_dec->p_state_aac->i_bytes_consumed = in ixheaacd_dec_api()
853 p_obj_exhaacplus_dec->p_state_aac->ui_in_bytes; in ixheaacd_dec_api()
859 if (p_obj_exhaacplus_dec->p_state_aac->ui_input_over == 1) { in ixheaacd_dec_api()
872 *pui_value = p_obj_exhaacplus_dec->p_state_aac->i_bytes_consumed; in ixheaacd_dec_api()
876 p_obj_exhaacplus_dec->p_state_aac->ui_in_bytes = *pui_value; in ixheaacd_dec_api()
880 if (p_obj_exhaacplus_dec->p_state_aac->audio_object_type == AOT_USAC) { in ixheaacd_dec_api()
883 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_api()
896 *pui_value = p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes; in ixheaacd_dec_api()
901 p_obj_exhaacplus_dec->p_state_aac->ui_input_over = 1; in ixheaacd_dec_api()
910 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec) { in ixheaacd_decoder_2_ga_hdr() argument
911 if (p_obj_exhaacplus_dec->aac_config.ui_flush_cmd == 0) { in ixheaacd_decoder_2_ga_hdr()
912 p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz = 16; in ixheaacd_decoder_2_ga_hdr()
913 p_obj_exhaacplus_dec->aac_config.flag_downmix = 0; in ixheaacd_decoder_2_ga_hdr()
914 p_obj_exhaacplus_dec->aac_config.flag_08khz_out = 0; in ixheaacd_decoder_2_ga_hdr()
915 p_obj_exhaacplus_dec->aac_config.flag_16khz_out = 0; in ixheaacd_decoder_2_ga_hdr()
916 p_obj_exhaacplus_dec->aac_config.flag_to_stereo = 0; in ixheaacd_decoder_2_ga_hdr()
917 p_obj_exhaacplus_dec->aac_config.down_sample_flag = 0; in ixheaacd_decoder_2_ga_hdr()
918 p_obj_exhaacplus_dec->aac_config.header_dec_done = 0; in ixheaacd_decoder_2_ga_hdr()
919 p_obj_exhaacplus_dec->aac_config.frame_status = 1; in ixheaacd_decoder_2_ga_hdr()
920 p_obj_exhaacplus_dec->aac_config.ui_mp4_flag = 1; in ixheaacd_decoder_2_ga_hdr()
921 p_obj_exhaacplus_dec->aac_config.ui_disable_sync = 0; in ixheaacd_decoder_2_ga_hdr()
922 p_obj_exhaacplus_dec->aac_config.ui_auto_sbr_upsample = 1; in ixheaacd_decoder_2_ga_hdr()
923 p_obj_exhaacplus_dec->aac_config.ui_samp_freq = 0; in ixheaacd_decoder_2_ga_hdr()
924 p_obj_exhaacplus_dec->aac_config.ui_channel_mode = 3; in ixheaacd_decoder_2_ga_hdr()
925 p_obj_exhaacplus_dec->aac_config.ui_sbr_mode = 2; in ixheaacd_decoder_2_ga_hdr()
926 p_obj_exhaacplus_dec->aac_config.ui_pce_found_in_hdr = 0; in ixheaacd_decoder_2_ga_hdr()
927 p_obj_exhaacplus_dec->aac_config.loas_present = 0; in ixheaacd_decoder_2_ga_hdr()
929 p_obj_exhaacplus_dec->aac_config.ui_drc_enable = 1; in ixheaacd_decoder_2_ga_hdr()
930 p_obj_exhaacplus_dec->aac_config.ui_drc_boost = 0; in ixheaacd_decoder_2_ga_hdr()
931 p_obj_exhaacplus_dec->aac_config.ui_drc_cut = 0; in ixheaacd_decoder_2_ga_hdr()
932 p_obj_exhaacplus_dec->aac_config.ui_drc_target_level = 108; in ixheaacd_decoder_2_ga_hdr()
933 p_obj_exhaacplus_dec->aac_config.ui_drc_set = 0; in ixheaacd_decoder_2_ga_hdr()
934 p_obj_exhaacplus_dec->aac_config.ui_flush_cmd = 1; in ixheaacd_decoder_2_ga_hdr()
936 p_obj_exhaacplus_dec->aac_config.ui_max_channels = 6; in ixheaacd_decoder_2_ga_hdr()
938 p_obj_exhaacplus_dec->aac_config.ui_coupling_channel = 0; in ixheaacd_decoder_2_ga_hdr()
939 p_obj_exhaacplus_dec->aac_config.downmix = 0; in ixheaacd_decoder_2_ga_hdr()
943 &p_obj_exhaacplus_dec->aac_tables; in ixheaacd_decoder_2_ga_hdr()
953 ixheaacd_init_sbr_tables(&p_obj_exhaacplus_dec->str_sbr_tables); in ixheaacd_decoder_2_ga_hdr()
954 p_obj_exhaacplus_dec->common_tables = in ixheaacd_decoder_2_ga_hdr()
956 p_obj_exhaacplus_dec->aac_config.ui_qmf_bands = 64; in ixheaacd_decoder_2_ga_hdr()
957 p_obj_exhaacplus_dec->p_state_aac->ui_init_done = 0; in ixheaacd_decoder_2_ga_hdr()
959 return ixheaacd_dec_init(p_obj_exhaacplus_dec); in ixheaacd_decoder_2_ga_hdr()
961 p_obj_exhaacplus_dec->aac_config.ui_flush_cmd = 0; in ixheaacd_decoder_2_ga_hdr()
962 return ixheaacd_dec_init(p_obj_exhaacplus_dec); in ixheaacd_decoder_2_ga_hdr()
967 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec) { in ixheaacd_decoder_flush_api() argument
970 if (p_obj_exhaacplus_dec->aac_config.ui_flush_cmd == 0) { in ixheaacd_decoder_flush_api()
971 header_temp_ptr = p_obj_exhaacplus_dec->p_state_aac->header_ptr; in ixheaacd_decoder_flush_api()
972 header_length = p_obj_exhaacplus_dec->p_state_aac->header_length; in ixheaacd_decoder_flush_api()
973 memset(p_obj_exhaacplus_dec->p_state_aac, 0, in ixheaacd_decoder_flush_api()
976 pUWORD8 p_temp = (pUWORD8)p_obj_exhaacplus_dec->p_state_aac; in ixheaacd_decoder_flush_api()
977 UWORD32 *meminfo = (UWORD32 *)p_obj_exhaacplus_dec->p_mem_info_aac; in ixheaacd_decoder_flush_api()
983 p_obj_exhaacplus_dec->p_state_aac->pstr_dec_data = p_temp; in ixheaacd_decoder_flush_api()
984 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config = in ixheaacd_decoder_flush_api()
986 p_obj_exhaacplus_dec->p_state_aac->header_ptr = in ixheaacd_decoder_flush_api()
990 memset(&(p_obj_exhaacplus_dec->aac_config), 0, in ixheaacd_decoder_flush_api()
993 p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz = 16; in ixheaacd_decoder_flush_api()
994 p_obj_exhaacplus_dec->aac_config.flag_downmix = 0; in ixheaacd_decoder_flush_api()
995 p_obj_exhaacplus_dec->aac_config.flag_08khz_out = 0; in ixheaacd_decoder_flush_api()
996 p_obj_exhaacplus_dec->aac_config.flag_16khz_out = 0; in ixheaacd_decoder_flush_api()
997 p_obj_exhaacplus_dec->aac_config.flag_to_stereo = 0; in ixheaacd_decoder_flush_api()
998 p_obj_exhaacplus_dec->aac_config.down_sample_flag = 0; in ixheaacd_decoder_flush_api()
999 p_obj_exhaacplus_dec->aac_config.header_dec_done = 0; in ixheaacd_decoder_flush_api()
1000 p_obj_exhaacplus_dec->aac_config.frame_status = 1; in ixheaacd_decoder_flush_api()
1001 p_obj_exhaacplus_dec->aac_config.ui_mp4_flag = 1; in ixheaacd_decoder_flush_api()
1002 p_obj_exhaacplus_dec->aac_config.ui_disable_sync = 0; in ixheaacd_decoder_flush_api()
1003 p_obj_exhaacplus_dec->aac_config.ui_auto_sbr_upsample = 1; in ixheaacd_decoder_flush_api()
1004 p_obj_exhaacplus_dec->aac_config.ui_samp_freq = 0; in ixheaacd_decoder_flush_api()
1005 p_obj_exhaacplus_dec->aac_config.ui_channel_mode = 3; in ixheaacd_decoder_flush_api()
1006 p_obj_exhaacplus_dec->aac_config.ui_sbr_mode = 2; in ixheaacd_decoder_flush_api()
1007 p_obj_exhaacplus_dec->aac_config.ui_pce_found_in_hdr = 0; in ixheaacd_decoder_flush_api()
1008 p_obj_exhaacplus_dec->aac_config.loas_present = 0; in ixheaacd_decoder_flush_api()
1010 p_obj_exhaacplus_dec->aac_config.ui_drc_enable = 1; in ixheaacd_decoder_flush_api()
1011 p_obj_exhaacplus_dec->aac_config.ui_drc_boost = 0; in ixheaacd_decoder_flush_api()
1012 p_obj_exhaacplus_dec->aac_config.ui_drc_cut = 0; in ixheaacd_decoder_flush_api()
1013 p_obj_exhaacplus_dec->aac_config.ui_drc_target_level = 108; in ixheaacd_decoder_flush_api()
1014 p_obj_exhaacplus_dec->aac_config.ui_drc_set = 0; in ixheaacd_decoder_flush_api()
1015 p_obj_exhaacplus_dec->aac_config.ui_flush_cmd = 1; in ixheaacd_decoder_flush_api()
1017 p_obj_exhaacplus_dec->aac_config.ui_max_channels = 6; in ixheaacd_decoder_flush_api()
1019 p_obj_exhaacplus_dec->aac_config.ui_coupling_channel = 0; in ixheaacd_decoder_flush_api()
1020 p_obj_exhaacplus_dec->aac_config.downmix = 0; in ixheaacd_decoder_flush_api()
1024 &p_obj_exhaacplus_dec->aac_tables; in ixheaacd_decoder_flush_api()
1034 ixheaacd_init_sbr_tables(&p_obj_exhaacplus_dec->str_sbr_tables); in ixheaacd_decoder_flush_api()
1035 p_obj_exhaacplus_dec->common_tables = in ixheaacd_decoder_flush_api()
1037 p_obj_exhaacplus_dec->aac_config.ui_qmf_bands = 64; in ixheaacd_decoder_flush_api()
1038 p_obj_exhaacplus_dec->p_state_aac->header_ptr = header_temp_ptr; in ixheaacd_decoder_flush_api()
1039 p_obj_exhaacplus_dec->p_state_aac->ui_in_bytes = header_length; in ixheaacd_decoder_flush_api()
1040 p_obj_exhaacplus_dec->p_state_aac->header_length = header_length; in ixheaacd_decoder_flush_api()
1042 return ixheaacd_dec_init(p_obj_exhaacplus_dec); in ixheaacd_decoder_flush_api()
1045 p_obj_exhaacplus_dec->aac_config.ui_flush_cmd = 0; in ixheaacd_decoder_flush_api()
1046 return ixheaacd_dec_init(p_obj_exhaacplus_dec); in ixheaacd_decoder_flush_api()
1133 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec) { in ixheaacd_fill_aac_mem_tables() argument
1140 if (p_obj_exhaacplus_dec->aac_config.ui_max_channels > 2) { in ixheaacd_fill_aac_mem_tables()
1141 num_channels = (p_obj_exhaacplus_dec->aac_config.ui_max_channels + 1); in ixheaacd_fill_aac_mem_tables()
1145 num_channels = p_obj_exhaacplus_dec->aac_config.ui_max_channels; in ixheaacd_fill_aac_mem_tables()
1153 &p_obj_exhaacplus_dec->p_mem_info_aac[IA_ENHAACPLUS_DEC_PERSIST_IDX]; in ixheaacd_fill_aac_mem_tables()
1171 &p_obj_exhaacplus_dec->p_mem_info_aac[IA_ENHAACPLUS_DEC_SCRATCH_IDX]; in ixheaacd_fill_aac_mem_tables()
1221 &p_obj_exhaacplus_dec->p_mem_info_aac[IA_ENHAACPLUS_DEC_INPUT_IDX]; in ixheaacd_fill_aac_mem_tables()
1230 &p_obj_exhaacplus_dec->p_mem_info_aac[IA_ENHAACPLUS_DEC_OUTPUT_IDX]; in ixheaacd_fill_aac_mem_tables()
1239 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec, WORD32 i_cmd, in ixheaacd_dec_table_api() argument
1256 (pVOID *)&(p_obj_exhaacplus_dec->aac_tables.pstr_huffmann_tables); in ixheaacd_dec_table_api()
1258 (pVOID *)&(p_obj_exhaacplus_dec->aac_tables.pstr_block_tables); in ixheaacd_dec_table_api()
1260 (pVOID *)&(p_obj_exhaacplus_dec->aac_tables.pstr_imdct_tables); in ixheaacd_dec_table_api()
1261 table_ptrs[3] = (pVOID *)&(p_obj_exhaacplus_dec->common_tables); in ixheaacd_dec_table_api()
1263 (pVOID *)&p_obj_exhaacplus_dec->str_sbr_tables.env_calc_tables_ptr; in ixheaacd_dec_table_api()
1265 (pVOID *)&p_obj_exhaacplus_dec->str_sbr_tables.qmf_dec_tables_ptr; in ixheaacd_dec_table_api()
1267 (pVOID *)&p_obj_exhaacplus_dec->str_sbr_tables.env_extr_tables_ptr; in ixheaacd_dec_table_api()
1268 table_ptrs[7] = (pVOID *)&p_obj_exhaacplus_dec->str_sbr_tables.ps_tables_ptr; in ixheaacd_dec_table_api()
1289 ixheaacd_huff_tables_create(&p_obj_exhaacplus_dec->aac_tables); in ixheaacd_dec_table_api()
1305 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec) { in ixheaacd_dec_init() argument
1324 p_obj_exhaacplus_dec->p_state_aac = in ixheaacd_dec_init()
1325 p_obj_exhaacplus_dec->pp_mem_aac[IA_ENHAACPLUS_DEC_PERSIST_IDX]; in ixheaacd_dec_init()
1327 if (p_obj_exhaacplus_dec->p_state_aac != NULL) { in ixheaacd_dec_init()
1328 ret_val = setjmp(p_obj_exhaacplus_dec->p_state_aac->xaac_jmp_buf); in ixheaacd_dec_init()
1330 p_obj_exhaacplus_dec->p_state_aac->i_bytes_consumed = in ixheaacd_dec_init()
1331 p_obj_exhaacplus_dec->p_state_aac->ui_in_bytes; in ixheaacd_dec_init()
1332 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes = 0; in ixheaacd_dec_init()
1337 time_data = (WORD16 *)(p_obj_exhaacplus_dec in ixheaacd_dec_init()
1340 if (p_obj_exhaacplus_dec->aac_config.ui_flush_cmd == 0) { in ixheaacd_dec_init()
1341 in_buffer = p_obj_exhaacplus_dec->pp_mem_aac[IA_ENHAACPLUS_DEC_INPUT_IDX]; in ixheaacd_dec_init()
1343 in_buffer = p_obj_exhaacplus_dec->p_state_aac->header_ptr; in ixheaacd_dec_init()
1346 p_state_enhaacplus_dec = p_obj_exhaacplus_dec->p_state_aac; in ixheaacd_dec_init()
1349 p_obj_exhaacplus_dec->pp_mem_aac[IA_ENHAACPLUS_DEC_SCRATCH_IDX]; in ixheaacd_dec_init()
1350 p_obj_exhaacplus_dec->p_state_aac->huffman_code_book_scl = in ixheaacd_dec_init()
1351 p_obj_exhaacplus_dec->aac_tables.pstr_huffmann_tables in ixheaacd_dec_init()
1353 p_obj_exhaacplus_dec->p_state_aac->huffman_code_book_scl_index = in ixheaacd_dec_init()
1354 p_obj_exhaacplus_dec->aac_tables.pstr_huffmann_tables in ixheaacd_dec_init()
1357 p_state_enhaacplus_dec->pstr_aac_tables = &p_obj_exhaacplus_dec->aac_tables; in ixheaacd_dec_init()
1358 if (p_obj_exhaacplus_dec->aac_config.header_dec_done == 0) { in ixheaacd_dec_init()
1361 p_obj_exhaacplus_dec->p_state_aac->p_config = in ixheaacd_dec_init()
1362 &p_obj_exhaacplus_dec->aac_config; in ixheaacd_dec_init()
1364 p_obj_exhaacplus_dec->p_state_aac->pstr_stream_sbr = in ixheaacd_dec_init()
1365 (pVOID)((SIZE_T)((pWORD8)p_obj_exhaacplus_dec->p_state_aac + in ixheaacd_dec_init()
1368 if (p_obj_exhaacplus_dec->aac_config.ui_max_channels > 2) { in ixheaacd_dec_init()
1370 (pVOID)((pWORD8)p_obj_exhaacplus_dec->p_state_aac->pstr_stream_sbr + in ixheaacd_dec_init()
1374 memset(p_obj_exhaacplus_dec->p_state_aac->pstr_stream_sbr, 0, in ixheaacd_dec_init()
1379 (pWORD8)p_obj_exhaacplus_dec->p_state_aac->pstr_stream_sbr + in ixheaacd_dec_init()
1382 memset(p_obj_exhaacplus_dec->p_state_aac->pstr_stream_sbr, 0, in ixheaacd_dec_init()
1385 if (1 == p_obj_exhaacplus_dec->aac_config.ui_max_channels) in ixheaacd_dec_init()
1408 p_obj_exhaacplus_dec->aac_config.framesize_480; in ixheaacd_dec_init()
1433 p_obj_exhaacplus_dec->aac_config.header_dec_done = 1; in ixheaacd_dec_init()
1436 &p_obj_exhaacplus_dec->aac_tables; in ixheaacd_dec_init()
1438 p_obj_exhaacplus_dec->common_tables; in ixheaacd_dec_init()
1440 p_obj_exhaacplus_dec->p_state_aac->sbr_persistent_mem_u = in ixheaacd_dec_init()
1441 p_obj_exhaacplus_dec->p_state_aac->sbr_persistent_mem_v; in ixheaacd_dec_init()
1443 p_obj_exhaacplus_dec->p_state_aac->sbr_scratch_mem_u = in ixheaacd_dec_init()
1444 p_obj_exhaacplus_dec->p_state_aac->aac_scratch_mem_v; in ixheaacd_dec_init()
1447 p_obj_exhaacplus_dec->p_state_aac->sbr_persistent_mem_v, in ixheaacd_dec_init()
1448 &p_obj_exhaacplus_dec->str_sbr_tables, in ixheaacd_dec_init()
1449 p_obj_exhaacplus_dec->common_tables); in ixheaacd_dec_init()
1452 if (p_obj_exhaacplus_dec->p_state_aac->ui_input_over == 1) { in ixheaacd_dec_init()
1456 if (p_obj_exhaacplus_dec->p_state_aac->header_dec_done == 0) { in ixheaacd_dec_init()
1460 p_obj_exhaacplus_dec->aac_config.framesize_480; in ixheaacd_dec_init()
1467 if (p_obj_exhaacplus_dec->aac_config.ui_samp_freq == 0) { in ixheaacd_dec_init()
1478 p_obj_exhaacplus_dec, (UWORD8 *)in_buffer, &header_bytes_consumed, in ixheaacd_dec_init()
1484 p_obj_exhaacplus_dec->p_state_aac->str_sbr_config; in ixheaacd_dec_init()
1486 p_obj_exhaacplus_dec->p_state_aac->str_sbr_config; in ixheaacd_dec_init()
1512 (p_obj_exhaacplus_dec->p_state_aac->audio_object_type == AOT_USAC)) { in ixheaacd_dec_init()
1514 WORD32 pcm_size = p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz; in ixheaacd_dec_init()
1516 p_obj_exhaacplus_dec->pp_mem_aac[IA_ENHAACPLUS_DEC_INPUT_IDX]; in ixheaacd_dec_init()
1518 p_obj_exhaacplus_dec->pp_mem_aac[IA_ENHAACPLUS_DEC_OUTPUT_IDX]; in ixheaacd_dec_init()
1520 WORD32 frames_done = p_obj_exhaacplus_dec->p_state_aac->frame_counter; in ixheaacd_dec_init()
1522 if (p_obj_exhaacplus_dec->p_state_aac->ui_input_over == 0) { in ixheaacd_dec_init()
1524 p_obj_exhaacplus_dec, inbuffer, outbuffer, &out_bytes, in ixheaacd_dec_init()
1526 &p_obj_exhaacplus_dec->p_state_aac->num_of_output_ch); in ixheaacd_dec_init()
1528 p_obj_exhaacplus_dec->p_state_aac->frame_counter++; in ixheaacd_dec_init()
1533 p_obj_exhaacplus_dec->aac_config.ui_n_channels = in ixheaacd_dec_init()
1534 p_obj_exhaacplus_dec->p_state_aac->num_of_output_ch; in ixheaacd_dec_init()
1537 p_obj_exhaacplus_dec->p_state_aac->ui_init_done = 1; in ixheaacd_dec_init()
1542 p_obj_exhaacplus_dec->p_state_aac->header_dec_done = 1; in ixheaacd_dec_init()
1543 if (p_obj_exhaacplus_dec->aac_config.ui_flush_cmd == 0) { in ixheaacd_dec_init()
1550 if (p_obj_exhaacplus_dec->p_state_aac->header_dec_done != 1) in ixheaacd_dec_init()
1555 p_obj_exhaacplus_dec->aac_config.down_sample_flag = 1; in ixheaacd_dec_init()
1559 p_obj_exhaacplus_dec->aac_config.down_sample_flag = 1; in ixheaacd_dec_init()
1563 p_obj_exhaacplus_dec->p_state_aac->header_dec_done = 1; in ixheaacd_dec_init()
1567 p_obj_exhaacplus_dec->aac_config.ui_samp_freq; in ixheaacd_dec_init()
1572 p_obj_exhaacplus_dec->p_mem_info_aac[IA_ENHAACPLUS_DEC_INPUT_IDX] in ixheaacd_dec_init()
1581 if (p_obj_exhaacplus_dec->aac_config.ld_decoder == 1) in ixheaacd_dec_init()
1593 if (p_obj_exhaacplus_dec->aac_config.eld_sbr_present == 1) { in ixheaacd_dec_init()
1597 if (p_obj_exhaacplus_dec->aac_config.framesize_480) in ixheaacd_dec_init()
1628 p_obj_exhaacplus_dec->aac_config.ui_drc_cut; in ixheaacd_dec_init()
1630 p_obj_exhaacplus_dec->aac_config.ui_drc_boost; in ixheaacd_dec_init()
1632 p_obj_exhaacplus_dec->aac_config.ui_drc_target_level; in ixheaacd_dec_init()
1634 p_obj_exhaacplus_dec->aac_config.ui_drc_target_level; in ixheaacd_dec_init()
1636 if (1 == p_obj_exhaacplus_dec->aac_config.ui_drc_set) { in ixheaacd_dec_init()
1637 if (p_obj_exhaacplus_dec->aac_config.ui_drc_heavy_comp == 1) { in ixheaacd_dec_init()
1673 p_obj_exhaacplus_dec->aac_config.element_type[i] = -1; in ixheaacd_dec_init()
1678 p_obj_exhaacplus_dec->aac_config.ui_sbr_mode = 0; in ixheaacd_dec_init()
1679 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes = 0; in ixheaacd_dec_init()
1688 if (p_obj_exhaacplus_dec->aac_config.ui_mp4_flag) in ixheaacd_dec_init()
1706 if (p_obj_exhaacplus_dec->aac_config.ui_max_channels > 2) in ixheaacd_dec_init()
1733 if (p_obj_exhaacplus_dec->aac_config.framesize_480) in ixheaacd_dec_init()
1768 (ia_sampling_rate_info_struct *)&p_obj_exhaacplus_dec->aac_tables in ixheaacd_dec_init()
1793 time_data, 1, p_obj_exhaacplus_dec->aac_config.ui_max_channels, in ixheaacd_dec_init()
1800 p_obj_exhaacplus_dec, &aac_scratch_struct, time_data, frame_status, in ixheaacd_dec_init()
1802 p_obj_exhaacplus_dec->aac_config.element_instance_order, 0, 1, 0, in ixheaacd_dec_init()
1803 p_obj_exhaacplus_dec->aac_config.ui_max_channels, 2, in ixheaacd_dec_init()
1804 p_obj_exhaacplus_dec->p_state_aac->frame_length, in ixheaacd_dec_init()
1805 p_obj_exhaacplus_dec->p_state_aac->frame_size, in ixheaacd_dec_init()
1813 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1817 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1821 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1825 memset(&(p_obj_exhaacplus_dec->p_state_aac->pstr_aac_dec_info[ch_idx] in ixheaacd_dec_init()
1842 if ((p_obj_exhaacplus_dec->aac_config.ui_max_channels <= 2) && in ixheaacd_dec_init()
1843 (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 2)) { in ixheaacd_dec_init()
1850 p_obj_exhaacplus_dec->aac_config.ui_sbr_mode = 1; in ixheaacd_dec_init()
1876 if ((p_obj_exhaacplus_dec->aac_config.flag_16khz_out == 1) && in ixheaacd_dec_init()
1878 p_obj_exhaacplus_dec->aac_config.flag_16khz_out = 0; in ixheaacd_dec_init()
1883 (FLAG *)&p_obj_exhaacplus_dec->aac_config.down_sample_flag, in ixheaacd_dec_init()
1908 p_obj_exhaacplus_dec->aac_config.down_sample_flag, 0, in ixheaacd_dec_init()
1915 if (!p_obj_exhaacplus_dec->aac_config.down_sample_flag) { in ixheaacd_dec_init()
1920 if (p_obj_exhaacplus_dec->aac_config.flag_downmix) { in ixheaacd_dec_init()
1945 (FLAG *)&p_obj_exhaacplus_dec->aac_config.down_sample_flag, in ixheaacd_dec_init()
1987 WORD max_ch_num = p_obj_exhaacplus_dec->aac_config.ui_max_channels; in ixheaacd_dec_init()
1990 p_obj_exhaacplus_dec->aac_config.ui_n_channels = ch_idx; in ixheaacd_dec_init()
1991 while (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx_err] <= 3 && in ixheaacd_dec_init()
1992 p_obj_exhaacplus_dec->aac_config.element_type[ch_idx_err] >= 0) { in ixheaacd_dec_init()
1997 p_obj_exhaacplus_dec->p_state_aac->header_dec_done = 0; in ixheaacd_dec_init()
2008 while (p_obj_exhaacplus_dec->aac_config.element_type[i] >= 0 && in ixheaacd_dec_init()
2009 p_obj_exhaacplus_dec->aac_config.element_type[i] <= 3) { in ixheaacd_dec_init()
2011 switch (p_obj_exhaacplus_dec->aac_config.element_type[i]) { in ixheaacd_dec_init()
2021 if (p_obj_exhaacplus_dec->aac_config.element_instance_order[i] != in ixheaacd_dec_init()
2022 p_obj_exhaacplus_dec->aac_config.ui_coupling_channel) { in ixheaacd_dec_init()
2043 if (p_obj_exhaacplus_dec->aac_config.element_type[i] != 2) { in ixheaacd_dec_init()
2057 p_obj_exhaacplus_dec, p_state_enhaacplus_dec, channel, in ixheaacd_dec_init()
2086 (FLAG *)&p_obj_exhaacplus_dec->aac_config.down_sample_flag, in ixheaacd_dec_init()
2097 ((p_obj_exhaacplus_dec->p_state_aac->audio_object_type == in ixheaacd_dec_init()
2099 (p_obj_exhaacplus_dec->p_state_aac->audio_object_type == in ixheaacd_dec_init()
2101 (p_obj_exhaacplus_dec->p_state_aac->audio_object_type == AOT_PS))) in ixheaacd_dec_init()
2102 p_obj_exhaacplus_dec->aac_config.flag_to_stereo = 1; in ixheaacd_dec_init()
2110 p_obj_exhaacplus_dec->aac_config.i_channel_mask = in ixheaacd_dec_init()
2111 ixheaacd_get_channel_mask(p_obj_exhaacplus_dec); in ixheaacd_dec_init()
2116 while (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] >= 0 && in ixheaacd_dec_init()
2117 p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] <= 3) { in ixheaacd_dec_init()
2118 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 0 || in ixheaacd_dec_init()
2119 p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 3) in ixheaacd_dec_init()
2121 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 1) in ixheaacd_dec_init()
2127 p_obj_exhaacplus_dec->aac_config.ui_channel_mode = 2; in ixheaacd_dec_init()
2131 p_obj_exhaacplus_dec->aac_config.ui_channel_mode = 0; in ixheaacd_dec_init()
2133 p_obj_exhaacplus_dec->aac_config.ui_channel_mode = 1; in ixheaacd_dec_init()
2139 if (1 == p_obj_exhaacplus_dec->aac_config.downmix) num_channels_1 = 2; in ixheaacd_dec_init()
2141 if (p_obj_exhaacplus_dec->aac_config.flag_downmix == 1) { in ixheaacd_dec_init()
2145 if ((p_obj_exhaacplus_dec->aac_config.flag_to_stereo == 1) && in ixheaacd_dec_init()
2150 p_obj_exhaacplus_dec->aac_config.ui_n_channels = num_channels_1; in ixheaacd_dec_init()
2151 p_obj_exhaacplus_dec->aac_config.ui_samp_freq = sample_rate; in ixheaacd_dec_init()
2158 if (p_obj_exhaacplus_dec->p_state_aac->header_dec_done == 1) { in ixheaacd_dec_init()
2159 p_obj_exhaacplus_dec->p_state_aac->header_dec_done = 0; in ixheaacd_dec_init()
2213 ia_exhaacplus_dec_api_struct *p_obj_exhaacplus_dec) { in ixheaacd_dec_execute() argument
2240 p_obj_exhaacplus_dec->aac_config.ui_sbr_mode = 0; in ixheaacd_dec_execute()
2242 if (p_obj_exhaacplus_dec->p_state_aac != NULL) { in ixheaacd_dec_execute()
2243 ret_val = setjmp(p_obj_exhaacplus_dec->p_state_aac->xaac_jmp_buf); in ixheaacd_dec_execute()
2245 p_obj_exhaacplus_dec->p_state_aac->i_bytes_consumed = in ixheaacd_dec_execute()
2246 p_obj_exhaacplus_dec->p_state_aac->ui_in_bytes; in ixheaacd_dec_execute()
2247 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes = 0; in ixheaacd_dec_execute()
2252 time_data = (WORD16 *)(p_obj_exhaacplus_dec in ixheaacd_dec_execute()
2254 in_buffer = p_obj_exhaacplus_dec->pp_mem_aac[IA_ENHAACPLUS_DEC_INPUT_IDX]; in ixheaacd_dec_execute()
2255 p_state_enhaacplus_dec = p_obj_exhaacplus_dec->p_state_aac; in ixheaacd_dec_execute()
2257 p_obj_exhaacplus_dec->pp_mem_aac[IA_ENHAACPLUS_DEC_SCRATCH_IDX]; in ixheaacd_dec_execute()
2265 WORD32 pcm_size = p_obj_exhaacplus_dec->aac_config.ui_pcm_wdsz; in ixheaacd_dec_execute()
2266 WORD8 *inbuffer = (WORD8 *)(p_obj_exhaacplus_dec in ixheaacd_dec_execute()
2269 (WORD8 *)(p_obj_exhaacplus_dec in ixheaacd_dec_execute()
2273 WORD32 frames_done = p_obj_exhaacplus_dec->p_state_aac->frame_counter; in ixheaacd_dec_execute()
2276 (ia_dec_data_struct *)(p_obj_exhaacplus_dec->p_state_aac in ixheaacd_dec_execute()
2281 if (p_obj_exhaacplus_dec->p_state_aac->ui_input_over == 0) { in ixheaacd_dec_execute()
2284 p_obj_exhaacplus_dec->p_state_aac->ia_audio_specific_config); in ixheaacd_dec_execute()
2291 ((ia_dec_data_struct *)(p_obj_exhaacplus_dec->p_state_aac in ixheaacd_dec_execute()
2303 ((ia_dec_data_struct *)(p_obj_exhaacplus_dec->p_state_aac->pstr_dec_data)) in ixheaacd_dec_execute()
2307 p_obj_exhaacplus_dec, inbuffer, outbuffer, &out_bytes, frames_done, in ixheaacd_dec_execute()
2308 pcm_size, &p_obj_exhaacplus_dec->p_state_aac->num_of_output_ch); in ixheaacd_dec_execute()
2310 p_obj_exhaacplus_dec->p_state_aac->frame_counter++; in ixheaacd_dec_execute()
2315 p_obj_exhaacplus_dec->p_state_aac->i_bytes_consumed = in ixheaacd_dec_execute()
2316 p_obj_exhaacplus_dec->p_state_aac->ui_in_bytes; in ixheaacd_dec_execute()
2317 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes = out_bytes; in ixheaacd_dec_execute()
2318 p_obj_exhaacplus_dec->aac_config.ui_n_channels = in ixheaacd_dec_execute()
2319 p_obj_exhaacplus_dec->p_state_aac->num_of_output_ch; in ixheaacd_dec_execute()
2324 while (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx1] <= 3 && in ixheaacd_dec_execute()
2325 p_obj_exhaacplus_dec->aac_config.element_type[ch_idx1] >= 0) { in ixheaacd_dec_execute()
2326 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx1] == 0 || in ixheaacd_dec_execute()
2327 p_obj_exhaacplus_dec->aac_config.element_type[ch_idx1] == 3) { in ixheaacd_dec_execute()
2331 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx1] == 1) { in ixheaacd_dec_execute()
2335 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx1] == 2) { in ixheaacd_dec_execute()
2344 if (p_obj_exhaacplus_dec->aac_config.ui_max_channels > 2) { in ixheaacd_dec_execute()
2351 p_obj_exhaacplus_dec->p_state_aac->aac_scratch_mem_v + in ixheaacd_dec_execute()
2358 if (total_channels < (WORD)p_obj_exhaacplus_dec->aac_config.ui_n_channels) in ixheaacd_dec_execute()
2359 total_channels = p_obj_exhaacplus_dec->aac_config.ui_n_channels; in ixheaacd_dec_execute()
2363 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes = 0; in ixheaacd_dec_execute()
2374 if (total_channels > (WORD)p_obj_exhaacplus_dec->aac_config.ui_max_channels) { in ixheaacd_dec_execute()
2381 if (p_obj_exhaacplus_dec->aac_config.ui_mp4_flag) in ixheaacd_dec_execute()
2405 (WORD32)((p_obj_exhaacplus_dec->aac_tables.pstr_huffmann_tables in ixheaacd_dec_execute()
2462 (ia_sampling_rate_info_struct *)&p_obj_exhaacplus_dec->aac_tables in ixheaacd_dec_execute()
2518 p_obj_exhaacplus_dec, ch_idx1, &ch_idx, &channel, in ixheaacd_dec_execute()
2519 p_obj_exhaacplus_dec->aac_config.element_instance_order, in ixheaacd_dec_execute()
2531 if (p_obj_exhaacplus_dec->aac_config.element_type[0] == ID_SCE) in ixheaacd_dec_execute()
2538 slot_ele = p_obj_exhaacplus_dec->aac_config.slot_element[ch_idx]; in ixheaacd_dec_execute()
2540 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] == 2) { in ixheaacd_dec_execute()
2543 if (p_obj_exhaacplus_dec->aac_config.element_instance_order[ch_idx] != in ixheaacd_dec_execute()
2544 p_obj_exhaacplus_dec->aac_config.ui_coupling_channel) { in ixheaacd_dec_execute()
2555 &p_obj_exhaacplus_dec->aac_tables; in ixheaacd_dec_execute()
2557 p_obj_exhaacplus_dec->common_tables; in ixheaacd_dec_execute()
2582 if (p_obj_exhaacplus_dec->aac_config.element_type[1] < 3 && in ixheaacd_dec_execute()
2583 p_obj_exhaacplus_dec->aac_config.element_type[1] > 0 && in ixheaacd_dec_execute()
2584 p_obj_exhaacplus_dec->aac_config.ui_max_channels > 2) { in ixheaacd_dec_execute()
2599 time_data, channel, p_obj_exhaacplus_dec->aac_config.ui_max_channels, in ixheaacd_dec_execute()
2606 p_obj_exhaacplus_dec, &aac_scratch_struct, actual_out_buffer, in ixheaacd_dec_execute()
2607 p_obj_exhaacplus_dec->aac_config.frame_status, &type, &ch_idx, 0, in ixheaacd_dec_execute()
2609 p_obj_exhaacplus_dec->aac_config.ui_max_channels, total_channels, in ixheaacd_dec_execute()
2610 p_obj_exhaacplus_dec->p_state_aac->frame_length, in ixheaacd_dec_execute()
2611 p_obj_exhaacplus_dec->p_state_aac->frame_size, in ixheaacd_dec_execute()
2651 p_obj_exhaacplus_dec->aac_config.ui_sbr_mode = 1; in ixheaacd_dec_execute()
2659 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes += in ixheaacd_dec_execute()
2666 if (p_obj_exhaacplus_dec->aac_config.ui_auto_sbr_upsample == 0) { in ixheaacd_dec_execute()
2679 (FLAG *)&p_obj_exhaacplus_dec->aac_config.down_sample_flag, in ixheaacd_dec_execute()
2704 p_obj_exhaacplus_dec->aac_config.frame_status, in ixheaacd_dec_execute()
2705 p_obj_exhaacplus_dec->aac_config.down_sample_flag, in ixheaacd_dec_execute()
2713 if (!p_obj_exhaacplus_dec->aac_config.down_sample_flag) { in ixheaacd_dec_execute()
2724 p_obj_exhaacplus_dec->aac_config.ui_samp_freq = sample_rate; in ixheaacd_dec_execute()
2730 if (p_obj_exhaacplus_dec->aac_config.element_type[ch_idx] != 2) in ixheaacd_dec_execute()
2733 if (p_obj_exhaacplus_dec->aac_config.flag_to_stereo == 1 && in ixheaacd_dec_execute()
2743 p_obj_exhaacplus_dec->aac_config.ui_n_channels = num_ch; in ixheaacd_dec_execute()
2745 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes += in ixheaacd_dec_execute()
2765 p_obj_exhaacplus_dec->aac_config.ui_n_channels = total_channels; in ixheaacd_dec_execute()
2770 ixheaacd_dec_ind_coupling(p_obj_exhaacplus_dec, in ixheaacd_dec_execute()
2775 if ((total_channels > 2) && (1 == p_obj_exhaacplus_dec->aac_config.downmix)) { in ixheaacd_dec_execute()
2776 ixheaacd_dec_downmix_to_stereo(p_obj_exhaacplus_dec, num_of_out_samples, in ixheaacd_dec_execute()
2780 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes = in ixheaacd_dec_execute()
2784 if (p_obj_exhaacplus_dec->aac_config.flag_downmix && total_channels == 2) { in ixheaacd_dec_execute()
2787 if (p_obj_exhaacplus_dec->aac_config.flag_to_stereo == 1) { in ixheaacd_dec_execute()
2791 p_obj_exhaacplus_dec->aac_config.ui_n_channels = out_ch; in ixheaacd_dec_execute()
2792 p_obj_exhaacplus_dec->p_state_aac->ui_out_bytes = in ixheaacd_dec_execute()