diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2012-01-04 21:43:47 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-08 17:37:23 -0800 |
commit | 06677d0dd9d3c656665566e585e9ca6de815f247 (patch) | |
tree | 4977dd1490e0cbc419858322ea305f9be981cf27 /libavcodec/mpegaudiodsp.h | |
parent | 6dfcf53092aba9f1ef31629e11515df5752327db (diff) | |
download | ffmpeg-06677d0dd9d3c656665566e585e9ca6de815f247.tar.gz |
mpegaudiodec: change imdct window arrangment for better pointer alignment
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/mpegaudiodsp.h')
-rw-r--r-- | libavcodec/mpegaudiodsp.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/mpegaudiodsp.h b/libavcodec/mpegaudiodsp.h index 01fd698f3e..c24ea4117e 100644 --- a/libavcodec/mpegaudiodsp.h +++ b/libavcodec/mpegaudiodsp.h @@ -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 */ |