summaryrefslogtreecommitdiff
path: root/libavcodec/synth_filter.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-04-10 16:27:53 +0000
committerMåns Rullgård <mans@mansr.com>2010-04-10 16:27:53 +0000
commitf462ed1f82e4be18876786e86f472ddf7cd41fbc (patch)
tree9641a3a3f80b976bc32696b91c8649a5fbe93e18 /libavcodec/synth_filter.h
parent38d52f3ea32413a644c4dec22264f3955f90d495 (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.h')
-rw-r--r--libavcodec/synth_filter.h13
1 files changed, 9 insertions, 4 deletions
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 */