comparison mpegaudiodec_float.c @ 11935:5e8770f9d8f1 libavcodec

Move float-specific function to mpegaudiodec_float.c
author vitor
date Wed, 23 Jun 2010 20:45:36 +0000
parents eb9e142ea51f
children 3f3d08bb5cf8
comparison
equal deleted inserted replaced
11934:f881e8f699f4 11935:5e8770f9d8f1
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */ 20 */
21 21
22 #define CONFIG_FLOAT 1 22 #define CONFIG_FLOAT 1
23 #include "mpegaudiodec.c" 23 #include "mpegaudiodec.c"
24
25 void ff_mpa_synth_filter_float(MPADecodeContext *s, float *synth_buf_ptr,
26 int *synth_buf_offset,
27 float *window, int *dither_state,
28 float *samples, int incr,
29 float sb_samples[SBLIMIT])
30 {
31 float *synth_buf;
32 int offset;
33
34 offset = *synth_buf_offset;
35 synth_buf = synth_buf_ptr + offset;
36
37 dct32(synth_buf, sb_samples);
38 s->apply_window_mp3(synth_buf, window, dither_state, samples, incr);
39
40 offset = (offset - 32) & 511;
41 *synth_buf_offset = offset;
42 }
24 43
25 #if CONFIG_MP1FLOAT_DECODER 44 #if CONFIG_MP1FLOAT_DECODER
26 AVCodec mp1float_decoder = 45 AVCodec mp1float_decoder =
27 { 46 {
28 "mp1float", 47 "mp1float",