Mercurial > libavcodec.hg
diff synth_filter.c @ 11592:18f17f44de37 libavcodec
Make synth_filter a function pointer
author | mru |
---|---|
date | Sat, 10 Apr 2010 16:27:53 +0000 |
parents | 4b3da727d832 |
children |
line wrap: on
line diff
--- a/synth_filter.c Sat Apr 10 16:27:47 2010 +0000 +++ b/synth_filter.c Sat Apr 10 16:27:53 2010 +0000 @@ -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 @@ } *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); +}