diff options
author | Robert Swain <robert.swain@gmail.com> | 2008-01-13 11:02:08 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2008-01-13 11:02:08 +0000 |
commit | 3ed546fe525eace861e708ab970cf91f69bfdd09 (patch) | |
tree | f34d1a9c71cb362238422c2a2c38df68be3a4409 /libavcodec/dsputil.h | |
parent | 99fac0806b0d20790b57b4f6c96676139438e2f6 (diff) | |
download | ffmpeg-3ed546fe525eace861e708ab970cf91f69bfdd09.tar.gz |
Add variable alpha and size of half window for Kaiser-Bessel Derived window
generation. Hard code Bessel I0 approximation iterations to 50.
See thread for discussion:
[FFmpeg-devel] [PATCH] Move Kaiser-Bessel Derived window to mdct.c
Started on the 2008/01/10
Originally committed as revision 11520 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index da4c3a9089..c13943580a 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -648,8 +648,10 @@ typedef struct MDCTContext { /** * Generate a Kaiser-Bessel Derived Window. * @param window pointer to half window + * @param alpha determines window shape + * @param n size of half window */ -void ff_kbd_window_init(float *window); +void ff_kbd_window_init(float *window, float alpha, int n); int ff_mdct_init(MDCTContext *s, int nbits, int inverse); void ff_imdct_calc(MDCTContext *s, FFTSample *output, |