Commit 2e044a05 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Limit local normalization of inputs in calc_residu_fx() and analy_lp_fx() to IVAS_SCE mode only.

parent e9b57932
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( NE_16( st->element_mode, EVS_MONO ) && GT_16( scf, 0 ) )
        IF( EQ_16( st->element_mode, IVAS_SCE ) && 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 );
+2 −1
Original line number Diff line number Diff line
@@ -1159,7 +1159,8 @@ void pre_proc_front_ivas_fx(
    Word16 offset = (Word16) ( inp_12k8_fx - old_inp_12k8_fx );
    Word16 norm_inp = norm_arr( old_inp_12k8_fx, L_INP_12k8 );

    IF( GT_16( norm_inp, 0 ) )
    test();
    IF( EQ_16( element_mode, IVAS_SCE ) && GT_16( norm_inp, 0 ) )
    {
        Copy_Scale_sig( old_inp_12k8_fx, inp_local, L_INP_12k8, norm_inp );
        Q_local = add( *Q_new, norm_inp );