diff mdct.c @ 7573:7802295cae6f libavcodec

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.
author superdump
date Thu, 14 Aug 2008 14:40:16 +0000
parents 8226017a65ae
children ed956c3c2cf3
line wrap: on
line diff
--- a/mdct.c	Thu Aug 14 14:36:22 2008 +0000
+++ b/mdct.c	Thu Aug 14 14:40:16 2008 +0000
@@ -48,6 +48,15 @@
        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;