Lines Matching refs:lag
317 int offset, beta, lag; in gen_fcb_excitation() local
327 lag = pitch_contrib[subfrm->ad_cb_gain << 1] + pitch_lag + in gen_fcb_excitation()
331 if (lag < SUBFRAME_LEN - 2) { in gen_fcb_excitation()
332 for (i = lag; i < SUBFRAME_LEN; i++) in gen_fcb_excitation()
333 vector[i] += beta * vector[i - lag] >> 15; in gen_fcb_excitation()
351 int limit, ccr, lag = 0; in autocorr_max() local
365 lag = i; in autocorr_max()
368 return lag; in autocorr_max()
381 static void comp_ppf_gains(int lag, PPFParam *ppf, enum Rate cur_rate, in comp_ppf_gains() argument
387 ppf->index = lag; in comp_ppf_gains()
560 static void residual_interp(int16_t *buf, int16_t *out, int lag, in residual_interp() argument
564 if (lag) { /* Voiced */ in residual_interp()
567 for (i = 0; i < lag; i++) in residual_interp()
568 out[i] = vector_ptr[i - lag] * 3 >> 2; in residual_interp()
569 av_memcpy_backptr((uint8_t*)(out + lag), lag * sizeof(*out), in residual_interp()
570 (FRAME_LEN - lag) * sizeof(*out)); in residual_interp()