SDL YUV overlay question

I have a question about the pixels buffer when using SDL Overlay.

Is it possible to just copy pointers to Y, U and V buffers into
the pixels array of the overlay structure ? Or do we need to memcpy
data into the locatations given by the data pointers given there ?

If it is acceptable to just change the pixels pointers, how long
do we need to keep the data buffers valid ? Until the next Lock/Display/Unlock,
or just until after the Unlock is called ?

Thanks,
Bill May

I have a question about the pixels buffer when using SDL Overlay.

Is it possible to just copy pointers to Y, U and V buffers into
the pixels array of the overlay structure ? Or do we need to memcpy
data into the locatations given by the data pointers given there ?

You need to memcpy the data into the locations given by the data pointers.
They may point to video memory or other special storage.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software