Hi.
I have a network video stream that I receive and display in sdl window.
When pointer arrow of mouse passes on window surface it should display some image, like options for full screen or exit.
I’m creating overlay using SDL_CreateYUVoverlay function. And using libavcodec to decode the picture.
Then I set the rectangle and call SDL_DisplayYUVOverlay to display frame on screen.
I have tried to make another overlay on top of the frame but of course, it flickers.
I also tried with SDL_BlitSurface but it still flickers.
I understand that I should write the bitmap directly on the overlay surface before blitting it to screen but I don’t know
how to do it.
Should I convert YUV surface to RGB and then blit on to it and show it that way?
Does anyone knows how to do this, or point me to the right direction?
Thanks.
ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)
Vitezi?eva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )
Www:
www.elma.hr; shop.elma.hr
E-mail:
elma at elma.hr (elma at elma.hr)
pitanje at elma.hr (questions at elma.hr)
primjedbe at elma.hr (complaints at elma.hr)
prodaja at elma.hr (sales at elma.hr)
servis at elma.hr (servicing at elma.hr)
shop at elma.hr (shop at elma.hr)
skladiste at elma.hr (warehouse at elma.hr)