From f462ed1f82e4be18876786e86f472ddf7cd41fbc Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sat, 10 Apr 2010 16:27:53 +0000 Subject: Make synth_filter a function pointer Originally committed as revision 22827 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/synth_filter.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'libavcodec/synth_filter.h') diff --git a/libavcodec/synth_filter.h b/libavcodec/synth_filter.h index 701394ca0a..5b875fcad0 100644 --- a/libavcodec/synth_filter.h +++ b/libavcodec/synth_filter.h @@ -23,9 +23,14 @@ #include "fft.h" -void ff_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); +typedef struct SynthFilterContext { + 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); +} SynthFilterContext; + +void ff_synth_filter_init(SynthFilterContext *c); #endif /* AVCODEC_SYNTH_FILTER_H */ -- cgit v1.2.3