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