aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/ppc/yuv2rgb_altivec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-07-24 11:33:28 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-07-24 11:33:28 +0000
commita4eef68f53046407d7344daa1bf84ac6fdc168a2 (patch)
treea509f4d55141c6aa154cb54d3a5b86b0933a3a35 /libswscale/ppc/yuv2rgb_altivec.c
parent04f6ab1cefbab9c00875043efcb9bf0a369d104f (diff)
downloadffmpeg-a4eef68f53046407d7344daa1bf84ac6fdc168a2.tar.gz
Add some "const" to avoid incompatible pointer type warnings
Originally committed as revision 31780 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/ppc/yuv2rgb_altivec.c')
-rw-r--r--libswscale/ppc/yuv2rgb_altivec.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c
index be26647498..aaea63dd13 100644
--- a/libswscale/ppc/yuv2rgb_altivec.c
+++ b/libswscale/ppc/yuv2rgb_altivec.c
@@ -275,7 +275,7 @@ static inline void cvtyuvtoRGB (SwsContext *c,
#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 (SwsContext *c,
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]);