changeset 27246:0ade28bdc565

Remove const vector casts from Altivec. Fixes compatibility with C99.
author astrange
date Sun, 13 Jul 2008 22:27:19 +0000
parents ccf1f8602a9d
children 66de7e5084dc
files libswscale/yuv2rgb_altivec.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/yuv2rgb_altivec.c	Sun Jul 13 17:12:41 2008 +0000
+++ b/libswscale/yuv2rgb_altivec.c	Sun Jul 13 22:27:19 2008 +0000
@@ -143,13 +143,13 @@
 */
 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 @@
 // 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);