Loading lib_dec/er_dec_tcx_fx.c +2 −2 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ void con_tcx_fx( { /* apply pre-emphasis to the signal */ #ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE mem = shl( synth[( -( ( ( shr( L_frame, 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )], st->Q_syn_factor ); /*Q0*/ mem = shl_sat( synth[( -( ( ( shr( L_frame, 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )], st->Q_syn_factor ); /*Q0*/ #else mem = synth[( -( ( ( ( L_frame / 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )]; /*Q0*/ #endif Loading Loading @@ -239,7 +239,7 @@ void con_tcx_fx( { /* apply pre-emphasis to the signal */ #ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE mem = shl( synth[( -L_frame - 1 )], st->Q_syn_factor ); /*Q0*/ mem = shl_sat( synth[( -L_frame - 1 )], st->Q_syn_factor ); /*Q0*/ #else mem = synth[( -L_frame - 1 )]; /*Q0*/ #endif Loading lib_dec/ivas_core_dec_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -625,6 +625,10 @@ ivas_error ivas_core_dec_fx( move16(); Q_synth = 0; move16(); #ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE st->Q_syn_factor = 0; move16(); #endif ivas_hq_core_dec_fx( st, synth_16_fx[n], &Q_synth, output_frame, NORMAL_HQ_CORE, core_switching_flag[n], output_16_fx[n], &Q_output ); Loading Loading
lib_dec/er_dec_tcx_fx.c +2 −2 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ void con_tcx_fx( { /* apply pre-emphasis to the signal */ #ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE mem = shl( synth[( -( ( ( shr( L_frame, 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )], st->Q_syn_factor ); /*Q0*/ mem = shl_sat( synth[( -( ( ( shr( L_frame, 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )], st->Q_syn_factor ); /*Q0*/ #else mem = synth[( -( ( ( ( L_frame / 2 ) + hTcxDec->pit_max_TCX ) + M + M ) ) - 1 )]; /*Q0*/ #endif Loading Loading @@ -239,7 +239,7 @@ void con_tcx_fx( { /* apply pre-emphasis to the signal */ #ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE mem = shl( synth[( -L_frame - 1 )], st->Q_syn_factor ); /*Q0*/ mem = shl_sat( synth[( -L_frame - 1 )], st->Q_syn_factor ); /*Q0*/ #else mem = synth[( -L_frame - 1 )]; /*Q0*/ #endif Loading
lib_dec/ivas_core_dec_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -625,6 +625,10 @@ ivas_error ivas_core_dec_fx( move16(); Q_synth = 0; move16(); #ifdef FIX_1793_DEC_MC_TO_MONO_SCALING_ISSUE st->Q_syn_factor = 0; move16(); #endif ivas_hq_core_dec_fx( st, synth_16_fx[n], &Q_synth, output_frame, NORMAL_HQ_CORE, core_switching_flag[n], output_16_fx[n], &Q_output ); Loading