changeset 1838:3d138844ceab

Fixed compiling GS YUV conversion code
author Sam Lantinga <slouken@libsdl.org>
date Tue, 16 May 2006 06:53:27 +0000
parents 6987e947c77a
children 78da406ad139
files src/video/ps2gs/SDL_gsyuv.c
diffstat 1 files changed, 19 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/ps2gs/SDL_gsyuv.c	Tue May 16 03:58:08 2006 +0000
+++ b/src/video/ps2gs/SDL_gsyuv.c	Tue May 16 06:53:27 2006 +0000
@@ -325,7 +325,7 @@
 	int lum_pitch;
 	int crb_pitch;
 	Uint32 *lum_src, *Cr_src, *Cb_src;
-	Uint32 *src, *dst;
+	Uint32 *srcp, *dstp;
 	unsigned int x, y;
 	SDL_Surface *screen;
 
@@ -345,7 +345,7 @@
 		SDL_SetError("Unsupported YUV format in blit (?)");
 		return(-1);
 	}
-	dst = (Uint32 *)hwdata->ipu_imem;
+	dstp = (Uint32 *)hwdata->ipu_imem;
 	lum_pitch = overlay->w/4;
 	crb_pitch = (overlay->w/2)/4;
 
@@ -355,28 +355,28 @@
 		Cr_src = Cr;
 		Cb_src = Cb;
 		for ( w=overlay->w/16; w; --w ) {
-			src = lum_src;
+			srcp = lum_src;
 			for ( i=0; i<16; ++i ) {
-				dst[0] = src[0];
-				dst[1] = src[1];
-				dst[2] = src[2];
-				dst[3] = src[3];
-				src += lum_pitch;
-				dst += 4;
+				dstp[0] = srcp[0];
+				dstp[1] = srcp[1];
+				dstp[2] = srcp[2];
+				dstp[3] = srcp[3];
+				srcp += lum_pitch;
+				dstp += 4;
 			}
-			src = Cb_src;
+			srcp = Cb_src;
 			for ( i=0; i<8; ++i ) {
-				dst[0] = src[0];
-				dst[1] = src[1];
-				src += crb_pitch;
-				dst += 2;
+				dstp[0] = srcp[0];
+				dstp[1] = srcp[1];
+				srcp += crb_pitch;
+				dstp += 2;
 			}
-			src = Cr_src;
+			srcp = Cr_src;
 			for ( i=0; i<8; ++i ) {
-				dst[0] = src[0];
-				dst[1] = src[1];
-				src += crb_pitch;
-				dst += 2;
+				dstp[0] = srcp[0];
+				dstp[1] = srcp[1];
+				srcp += crb_pitch;
+				dstp += 2;
 			}
 			lum_src += 16 / 4;
 			Cb_src += 8 / 4;