]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegaudiodsp.h
dv: Initialize encoder tables during encoder init.
[ffmpeg] / libavcodec / mpegaudiodsp.h
index 01fd698f3e390d97a79c45cf5121936226f1f1c8..c24ea4117e1db66aa497513e0376782459b99156 100644 (file)
@@ -20,6 +20,7 @@
 #define AVCODEC_MPEGAUDIODSP_H
 
 #include <stdint.h>
+#include "libavutil/common.h"
 
 typedef struct MPADSPContext {
     void (*apply_window_float)(float *synth_buf, float *window,
@@ -74,7 +75,10 @@ void ff_imdct36_blocks_fixed(int *out, int *buf, int *in,
 void ff_init_mpadsp_tabs_float(void);
 void ff_init_mpadsp_tabs_fixed(void);
 
-extern int ff_mdct_win_fixed[8][36];
-extern float ff_mdct_win_float[8][36];
+/** For SSE implementation, MDCT_BUF_SIZE/2 should be 128-bit aligned */
+#define MDCT_BUF_SIZE FFALIGN(36, 2*4)
+
+extern int ff_mdct_win_fixed[8][MDCT_BUF_SIZE];
+extern float ff_mdct_win_float[8][MDCT_BUF_SIZE];
 
 #endif /* AVCODEC_MPEGAUDIODSP_H */