[FFmpeg-cvslog] r31780 - trunk/libswscale/ppc/yuv2rgb_altivec.c

reimar subversion
Sat Jul 24 13:33:28 CEST 2010


Author: reimar
Date: Sat Jul 24 13:33:28 2010
New Revision: 31780

Log:
Add some "const" to avoid incompatible pointer type warnings

Modified:
   trunk/libswscale/ppc/yuv2rgb_altivec.c

Modified: trunk/libswscale/ppc/yuv2rgb_altivec.c
==============================================================================
--- trunk/libswscale/ppc/yuv2rgb_altivec.c	Sat Jul 24 13:19:39 2010	(r31779)
+++ trunk/libswscale/ppc/yuv2rgb_altivec.c	Sat Jul 24 13:33:28 2010	(r31780)
@@ -275,7 +275,7 @@ static inline void cvtyuvtoRGB (SwsConte
 
 #define DEFCSP420_CVT(name,out_pixels)                                  \
 static int altivec_##name (SwsContext *c,                               \
-                           unsigned char **in, int *instrides,          \
+                           const unsigned char **in, int *instrides,    \
                            int srcSliceY,        int srcSliceH,         \
                            unsigned char **oplanes, int *outstrides)    \
 {                                                                       \
@@ -309,10 +309,10 @@ static int altivec_##name (SwsContext *c
                                                                         \
     vector unsigned short lCSHIFT = c->CSHIFT;                          \
                                                                         \
-    ubyte *y1i   = in[0];                                               \
-    ubyte *y2i   = in[0]+instrides[0];                                  \
-    ubyte *ui    = in[1];                                               \
-    ubyte *vi    = in[2];                                               \
+    const ubyte *y1i   = in[0];                                         \
+    const ubyte *y2i   = in[0]+instrides[0];                            \
+    const ubyte *ui    = in[1];                                         \
+    const ubyte *vi    = in[2];                                         \
                                                                         \
     vector unsigned char *oute                                          \
         = (vector unsigned char *)                                      \
@@ -626,7 +626,7 @@ const vector unsigned char
   this is so I can play live CCIR raw video
 */
 static int altivec_uyvy_rgb32 (SwsContext *c,
-                               unsigned char **in, int *instrides,
+                               const unsigned char **in, int *instrides,
                                int srcSliceY,        int srcSliceH,
                                unsigned char **oplanes, int *outstrides)
 {
@@ -638,7 +638,7 @@ static int altivec_uyvy_rgb32 (SwsContex
     vector signed   short R0,G0,B0,R1,G1,B1;
     vector unsigned char  R,G,B;
     vector unsigned char *out;
-    ubyte *img;
+    const ubyte *img;
 
     img = in[0];
     out = (vector unsigned char *)(oplanes[0]+srcSliceY*outstrides[0]);



More information about the ffmpeg-cvslog mailing list