Commit 8ddf7cff authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Applied rounding to old_out.

Deactivated q_win change and dynamic_q_old_out.
parent 3700cbf5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@
//#define HARM_SCE_INIT
#define DIV32_OPT_NEWTON                               /* FhG: faster 32 by 32 bit division */
#define	MERGE_REQUEST_1378_SPEEDUP_ivas_mc_param_enc_fx_NONBE /* FhG: reduce WMOPS of Cy calculation in ivas_param_mc_param_est_enc_fx() by using 64 Bit addition. Obsoletes IMPROVE_HIGH_COMPLEXITY_PARAM_MC_PRM_EST_NONBE. */
#define FIX_1348_BIT_PRECISION_IMPROVEMENT
//#define FIX_1348_BIT_PRECISION_IMPROVEMENT
//#define FIX_1348_BIT_PRECISION_IMPROVEMENT_DYNAMIC_QOLD
#define FIX_1348_BIT_PRECISION_IMPROVEMENT_ROUND_OLD_BUFF
#endif
+5 −0
Original line number Diff line number Diff line
@@ -2932,7 +2932,12 @@ void IMDCT_ivas_fx(
                FOR( Word16 ind = 0; ind < L_frame; ind++ )
                {
#ifndef FIX_1348_BIT_PRECISION_IMPROVEMENT_DYNAMIC_QOLD

#ifdef FIX_1348_BIT_PRECISION_IMPROVEMENT_ROUND_OLD_BUFF
                    old_out_fx[ind] = shr_r( old_out_fx[ind], q_diff );
#else
                    old_out_fx[ind] = shr_sat( old_out_fx[ind], q_diff );
#endif
                    move16();
#endif
                    xn_buf_fx[ind] = shr_sat( xn_buf_fx[ind], diff );