• Home
  • Raw
  • Download

Lines Matching refs:ptr_ps_dec

126 static WORD ixheaacd_get_ps_scale(ia_ps_dec_struct *ptr_ps_dec) {  in ixheaacd_get_ps_scale()  argument
133 ptr_re = &ptr_ps_dec->delay_buf_qmf_ap_re_im[m][2 * 3]; in ixheaacd_get_ps_scale()
138 ptr_re = (WORD16 *)ptr_ps_dec->delay_buf_qmf_ld_re_im; in ixheaacd_get_ps_scale()
142 ptr_re = (WORD16 *)ptr_ps_dec->delay_buf_qmf_sd_re_im; in ixheaacd_get_ps_scale()
149 ptr_re = (WORD16 *)ptr_ps_dec->delay_buf_qmf_sub_re_im; in ixheaacd_get_ps_scale()
154 for (m = 0; m < ptr_ps_dec->delay_sample_ser[i]; m++) { in ixheaacd_get_ps_scale()
155 ptr_re = &ptr_ps_dec->delay_buf_qmf_ser_re_im[m][i][2 * 3]; in ixheaacd_get_ps_scale()
162 ptr_re = (WORD16 *)ptr_ps_dec->delay_buf_qmf_sub_ser_re_im; in ixheaacd_get_ps_scale()
167 len = ptr_ps_dec->str_hybrid.ptr_qmf_buf; in ixheaacd_get_ps_scale()
170 ptr_re_temp = &ptr_ps_dec->str_hybrid.ptr_qmf_buf_re[i][0]; in ixheaacd_get_ps_scale()
171 ptr_im = &ptr_ps_dec->str_hybrid.ptr_qmf_buf_im[i][0]; in ixheaacd_get_ps_scale()
185 VOID ixheaacd_init_ps_scale(ia_ps_dec_struct *ptr_ps_dec, in ixheaacd_init_ps_scale() argument
192 reserve = ixheaacd_get_ps_scale(ptr_ps_dec); in ixheaacd_init_ps_scale()
194 ptr_ps_dec->delay_buffer_scale = (ptr_ps_dec->delay_buffer_scale + reserve); in ixheaacd_init_ps_scale()
198 temp = ixheaacd_min16(temp, ptr_ps_dec->delay_buffer_scale); in ixheaacd_init_ps_scale()
201 change = (sbr_scale_factor->ps_scale - ptr_ps_dec->delay_buffer_scale); in ixheaacd_init_ps_scale()
204 ixheaacd_scale_ps_states(ptr_ps_dec, (WORD16)change); in ixheaacd_init_ps_scale()
206 ptr_ps_dec->delay_buffer_scale = sbr_scale_factor->ps_scale; in ixheaacd_init_ps_scale()
233 VOID ixheaacd_decorr_filter1_dec(ia_ps_dec_struct *ptr_ps_dec, in ixheaacd_decorr_filter1_dec() argument
253 p_delay_buf_ser_sub_re_im = &ptr_ps_dec->delay_buf_qmf_sub_ser_re_im; in ixheaacd_decorr_filter1_dec()
257 p_left_real = ptr_ps_dec->ptr_hyb_left_re; in ixheaacd_decorr_filter1_dec()
258 p_left_imag = ptr_ps_dec->ptr_hyb_left_im; in ixheaacd_decorr_filter1_dec()
259 p_right_real = ptr_ps_dec->ptr_hyb_right_re; in ixheaacd_decorr_filter1_dec()
260 p_right_imag = ptr_ps_dec->ptr_hyb_right_im; in ixheaacd_decorr_filter1_dec()
262 delay_buf_idx = ptr_ps_dec->delay_buf_idx; in ixheaacd_decorr_filter1_dec()
264 &ptr_ps_dec->delay_buf_qmf_sub_re_im[delay_buf_idx][0]; in ixheaacd_decorr_filter1_dec()
293 delay_buf_idx_ser = ptr_ps_dec->delay_buf_idx_ser[m]; in ixheaacd_decorr_filter1_dec()
337 ia_ps_dec_struct *ptr_ps_dec, WORD32 *p_buf_left_real, in ixheaacd_decorr_filter2_dec() argument
358 p_delay_buf_ser_re_im = &ptr_ps_dec->delay_buf_qmf_ser_re_im; in ixheaacd_decorr_filter2_dec()
363 delay_buf_idx = ptr_ps_dec->delay_buf_idx; in ixheaacd_decorr_filter2_dec()
365 p_delay_buf_ap_re_im = &ptr_ps_dec->delay_buf_qmf_ap_re_im[delay_buf_idx][0]; in ixheaacd_decorr_filter2_dec()
403 delay_buf_idx_ser = ptr_ps_dec->delay_buf_idx_ser[m]; in ixheaacd_decorr_filter2_dec()
447 VOID ixheaacd_decorrelation_dec(ia_ps_dec_struct *ptr_ps_dec, in ixheaacd_decorrelation_dec() argument
469 WORD usb = ptr_ps_dec->usb; in ixheaacd_decorrelation_dec()
472 p_left_real = ptr_ps_dec->ptr_hyb_left_re; in ixheaacd_decorrelation_dec()
473 p_left_imag = ptr_ps_dec->ptr_hyb_left_im; in ixheaacd_decorrelation_dec()
474 p_right_real = ptr_ps_dec->ptr_hyb_right_re; in ixheaacd_decorrelation_dec()
475 p_right_imag = ptr_ps_dec->ptr_hyb_right_im; in ixheaacd_decorrelation_dec()
555 p_left_real = ptr_ps_dec->ptr_hyb_left_re; in ixheaacd_decorrelation_dec()
556 p_left_imag = ptr_ps_dec->ptr_hyb_left_im; in ixheaacd_decorrelation_dec()
563 ptr_ps_dec->peak_decay_diff[bin] = ixheaacd_mult32x16in32_shl( in ixheaacd_decorrelation_dec()
564 ptr_ps_dec->peak_decay_diff[bin], PEAK_DECAYING_FACT); in ixheaacd_decorrelation_dec()
566 ptr_ps_dec->peak_decay_diff[bin] = in ixheaacd_decorrelation_dec()
567 ixheaacd_max32(ptr_ps_dec->peak_decay_diff[bin], power_buf[bin]); in ixheaacd_decorrelation_dec()
570 ixheaacd_mult32x16in32_shl(ptr_ps_dec->peak_decay_diff_prev[bin], in ixheaacd_decorrelation_dec()
572 ((ixheaacd_sub32_sat(ptr_ps_dec->peak_decay_diff[bin], in ixheaacd_decorrelation_dec()
576 ptr_ps_dec->peak_decay_diff_prev[bin] = peak_diff; in ixheaacd_decorrelation_dec()
579 ixheaacd_mult32x16in32_shl(ptr_ps_dec->energy_prev[bin], 0x6000), in ixheaacd_decorrelation_dec()
581 ptr_ps_dec->energy_prev[bin] = nrg; in ixheaacd_decorrelation_dec()
593 (*ixheaacd_decorr_filter1)(ptr_ps_dec, ps_tables_ptr, transient_ratio); in ixheaacd_decorrelation_dec()
597 (*ixheaacd_decorr_filter2)(ptr_ps_dec, p_buf_left_real, p_buf_left_imag, in ixheaacd_decorrelation_dec()
610 delay_buf_idx = ptr_ps_dec->delay_buf_idx_long; in ixheaacd_decorrelation_dec()
612 &ptr_ps_dec->delay_buf_qmf_ld_re_im[delay_buf_idx][0]; in ixheaacd_decorrelation_dec()
626 ptr_ps_dec->delay_buf_idx_long = in ixheaacd_decorrelation_dec()
627 ixheaacd_add16(ptr_ps_dec->delay_buf_idx_long, 1); in ixheaacd_decorrelation_dec()
629 if (ptr_ps_dec->delay_buf_idx_long >= 14) { in ixheaacd_decorrelation_dec()
630 ptr_ps_dec->delay_buf_idx_long = 0; in ixheaacd_decorrelation_dec()
633 p_delay_buf_re_im_sd = &ptr_ps_dec->delay_buf_qmf_sd_re_im[0][0]; in ixheaacd_decorrelation_dec()
655 ptr_ps_dec->delay_buf_idx = (WORD16)(ptr_ps_dec->delay_buf_idx + 1); in ixheaacd_decorrelation_dec()
656 if (ptr_ps_dec->delay_buf_idx >= DEL_ALL_PASS) { in ixheaacd_decorrelation_dec()
657 ptr_ps_dec->delay_buf_idx = 0; in ixheaacd_decorrelation_dec()
664 ptr_ps_dec->delay_buf_idx_ser[delay_m] = in ixheaacd_decorrelation_dec()
665 (ptr_ps_dec->delay_buf_idx_ser[delay_m] + 1); in ixheaacd_decorrelation_dec()
666 if (ptr_ps_dec->delay_buf_idx_ser[delay_m] >= in ixheaacd_decorrelation_dec()
667 ptr_ps_dec->delay_sample_ser[delay_m]) { in ixheaacd_decorrelation_dec()
668 ptr_ps_dec->delay_buf_idx_ser[delay_m] = 0; in ixheaacd_decorrelation_dec()
711 VOID ixheaacd_init_rot_env(ia_ps_dec_struct *ptr_ps_dec, WORD16 env, WORD16 usb, in ixheaacd_init_rot_env() argument
726 WORD usb_prev = ptr_ps_dec->usb; in ixheaacd_init_rot_env()
728 ptr_ps_dec->usb = usb; in ixheaacd_init_rot_env()
739 for (j = 0; j < ptr_ps_dec->delay_sample_ser[i]; j++) { in ixheaacd_init_rot_env()
740 ptr_tmp = &ptr_ps_dec->delay_buf_qmf_ser_re_im[j][i][usb_prev * 2]; in ixheaacd_init_rot_env()
757 &ptr_ps_dec->delay_buf_qmf_ld_re_im[i][ixheaacd_drc_offset * 2]; in ixheaacd_init_rot_env()
768 ptr_tmp = &ptr_ps_dec->delay_buf_qmf_sd_re_im[i][offset1 * 2]; in ixheaacd_init_rot_env()
776 if (ptr_ps_dec->iid_quant) { in ixheaacd_init_rot_env()
786 ixheaacd_sub16_sat(ptr_ps_dec->border_position[env + 1], in ixheaacd_init_rot_env()
787 ptr_ps_dec->border_position[env]))]; in ixheaacd_init_rot_env()
789 p_iid_idx = &ptr_ps_dec->iid_par_table[env][0]; in ixheaacd_init_rot_env()
828 ptr_ps_dec->delta_h11_h12[2 * group + 0] = ixheaacd_mult16_shl( in ixheaacd_init_rot_env()
830 ixheaacd_sub16(h11, ptr_ps_dec->h11_h12_vec[2 * group + 0])); in ixheaacd_init_rot_env()
831 ptr_ps_dec->delta_h11_h12[2 * group + 1] = ixheaacd_mult16_shl( in ixheaacd_init_rot_env()
833 ixheaacd_sub16(h12, ptr_ps_dec->h11_h12_vec[2 * group + 1])); in ixheaacd_init_rot_env()
834 ptr_ps_dec->delta_h21_h22[2 * group + 0] = ixheaacd_mult16_shl( in ixheaacd_init_rot_env()
836 ixheaacd_sub16(h21, ptr_ps_dec->h21_h22_vec[2 * group + 0])); in ixheaacd_init_rot_env()
837 ptr_ps_dec->delta_h21_h22[2 * group + 1] = ixheaacd_mult16_shl( in ixheaacd_init_rot_env()
839 ixheaacd_sub16(h22, ptr_ps_dec->h21_h22_vec[2 * group + 1])); in ixheaacd_init_rot_env()
841 ptr_ps_dec->H11_H12[2 * group + 0] = ptr_ps_dec->h11_h12_vec[2 * group + 0]; in ixheaacd_init_rot_env()
842 ptr_ps_dec->H11_H12[2 * group + 1] = ptr_ps_dec->h11_h12_vec[2 * group + 1]; in ixheaacd_init_rot_env()
843 ptr_ps_dec->H21_H22[2 * group + 0] = ptr_ps_dec->h21_h22_vec[2 * group + 0]; in ixheaacd_init_rot_env()
844 ptr_ps_dec->H21_H22[2 * group + 1] = ptr_ps_dec->h21_h22_vec[2 * group + 1]; in ixheaacd_init_rot_env()
846 ptr_ps_dec->h11_h12_vec[2 * group + 0] = h11; in ixheaacd_init_rot_env()
847 ptr_ps_dec->h11_h12_vec[2 * group + 1] = h12; in ixheaacd_init_rot_env()
848 ptr_ps_dec->h21_h22_vec[2 * group + 0] = h21; in ixheaacd_init_rot_env()
849 ptr_ps_dec->h21_h22_vec[2 * group + 1] = h22; in ixheaacd_init_rot_env()
853 VOID ixheaacd_apply_rot_dec(ia_ps_dec_struct *ptr_ps_dec, WORD32 *p_qmf_left_re, in ixheaacd_apply_rot_dec() argument
871 usb = ptr_ps_dec->usb; in ixheaacd_apply_rot_dec()
873 p_hyb_left_re1 = ptr_ps_dec->ptr_hyb_left_re; in ixheaacd_apply_rot_dec()
874 p_hyb_left_im1 = ptr_ps_dec->ptr_hyb_left_im; in ixheaacd_apply_rot_dec()
875 p_hyb_right_re1 = ptr_ps_dec->ptr_hyb_right_re; in ixheaacd_apply_rot_dec()
876 p_hyb_right_im1 = ptr_ps_dec->ptr_hyb_right_im; in ixheaacd_apply_rot_dec()
879 ptr_ps_dec->H11_H12[2 * group + 0] = in ixheaacd_apply_rot_dec()
880 ixheaacd_add16(ptr_ps_dec->H11_H12[2 * group + 0], in ixheaacd_apply_rot_dec()
881 ptr_ps_dec->delta_h11_h12[2 * group + 0]); in ixheaacd_apply_rot_dec()
882 ptr_ps_dec->H11_H12[2 * group + 1] = in ixheaacd_apply_rot_dec()
883 ixheaacd_add16(ptr_ps_dec->H11_H12[2 * group + 1], in ixheaacd_apply_rot_dec()
884 ptr_ps_dec->delta_h11_h12[2 * group + 1]); in ixheaacd_apply_rot_dec()
886 ptr_ps_dec->H21_H22[2 * group + 0] = in ixheaacd_apply_rot_dec()
887 ixheaacd_add16(ptr_ps_dec->H21_H22[2 * group + 0], in ixheaacd_apply_rot_dec()
888 ptr_ps_dec->delta_h21_h22[2 * group + 0]); in ixheaacd_apply_rot_dec()
889 ptr_ps_dec->H21_H22[2 * group + 1] = in ixheaacd_apply_rot_dec()
890 ixheaacd_add16(ptr_ps_dec->H21_H22[2 * group + 1], in ixheaacd_apply_rot_dec()
891 ptr_ps_dec->delta_h21_h22[2 * group + 1]); in ixheaacd_apply_rot_dec()
897 ptr_ps_dec->H11_H12[2 * subband + 0]), in ixheaacd_apply_rot_dec()
899 ptr_ps_dec->H21_H22[2 * subband + 0])); in ixheaacd_apply_rot_dec()
902 ptr_ps_dec->H11_H12[2 * subband + 0]), in ixheaacd_apply_rot_dec()
904 ptr_ps_dec->H21_H22[2 * subband + 0])); in ixheaacd_apply_rot_dec()
907 ptr_ps_dec->H11_H12[2 * subband + 1]), in ixheaacd_apply_rot_dec()
909 ptr_ps_dec->H21_H22[2 * subband + 1])); in ixheaacd_apply_rot_dec()
912 ptr_ps_dec->H11_H12[2 * subband + 1]), in ixheaacd_apply_rot_dec()
914 ptr_ps_dec->H21_H22[2 * subband + 1])); in ixheaacd_apply_rot_dec()
927 WORD32 *h11_h12_src = (WORD32 *)ptr_ps_dec->H11_H12; in ixheaacd_apply_rot_dec()
928 WORD32 *h21_h22_src = (WORD32 *)ptr_ps_dec->H21_H22; in ixheaacd_apply_rot_dec()