diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2008-08-12 00:38:30 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2008-08-12 00:38:30 +0000 |
commit | d46ac5bfde98b57265de4aaf994e1690afa5d5b5 (patch) | |
tree | 483b38b640129a8c5e45f6d28a21e48de78155b4 /libavcodec/dsputil.h | |
parent | 0a570e826d7cb6602219236e20a15d85ab68b073 (diff) | |
download | ffmpeg-d46ac5bfde98b57265de4aaf994e1690afa5d5b5.tar.gz |
mdct wrapper function to match fft
Originally committed as revision 14703 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index a0e25a6b8e..600f4fbcce 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -676,6 +676,15 @@ typedef struct MDCTContext { FFTContext fft; } MDCTContext; +static inline void ff_imdct_calc(MDCTContext *s, FFTSample *output, const FFTSample *input) +{ + s->fft.imdct_calc(s, output, input); +} +static inline void ff_imdct_half(MDCTContext *s, FFTSample *output, const FFTSample *input) +{ + s->fft.imdct_half(s, output, input); +} + /** * Generate a Kaiser-Bessel Derived Window. * @param window pointer to half window @@ -692,8 +701,8 @@ void ff_kbd_window_init(float *window, float alpha, int n); void ff_sine_window_init(float *window, int n); int ff_mdct_init(MDCTContext *s, int nbits, int inverse); -void ff_imdct_calc(MDCTContext *s, FFTSample *output, const FFTSample *input); -void ff_imdct_half(MDCTContext *s, FFTSample *output, const FFTSample *input); +void ff_imdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); +void ff_imdct_half_c(MDCTContext *s, FFTSample *output, const FFTSample *input); void ff_imdct_calc_3dn(MDCTContext *s, FFTSample *output, const FFTSample *input); void ff_imdct_half_3dn(MDCTContext *s, FFTSample *output, const FFTSample *input); void ff_imdct_calc_3dn2(MDCTContext *s, FFTSample *output, const FFTSample *input); |