The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
i would like to post the following: sdl 1.2 flickering when
Alberto Martín Fernandez
Guest

Hi;

Iḿ developing a media player using SDL1.2 .

I have flickering when i try to overlay an image in the screen during the video is playing.(Like full screen buttons or an ad).

To display the video i'm creating overlay using SDL_CreateYUVoverlay function. Then I set the rectangle and call SDL_DisplayYUVOverlay.

I'm trying to show a picture while the video is playing.
For showing the picture i tried YUV overlays(SDL_CreateYUVoverlay + SDL_DisplayYUVOverlay ) and also with surfaces(SDL_BlitSurface + SDL_UpdateRect or SDL_Flip) but it always flickers.

I read something about merge two YUV overlays in one (2 input to 1 output), but i could not found information or examples about that.

Does anyone knows how to do this?

Thanks a lot!