changeset 6571:ad0c77d2b6ee libavcodec

Increase alignment for DCT block arrays from 8 to 16 Patch by Alexander Strange ( astrange ithinksw com )
author superdump
date Tue, 08 Apr 2008 01:09:33 +0000
parents 51a4d1e4d70a
children c92b7e617a0a
files asv1.c dv.c mdec.c mjpegdec.h wmv2.h
diffstat 5 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/asv1.c	Tue Apr 08 00:57:12 2008 +0000
+++ b/asv1.c	Tue Apr 08 01:09:33 2008 +0000
@@ -47,7 +47,7 @@
     int mb_height;
     int mb_width2;
     int mb_height2;
-    DECLARE_ALIGNED_8(DCTELEM, block[6][64]);
+    DECLARE_ALIGNED_16(DCTELEM, block[6][64]);
     DECLARE_ALIGNED_8(uint16_t, intra_matrix[64]);
     DECLARE_ALIGNED_8(int, q_intra_matrix[64]);
     uint8_t *bitstream_buffer;
--- a/dv.c	Tue Apr 08 00:57:12 2008 +0000
+++ b/dv.c	Tue Apr 08 01:09:33 2008 +0000
@@ -376,7 +376,7 @@
     PutBitContext pb, vs_pb;
     GetBitContext gb;
     BlockInfo mb_data[5 * 6], *mb, *mb1;
-    DECLARE_ALIGNED_8(DCTELEM, sblock[5*6][64]);
+    DECLARE_ALIGNED_16(DCTELEM, sblock[5*6][64]);
     DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */
     DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */
     const int log2_blocksize= 3-s->avctx->lowres;
--- a/mdec.c	Tue Apr 08 00:57:12 2008 +0000
+++ b/mdec.c	Tue Apr 08 01:09:33 2008 +0000
@@ -47,7 +47,7 @@
     int mb_width;
     int mb_height;
     int mb_x, mb_y;
-    DECLARE_ALIGNED_8(DCTELEM, block[6][64]);
+    DECLARE_ALIGNED_16(DCTELEM, block[6][64]);
     DECLARE_ALIGNED_8(uint16_t, intra_matrix[64]);
     DECLARE_ALIGNED_8(int, q_intra_matrix[64]);
     uint8_t *bitstream_buffer;
--- a/mjpegdec.h	Tue Apr 08 00:57:12 2008 +0000
+++ b/mjpegdec.h	Tue Apr 08 01:09:33 2008 +0000
@@ -82,7 +82,7 @@
     AVFrame picture; /* picture structure */
     int linesize[MAX_COMPONENTS];                   ///< linesize << interlaced
     int8_t *qscale_table;
-    DECLARE_ALIGNED_8(DCTELEM, block[64]);
+    DECLARE_ALIGNED_16(DCTELEM, block[64]);
     ScanTable scantable;
     DSPContext dsp;
 
--- a/wmv2.h	Tue Apr 08 00:57:12 2008 +0000
+++ b/wmv2.h	Tue Apr 08 01:09:33 2008 +0000
@@ -50,7 +50,7 @@
     int hshift;
 
     ScanTable abt_scantable[2];
-    DECLARE_ALIGNED_8(DCTELEM, abt_block2[6][64]);
+    DECLARE_ALIGNED_16(DCTELEM, abt_block2[6][64]);
 }Wmv2Context;
 
 void ff_wmv2_common_init(Wmv2Context * w);