Commit 8246238f authored by vaillancour's avatar vaillancour
Browse files

more fixes concerning -rf encoder command line

parent d8c5924a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -592,7 +592,11 @@ Word16 E_ACELP_xy1_corr(Word16 xn[], Word16 y1[], ACELP_CbkCorr *g_corr, Word16
        Word16 tmp, exp_tmp, exp_div;

        /* Compute scalar product <xn[],xn[]> */
#ifdef BASOP_NOGLOB
        tmp = round_fx_o(Dot_product12_offs(xn, xn, L_subfr, &exp_tmp, 1), &Overflow);
#else
        tmp = round_fx(Dot_product12_offs(xn, xn, L_subfr, &exp_tmp, 1));
#endif
        /* gain_p_snr = sqrt(<xn,xn>/<y1,y1>) */
        tmp = BASOP_Util_Divide1616_Scale(tmp, yy, &exp_div);
        exp_tmp = add(sub(exp_tmp, exp_yy), exp_div);
+4 −0
Original line number Diff line number Diff line
@@ -165,7 +165,11 @@ void detectLowpassFac(const Word32 *powerSpec, Word16 powerSpec_e, Word16 L_fram
    if (rectWin != 0)
    {
        /* compensate for bad side-lobe attenuation with asymmetric windows */
#ifdef BASOP_NOGLOB
        threshold = L_shl_o(threshold, 1, &Overflow);
#else
        threshold = L_shl(threshold, 1);
#endif
    }
    BASOP_SATURATE_WARNING_ON