aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-26 14:35:50 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-26 14:35:50 +0000
commite07c5ade5ed31999f1ced140dcce29cea6ec0443 (patch)
treeebf9f3eea5df3ae3f6f6532cedce9bd56a8b6273
parent5af20c207ecbdc3100576dc26d0388da378115e5 (diff)
downloadffmpeg-e07c5ade5ed31999f1ced140dcce29cea6ec0443.tar.gz
Move colmult() function to the beginning of file to group DSP-related functions.
Originally committed as revision 14417 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ra288.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 0d98da790f..6b96078048 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -48,6 +48,12 @@ static inline float scalar_product_float(const float * v1, const float * v2,
return res;
}
+static void colmult(float *tgt, const float *m1, const float *m2, int n)
+{
+ while (n--)
+ *(tgt++) = (*(m1++)) * (*(m2++));
+}
+
/* Decode and produce output */
static void decode(RA288Context *ractx, float gain, int cb_coef)
{
@@ -90,12 +96,6 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
}
}
-static void colmult(float *tgt, const float *m1, const float *m2, int n)
-{
- while (n--)
- *(tgt++) = (*(m1++)) * (*(m2++));
-}
-
/**
* Converts autocorrelation coefficients to LPC coefficients using the
* Levinson-Durbin algorithm. See blocks 37 and 50 of the G.728 specification.