Mercurial > libavcodec.hg
comparison dsputil.h @ 10174:89cd870ca180 libavcodec
Add two more sizes to ff_sine_windows[] and also pad it with NULLs so
that FF_ELEMS(ff_sine_windows[x]) == 1 << x.
Fix issue 1384.
author | vitor |
---|---|
date | Tue, 15 Sep 2009 16:18:16 +0000 |
parents | 8d369aee733f |
children | 5cf49858179a |
comparison
equal
deleted
inserted
replaced
10173:f55ca9a2b948 | 10174:89cd870ca180 |
---|---|
758 * Generate a sine window. | 758 * Generate a sine window. |
759 * @param window pointer to half window | 759 * @param window pointer to half window |
760 * @param n size of half window | 760 * @param n size of half window |
761 */ | 761 */ |
762 void ff_sine_window_init(float *window, int n); | 762 void ff_sine_window_init(float *window, int n); |
763 extern float ff_sine_32 [ 32]; | |
764 extern float ff_sine_64 [ 64]; | |
763 extern float ff_sine_128 [ 128]; | 765 extern float ff_sine_128 [ 128]; |
764 extern float ff_sine_256 [ 256]; | 766 extern float ff_sine_256 [ 256]; |
765 extern float ff_sine_512 [ 512]; | 767 extern float ff_sine_512 [ 512]; |
766 extern float ff_sine_1024[1024]; | 768 extern float ff_sine_1024[1024]; |
767 extern float ff_sine_2048[2048]; | 769 extern float ff_sine_2048[2048]; |
768 extern float ff_sine_4096[4096]; | 770 extern float ff_sine_4096[4096]; |
769 extern float * const ff_sine_windows[6]; | 771 extern float * const ff_sine_windows[13]; |
770 | 772 |
771 int ff_mdct_init(MDCTContext *s, int nbits, int inverse, double scale); | 773 int ff_mdct_init(MDCTContext *s, int nbits, int inverse, double scale); |
772 void ff_imdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); | 774 void ff_imdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); |
773 void ff_imdct_half_c(MDCTContext *s, FFTSample *output, const FFTSample *input); | 775 void ff_imdct_half_c(MDCTContext *s, FFTSample *output, const FFTSample *input); |
774 void ff_mdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); | 776 void ff_mdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input); |