diff vp3.c @ 1972:8a556283601d libavcodec

hook up support for SSE2-optimized VP3 IDCT
author melanson
date Sun, 25 Apr 2004 03:33:30 +0000
parents 7f7aa6ac3723
children 89422281f6f6
line wrap: on
line diff
--- a/vp3.c	Sun Apr 25 03:30:19 2004 +0000
+++ b/vp3.c	Sun Apr 25 03:33:30 2004 +0000
@@ -268,9 +268,11 @@
     VLC ac_vlc_3[16];
     VLC ac_vlc_4[16];
 
-    int16_t intra_y_dequant[64];
-    int16_t intra_c_dequant[64];
-    int16_t inter_dequant[64];
+    /* these arrays need to be on 16-byte boundaries since SSE2 operations
+     * index into them */
+    int16_t __align16 intra_y_dequant[64];
+    int16_t __align16 intra_c_dequant[64];
+    int16_t __align16 inter_dequant[64];
 
     /* This table contains superblock_count * 16 entries. Each set of 16
      * numbers corresponds to the fragment indices 0..15 of the superblock.