summaryrefslogtreecommitdiff
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-09-24 20:05:22 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-09-24 20:05:22 +0000
commite60daa340b57040ecfeb888c8f917efecca97e49 (patch)
treefaf033b475e75af4237e3477ebf758f36f5a6719 /libavcodec/ra288.c
parenta987a126fd29bb234e82a7ea699d4ca3326c684c (diff)
Cosmetics: move convolve() together with the other DSP functions
Originally committed as revision 15403 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index bfc2b37665..3993c342ea 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -69,6 +69,13 @@ static void apply_window(float *tgt, const float *m1, const float *m2, int n)
*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 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
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.
*