Commit 6467c04c authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Remove ener_fx rescaling after analy_lp_fx()

parent d021ed31
Loading
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -1155,26 +1155,15 @@ void pre_proc_front_ivas_fx(

#ifdef FIX_BASOP_2517_CLICK_IN_OMASA_LTV
    Word16 inp_local[L_INP_12k8];
    Word16 Q_local;
    Word16 offset = (Word16) ( inp_12k8_fx - old_inp_12k8_fx );
    Word16 norm_inp = norm_arr( old_inp_12k8_fx, L_INP_12k8 );
    Word16 Q_local;

    IF( 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 );
        analy_lp_fx( inp_local + offset, L_FRAME, L_look, ener_fx, A_fx, epsP_h, epsP_l, lsp_new_fx, lsp_mid_fx, st->lsp_old1_fx, alw_pitch_lag_12k8, alw_voicing_fx, INT_FS_12k8, element_mode, i, Q_local, Q_r );
        IF( ener_fx != NULL )
        {
            Word16 ener_shift = shl( norm_inp, 1 );
            IF( ener_shift > 0 )
            {
                ener_fx[0] = L_shr_sat( ener_fx[0], ener_shift );
                move32();
            }
        }
        Q_r[0] = sub( Q_r[0], shl( norm_inp, 1 ) );
        move16();
    }
    ELSE
    {