- memmove(ractx->gain_block, ractx->gain_block - 1,
- 10 * sizeof(*ractx->gain_block));
-
- *ractx->gain_block = 10 * log10(sum) - 32;
-
- for (i=1; i < 5; i++)
- for (j=i-1; j >= 0; j--)
- buffer[i] -= ractx->sp_lpc[i-j-1] * buffer[j];
-
- /* output */
- for (i=0; i < 5; i++)
- ractx->sp_block[4-i] =
- av_clipf(ractx->sp_block[4-i] + buffer[i], -4095, 4095);
-}
-
-/**
- * Converts autocorrelation coefficients to LPC coefficients using the
- * Levinson-Durbin algorithm. See blocks 37 and 50 of the G.728 specification.
- *
- * @return 0 if success, -1 if fail
- */
-static int eval_lpc_coeffs(const float *in, float *tgt, int n)
-{
- int i, j;
- double f0, f1, f2;
-
- if (in[n] == 0)
- return -1;
-
- if ((f0 = *in) <= 0)
- return -1;