Commit 5f27469a authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Remove the SCE limit on calc_residu_fx pre-normalization and add a comment to...

Remove the SCE limit on calc_residu_fx pre-normalization and add a comment to the normalization before analy_lp_fx().
parent 7fe3aeba
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -669,7 +669,7 @@ ivas_error acelp_core_enc_fx(
#ifdef FIX_BASOP_2517_CLICK_IN_OMASA_LTV
        Word16 scf = sub( norm_arr( inp - M, add( st->L_frame, M ) ), 2 );
        test();
        IF( EQ_16( st->element_mode, IVAS_SCE ) && GT_16( scf, 0 ) )
        IF( NE_16( st->element_mode, EVS_MONO ) && GT_16( scf, 0 ) )
        {
            Word16 inp_local_acelp[L_FRAME16k + M];
            Copy_Scale_sig( inp - M, inp_local_acelp, add( st->L_frame, M ), scf );
+1 −1
Original line number Diff line number Diff line
@@ -1160,7 +1160,7 @@ void pre_proc_front_ivas_fx(
    Word16 norm_inp = norm_arr( old_inp_12k8_fx, L_INP_12k8 );

    test();
    IF( EQ_16( element_mode, IVAS_SCE ) && GT_16( norm_inp, 0 ) )
    IF( EQ_16( element_mode, IVAS_SCE ) && GT_16( norm_inp, 0 ) ) // SCE only: in stereo (CPE), pre-normalization slightly alters A_fx, causing divergence from the floating-point decoder during a mode switch.
    {
        Copy_Scale_sig( old_inp_12k8_fx, inp_local, L_INP_12k8, norm_inp );
        Q_local = add( *Q_new, norm_inp );