Mercurial > libavcodec.hg
comparison dsputil.h @ 6142:a35b838ab955 libavcodec
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
author | superdump |
---|---|
date | Sun, 13 Jan 2008 11:02:08 +0000 |
parents | 5077d1562573 |
children | 2799f65a24de |
comparison
equal
deleted
inserted
replaced
6141:932523fb0562 | 6142:a35b838ab955 |
---|---|
646 } MDCTContext; | 646 } MDCTContext; |
647 | 647 |
648 /** | 648 /** |
649 * Generate a Kaiser-Bessel Derived Window. | 649 * Generate a Kaiser-Bessel Derived Window. |
650 * @param window pointer to half window | 650 * @param window pointer to half window |
651 * @param alpha determines window shape | |
652 * @param n size of half window | |
651 */ | 653 */ |
652 void ff_kbd_window_init(float *window); | 654 void ff_kbd_window_init(float *window, float alpha, int n); |
653 | 655 |
654 int ff_mdct_init(MDCTContext *s, int nbits, int inverse); | 656 int ff_mdct_init(MDCTContext *s, int nbits, int inverse); |
655 void ff_imdct_calc(MDCTContext *s, FFTSample *output, | 657 void ff_imdct_calc(MDCTContext *s, FFTSample *output, |
656 const FFTSample *input, FFTSample *tmp); | 658 const FFTSample *input, FFTSample *tmp); |
657 void ff_imdct_calc_3dn2(MDCTContext *s, FFTSample *output, | 659 void ff_imdct_calc_3dn2(MDCTContext *s, FFTSample *output, |