src/video/ps2gs/SDL_gsyuv.c
changeset 543 522e5202014d
parent 252 e8157fcb3114
child 1312 c9b51268668f
equal deleted inserted replaced
542:7a15ee64acc7 543:522e5202014d
   347 	    case SDL_IYUV_OVERLAY:
   347 	    case SDL_IYUV_OVERLAY:
   348 		lum = (Uint32 *)overlay->pixels[0];
   348 		lum = (Uint32 *)overlay->pixels[0];
   349 		Cr =  (Uint32 *)overlay->pixels[2];
   349 		Cr =  (Uint32 *)overlay->pixels[2];
   350 		Cb =  (Uint32 *)overlay->pixels[1];
   350 		Cb =  (Uint32 *)overlay->pixels[1];
   351 	    default:
   351 	    default:
   352 		SDL_SetError("Unsupported YUV format in blit (??)");
   352 		SDL_SetError("Unsupported YUV format in blit (?)");
   353 		return(-1);
   353 		return(-1);
   354 	}
   354 	}
   355 	dst = (Uint32 *)hwdata->ipu_imem;
   355 	dst = (Uint32 *)hwdata->ipu_imem;
   356 	lum_pitch = overlay->w/4;
   356 	lum_pitch = overlay->w/4;
   357 	crb_pitch = (overlay->w/2)/4;
   357 	crb_pitch = (overlay->w/2)/4;