Hello all,

I need to be able to write arbitrary picture data from video files to an
SDL_Surface. In ffplay, there's a section where an AVPicture's internal
members are linked to an SDL_Overlay, like so:

pict.data[0] = vp->bmp->pixels[0];
pict.data[1] = vp->bmp->pixels[2];
pict.data[2] = vp->bmp->pixels[1];

and the same for the linesize/pictches. Then sws_scale is called, which does
all the magic conversion/writing to AVPicture/SDL_Overlay.

What I was wondering was is there any way to do something like this for an
SDL_Surface? I figure I could pass in a format like RGB24 for compatibility
with the SDL_Surface.

I already have the Overlay stuff working fine, but for the Pygame community,
it would be best to have support for arbritrary surfaces as well.

-Tyler
-- 
Visit my blog at http://oddco.ca/zeroth/zblog
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to