Remove const vector casts.
authorAlexander Strange <astrange@ithinksw.com>
Sun, 13 Jul 2008 22:27:19 +0000 (22:27 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Sun, 13 Jul 2008 22:27:19 +0000 (22:27 +0000)
Fixes compilation with altivec and -std=gnu99.

Originally committed as revision 27278 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/yuv2rgb_altivec.c

index d3b30e7ed5a0eb8cd574df440abd7e0a23af7556..5a6aa5959586d3e591f45bd885298f9660acc9f8 100644 (file)
@@ -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);