[MPlayer-cvslog] r27278 - trunk/libswscale/yuv2rgb_altivec.c

astrange subversion at mplayerhq.hu
Mon Jul 14 00:27:19 CEST 2008


Author: astrange
Date: Mon Jul 14 00:27:19 2008
New Revision: 27278

Log:
Remove const vector casts.
Fixes compilation with altivec and -std=gnu99.


Modified:
   trunk/libswscale/yuv2rgb_altivec.c

Modified: trunk/libswscale/yuv2rgb_altivec.c
==============================================================================
--- trunk/libswscale/yuv2rgb_altivec.c	(original)
+++ trunk/libswscale/yuv2rgb_altivec.c	Mon Jul 14 00:27:19 2008
@@ -143,13 +143,13 @@ typedef signed char   sbyte;
 */
 static
 const vector unsigned char
-  perm_rgb_0 = (const vector unsigned char)AVV(0x00,0x01,0x10,0x02,0x03,0x11,0x04,0x05,
+  perm_rgb_0 = AVV(0x00,0x01,0x10,0x02,0x03,0x11,0x04,0x05,
                                                0x12,0x06,0x07,0x13,0x08,0x09,0x14,0x0a),
-  perm_rgb_1 = (const vector unsigned char)AVV(0x0b,0x15,0x0c,0x0d,0x16,0x0e,0x0f,0x17,
+  perm_rgb_1 = AVV(0x0b,0x15,0x0c,0x0d,0x16,0x0e,0x0f,0x17,
                                                0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f),
-  perm_rgb_2 = (const vector unsigned char)AVV(0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
+  perm_rgb_2 = AVV(0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
                                                0x00,0x01,0x18,0x02,0x03,0x19,0x04,0x05),
-  perm_rgb_3 = (const vector unsigned char)AVV(0x1a,0x06,0x07,0x1b,0x08,0x09,0x1c,0x0a,
+  perm_rgb_3 = AVV(0x1a,0x06,0x07,0x1b,0x08,0x09,0x1c,0x0a,
                                                0x0b,0x1d,0x0c,0x0d,0x1e,0x0e,0x0f,0x1f);
 
 #define vec_merge3(x2,x1,x0,y0,y1,y2)       \
@@ -612,15 +612,15 @@ DEFCSP420_CVT (yuv2_bgr24,  out_bgr24)
 // 0123 4567 89ab cdef
 static
 const vector unsigned char
-    demux_u = (const vector unsigned char)AVV(0x10,0x00,0x10,0x00,
+    demux_u = AVV(0x10,0x00,0x10,0x00,
                                               0x10,0x04,0x10,0x04,
                                               0x10,0x08,0x10,0x08,
                                               0x10,0x0c,0x10,0x0c),
-    demux_v = (const vector unsigned char)AVV(0x10,0x02,0x10,0x02,
+    demux_v = AVV(0x10,0x02,0x10,0x02,
                                               0x10,0x06,0x10,0x06,
                                               0x10,0x0A,0x10,0x0A,
                                               0x10,0x0E,0x10,0x0E),
-    demux_y = (const vector unsigned char)AVV(0x10,0x01,0x10,0x03,
+    demux_y = AVV(0x10,0x01,0x10,0x03,
                                               0x10,0x05,0x10,0x07,
                                               0x10,0x09,0x10,0x0B,
                                               0x10,0x0D,0x10,0x0F);



More information about the MPlayer-cvslog mailing list