summaryrefslogtreecommitdiff
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-24 04:29:23 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-24 04:29:23 +0000
commit2477d60944b622d1565a4f80bce07ad2c9b1c359 (patch)
tree14c44e5293b87d6f1ad2c95abbf4ec3fca0ad736 /libavcodec/ra288.c
parenta6755f8d53fc5284938fc1ecde999f16b42d5882 (diff)
Rename update() function to backward_filter() and add a doxy comment
Originally committed as revision 14364 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index bae3b445e1..0408d6aad8 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -184,7 +184,10 @@ static void do_hybrid_window(int order, int n, int non_rec, const float *in,
*out *= 257./256.;
}
-static void update(Real288_internal *glob)
+/**
+ * Backward synthesis filter. Find the LPC coefficients from past speech data.
+ */
+static void backward_filter(Real288_internal *glob)
{
float buffer1[40], temp1[37];
float buffer2[8], temp2[11];
@@ -237,7 +240,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
*(out++) = 8 * glob->output[glob->phase*5 + y];
if (glob->phase == 3)
- update(glob);
+ backward_filter(glob);
}
*data_size = (char *)out - (char *)data;