summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec_float.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-06-23 20:45:36 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-06-23 20:45:36 +0000
commit47ba7874427fd7b6a93777f9ae9a1a646f9cceda (patch)
tree170cdb5d6d4089f6699422602a6dc4a2a5beba5e /libavcodec/mpegaudiodec_float.c
parent9dac6dbb221704c45705217c2e1d4ba66a2d373c (diff)
Move float-specific function to mpegaudiodec_float.c
Originally committed as revision 23743 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec_float.c')
-rw-r--r--libavcodec/mpegaudiodec_float.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavcodec/mpegaudiodec_float.c b/libavcodec/mpegaudiodec_float.c
index dcdeea59cf..578270be1e 100644
--- a/libavcodec/mpegaudiodec_float.c
+++ b/libavcodec/mpegaudiodec_float.c
@@ -22,6 +22,25 @@
#define CONFIG_FLOAT 1
#include "mpegaudiodec.c"
+void ff_mpa_synth_filter_float(MPADecodeContext *s, float *synth_buf_ptr,
+ int *synth_buf_offset,
+ float *window, int *dither_state,
+ float *samples, int incr,
+ float sb_samples[SBLIMIT])
+{
+ float *synth_buf;
+ int offset;
+
+ offset = *synth_buf_offset;
+ synth_buf = synth_buf_ptr + offset;
+
+ dct32(synth_buf, sb_samples);
+ s->apply_window_mp3(synth_buf, window, dither_state, samples, incr);
+
+ offset = (offset - 32) & 511;
+ *synth_buf_offset = offset;
+}
+
#if CONFIG_MP1FLOAT_DECODER
AVCodec mp1float_decoder =
{