diff options
author | Måns Rullgård <mans@mansr.com> | 2010-04-10 16:27:53 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-04-10 16:27:53 +0000 |
commit | f462ed1f82e4be18876786e86f472ddf7cd41fbc (patch) | |
tree | 9641a3a3f80b976bc32696b91c8649a5fbe93e18 /libavcodec/synth_filter.c | |
parent | 38d52f3ea32413a644c4dec22264f3955f90d495 (diff) |
Make synth_filter a function pointer
Originally committed as revision 22827 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/synth_filter.c')
-rw-r--r-- | libavcodec/synth_filter.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/synth_filter.c b/libavcodec/synth_filter.c index a252b5c2b0..a0ae364d79 100644 --- a/libavcodec/synth_filter.c +++ b/libavcodec/synth_filter.c @@ -21,7 +21,7 @@ #include "fft.h" #include "synth_filter.h" -void ff_synth_filter_float(FFTContext *imdct, +static void synth_filter_float(FFTContext *imdct, float *synth_buf_ptr, int *synth_buf_offset, float synth_buf2[32], const float window[512], float out[32], const float in[32], float scale, float bias) @@ -55,3 +55,10 @@ void ff_synth_filter_float(FFTContext *imdct, } *synth_buf_offset= (*synth_buf_offset - 32)&511; } + +av_cold void ff_synth_filter_init(SynthFilterContext *c) +{ + c->synth_filter_float = synth_filter_float; + + if (ARCH_ARM) ff_synth_filter_init_arm(c); +} |