Lines Matching defs:lag
656 int16_t lag;
676 /* Calculate lag */
680 lag = k / 2;
682 create_augmented_vector(lag, mem + lMem, cbvec);
709 /* Calculate lag index */
710 lag = (cbveclen << 1) - 20 + index - base_size - lMem - 1;
712 create_augmented_vector(lag, tempbuff2 + SUBL + 5, cbvec);
915 int16_t lag, int16_t blen, int16_t srange, int16_t scale)
919 w16ptr = &buffer[blen - srange - lag];
957 int16_t inlag, /* (i) pitch lag */
964 int16_t j, lag, tmp1, tmp2, randlag;
1003 /* Search around the previous lag +/-3 to find the
1005 lag = inlag - 3;
1010 correlation(&cross, &ener, s->prevResidual, lag, s->block_samples, corrLen, scale3);
1020 this lag is better or not. To avoid the division,
1042 /* New lag is better => record lag, measure and domain */
1043 lag = j;
1051 /* Calculate the periodicity for the lag with the maximum correlation.
1085 /* previous frame lost, use recorded lag and gain */
1086 lag = s->prevLag;
1129 use_lag = lag;
1130 if (lag < 80) {
1131 use_lag = 2 * lag;
1189 s->prevLag = lag;
1295 /* Store the new lag value if the new criteria is larger
1399 int16_t lag, i;
1401 /* Find last lag (since the enhancer is not called to give this info) */
1403 lag = xcorr_coeff(&s->decresidual[s->block_samples-60], &s->decresidual[s->block_samples-80],
1406 lag = xcorr_coeff(&s->decresidual[s->block_samples-ENH_BLOCKL],
1411 /* Store lag (it is needed if next packet is lost) */
1412 s->last_lag = lag;