# HG changeset patch # User vitor # Date 1222286722 0 # Node ID 2a4c42e6aecbcf566e05872ca129029d63d4dedb # Parent 2d530c3d155ea655094a79b5fe27c1322c505ba9 Cosmetics: move convolve() together with the other DSP functions diff -r 2d530c3d155e -r 2a4c42e6aecb ra288.c --- a/ra288.c Wed Sep 24 20:03:58 2008 +0000 +++ b/ra288.c Wed Sep 24 20:05:22 2008 +0000 @@ -69,6 +69,13 @@ *tgt++ = *m1++ * *m2++; } +static void convolve(float *tgt, const float *src, int len, int n) +{ + for (; n >= 0; n--) + tgt[n] = scalar_product_float(src, src - n, len); + +} + static void decode(RA288Context *ractx, float gain, int cb_coef) { int i, j; @@ -114,13 +121,6 @@ block[i] = av_clipf(block[i], -4095, 4095); } -static void convolve(float *tgt, const float *src, int len, int n) -{ - for (; n >= 0; n--) - tgt[n] = scalar_product_float(src, src - n, len); - -} - /** * Hybrid window filtering, see blocks 36 and 49 of the G.728 specification. *