Loading lib_com/prot.h +11 −0 Original line number Diff line number Diff line Loading @@ -2530,6 +2530,17 @@ void calc_st_filt( const int16_t extl /* i : extension layer info */ ); void calc_st_filt_fx( const float *apond2, /* i : coefficients of numerator */ const float *apond1, /* i : coefficients of denominator */ float *parcor0, /* o : 1st parcor calcul. on composed filter */ float *sig_ltp_ptr, /* i/o: input of 1/A(gamma1) : scaled by 1/g0 */ float *mem_zero, /* i/o: All zero memory */ const int16_t L_subfr, /* i : the length of subframe */ const int16_t extl /* i : extension layer info */ ); void scale_st_ivas( const float *sig_in, /* i : postfilter input signal */ float *sig_out, /* i/o: postfilter output signal */ Loading lib_dec/dec_post_fx.c +5 −5 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ static void compute_ltp_l_fx( Word16 * s_in, Word16 ltpdel, Word16 phase, Word16 static Word16 select_ltp_fx( Word16 num1, Word16 den1, Word16 sh_num1, Word16 sh_den1, Word16 num2, Word16 den2, Word16 sh_num2, Word16 sh_den2 ); static void calc_st_filt_fx( Word16 * apond2, Word16 * apond1, Word16 * parcor0, Word16 * sig_ltp_ptr, Word16 * mem_zero ); static void calc_st_filt_local_fx( Word16 * apond2, Word16 * apond1, Word16 * parcor0, Word16 * sig_ltp_ptr, Word16 * mem_zero ); static void modify_pst_param_fx( const Word16 lp_noise, Word16 *g1, Word16 *g2, const Word16 coder_type, Word16 *gain_factor ); Loading Loading @@ -238,7 +238,7 @@ static void Dec_postfilt_fx( move16(); /* Controls short term pst filter gain and compute parcor0 */ calc_st_filt_fx(apond2, apond1, &parcor0, sig_ltp_ptr, hPFstat->mem_zero ); calc_st_filt_local_fx(apond2, apond1, &parcor0, sig_ltp_ptr, hPFstat->mem_zero ); E_UTIL_synthesis(1, apond1, sig_ltp_ptr, sig_ltp_ptr, L_SUBFR, hPFstat->mem_stp+L_SYN_MEM-M, 0, M); Copy( sig_ltp_ptr+L_SUBFR-L_SYN_MEM, hPFstat->mem_stp, L_SYN_MEM ); Loading Loading @@ -576,7 +576,7 @@ static void Dec_formant_postfilt_fx( } /* Controls short term pst filter gain and compute parcor0 */ calc_st_filt_fx(apond2, apond1, &parcor0, res2, hPFstat->mem_zero ); calc_st_filt_local_fx(apond2, apond1, &parcor0, res2, hPFstat->mem_zero ); /* 1/A(gamma1) filtering, mem_stp is updated */ resynth[0] = *(hPFstat->mem_stp + sub(L_SYN_MEM, 1)); Loading Loading @@ -1554,13 +1554,13 @@ static Word16 select_ltp_fx( /* o : 1 = 1st gain, 2 = 2nd gain */ } /*---------------------------------------------------------------------------- * calc_st_filt_fx * calc_st_filt_local_fx * * computes impulse response of A(gamma2) / A(gamma1) * controls gain : computation of energy impulse response as * SUMn (abs (h[n])) and computes parcor0 *---------------------------------------------------------------------------- */ static void calc_st_filt_fx( static void calc_st_filt_local_fx( Word16 * apond2, /* i : coefficients of numerator */ Word16 * apond1, /* i : coefficients of denominator */ Word16 * parcor0, /* o : 1st parcor calcul. on composed filter */ Loading Loading
lib_com/prot.h +11 −0 Original line number Diff line number Diff line Loading @@ -2530,6 +2530,17 @@ void calc_st_filt( const int16_t extl /* i : extension layer info */ ); void calc_st_filt_fx( const float *apond2, /* i : coefficients of numerator */ const float *apond1, /* i : coefficients of denominator */ float *parcor0, /* o : 1st parcor calcul. on composed filter */ float *sig_ltp_ptr, /* i/o: input of 1/A(gamma1) : scaled by 1/g0 */ float *mem_zero, /* i/o: All zero memory */ const int16_t L_subfr, /* i : the length of subframe */ const int16_t extl /* i : extension layer info */ ); void scale_st_ivas( const float *sig_in, /* i : postfilter input signal */ float *sig_out, /* i/o: postfilter output signal */ Loading
lib_dec/dec_post_fx.c +5 −5 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ static void compute_ltp_l_fx( Word16 * s_in, Word16 ltpdel, Word16 phase, Word16 static Word16 select_ltp_fx( Word16 num1, Word16 den1, Word16 sh_num1, Word16 sh_den1, Word16 num2, Word16 den2, Word16 sh_num2, Word16 sh_den2 ); static void calc_st_filt_fx( Word16 * apond2, Word16 * apond1, Word16 * parcor0, Word16 * sig_ltp_ptr, Word16 * mem_zero ); static void calc_st_filt_local_fx( Word16 * apond2, Word16 * apond1, Word16 * parcor0, Word16 * sig_ltp_ptr, Word16 * mem_zero ); static void modify_pst_param_fx( const Word16 lp_noise, Word16 *g1, Word16 *g2, const Word16 coder_type, Word16 *gain_factor ); Loading Loading @@ -238,7 +238,7 @@ static void Dec_postfilt_fx( move16(); /* Controls short term pst filter gain and compute parcor0 */ calc_st_filt_fx(apond2, apond1, &parcor0, sig_ltp_ptr, hPFstat->mem_zero ); calc_st_filt_local_fx(apond2, apond1, &parcor0, sig_ltp_ptr, hPFstat->mem_zero ); E_UTIL_synthesis(1, apond1, sig_ltp_ptr, sig_ltp_ptr, L_SUBFR, hPFstat->mem_stp+L_SYN_MEM-M, 0, M); Copy( sig_ltp_ptr+L_SUBFR-L_SYN_MEM, hPFstat->mem_stp, L_SYN_MEM ); Loading Loading @@ -576,7 +576,7 @@ static void Dec_formant_postfilt_fx( } /* Controls short term pst filter gain and compute parcor0 */ calc_st_filt_fx(apond2, apond1, &parcor0, res2, hPFstat->mem_zero ); calc_st_filt_local_fx(apond2, apond1, &parcor0, res2, hPFstat->mem_zero ); /* 1/A(gamma1) filtering, mem_stp is updated */ resynth[0] = *(hPFstat->mem_stp + sub(L_SYN_MEM, 1)); Loading Loading @@ -1554,13 +1554,13 @@ static Word16 select_ltp_fx( /* o : 1 = 1st gain, 2 = 2nd gain */ } /*---------------------------------------------------------------------------- * calc_st_filt_fx * calc_st_filt_local_fx * * computes impulse response of A(gamma2) / A(gamma1) * controls gain : computation of energy impulse response as * SUMn (abs (h[n])) and computes parcor0 *---------------------------------------------------------------------------- */ static void calc_st_filt_fx( static void calc_st_filt_local_fx( Word16 * apond2, /* i : coefficients of numerator */ Word16 * apond1, /* i : coefficients of denominator */ Word16 * parcor0, /* o : 1st parcor calcul. on composed filter */ Loading