[SDL] display YUV file

Gabriele Greco gabriele.greco at darts.it
Thu Nov 13 02:25:01 PST 2003


elhadj benkhelifa wrote:

>     SDL_LockYUVOverlay(YUVOverlay);
>    memcpy(pYCbCrData, pYCbCrData+(Total_Bytes*0),
> Total_Bytes);

Try to replace this libe with:
	memcpy(YUVOverlay->pixels, pYCbCrData, Total_Bytes);

The LockYUV function set the pixels pointer to the value in graphic card 
memory where your data should be displayed, so you cannot set it yourself!

Bye,
  Gabry






More information about the SDL mailing list