diff options
author | Robert Swain <robert.swain@gmail.com> | 2008-08-14 14:40:16 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2008-08-14 14:40:16 +0000 |
commit | 69fc4da3606046672340bc81053db30e80dc36d4 (patch) | |
tree | 726e0e654999dbd72bba87c44d4dae90bd979382 /libavcodec/mdct.c | |
parent | ece6b83c3e3da6fc009d3a931e866ffcb966c6ee (diff) | |
download | ffmpeg-69fc4da3606046672340bc81053db30e80dc36d4.tar.gz |
Add declarations for the sine tables used in wma.c (half window sizes: 128,
256, 512, 1024 and 2048) to mdct.c. Make them accessible via dsputil.h. Make
wma.c use these shared tables.
Originally committed as revision 14758 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r-- | libavcodec/mdct.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c index f4e2a93a6a..2d49520a9f 100644 --- a/libavcodec/mdct.c +++ b/libavcodec/mdct.c @@ -48,6 +48,15 @@ void ff_kbd_window_init(float *window, float alpha, int n) window[i] = sqrt(local_window[i] / sum); } +float ff_sine_128 [ 128]; +float ff_sine_256 [ 256]; +float ff_sine_512 [ 512]; +float ff_sine_1024[1024]; +float ff_sine_2048[2048]; +float *ff_sine_windows[5] = { + ff_sine_128, ff_sine_256, ff_sine_512, ff_sine_1024, ff_sine_2048, +}; + // Generate a sine window. void ff_sine_window_init(float *window, int n) { int i; |