Lines Matching refs:lag
546 const INT lag, in FDKaacEnc_CalcAutoCorrValue() argument
553 if (lag==0) { in FDKaacEnc_CalcAutoCorrValue()
559 for (i=startLine; i<(stopLine-lag); i++) { in FDKaacEnc_CalcAutoCorrValue()
560 result += (fMult(spectrum[i], spectrum[i+lag])>>scale); in FDKaacEnc_CalcAutoCorrValue()
626 int i, idx0, idx1, idx2, idx3, idx4, lag; in FDKaacEnc_MergedAutoCorrelation() local
683 for (lag = 1; lag <= maxOrder; lag++) { in FDKaacEnc_MergedAutoCorrelation()
685 if ((3 * lag) <= maxOrder + 3) { in FDKaacEnc_MergedAutoCorrelation()
686 FIXP_DBL x1 = FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx0, idx1, lag, nsc1); in FDKaacEnc_MergedAutoCorrelation()
687 _rxx1[lag] = fMult(scaleValue(fMult(x1,fac1),sc_fac1), acfWindow[LOFILT][3*lag]); in FDKaacEnc_MergedAutoCorrelation()
717 for (lag = 1; lag <= maxOrder; lag++) { in FDKaacEnc_MergedAutoCorrelation()
719 …FIXP_DBL x2 = scaleValue(fMult(FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx1, idx2, lag, nsc2), fac2… in FDKaacEnc_MergedAutoCorrelation()
720 … scaleValue(fMult(FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx2, idx3, lag, nsc3), fac3),sc_fac3) + in FDKaacEnc_MergedAutoCorrelation()
721 … scaleValue(fMult(FDKaacEnc_CalcAutoCorrValue(pSpectrum, idx3, idx4, lag, nsc4), fac4),sc_fac4); in FDKaacEnc_MergedAutoCorrelation()
723 _rxx2[lag] = fMult(x2, acfWindow[HIFILT][lag]); in FDKaacEnc_MergedAutoCorrelation()