This probably means that SDL is not falling back to a YUV->RGB conversion blit (by whatever means that would be done) when the single overlay slot is taken.
PC graphics cards (and probably all others that support YUV overlays) do not support more than one overlay at once, period.
Basically it’s displayed using sprite hardware (akin to the mouse pointer) that is very specialized, and not designed to display multiple regions at all.
So SDL ought to be doing conversion blits on all but one of them (or on all of them - it would be simpler).
Note that overlays display some artifacts when dragging windows around, which is the easiest way to tell if something is an overlay (watch the overlay lag behind and only display in part of the pure
blue region of the window, which is normally entirely hidden by the overlay).
Preeti Anand wrote:> Hi,
I’ve tried creating multiple windows (using SDL_CreateWindow family
api) but am not able to simultaneously display multiple videos onto it.
The only window on which overlay is getting created is the one that’s
formed using SetVideoMode api.
My main intent is to use SDL to play multiple videos simultaneously and
am quite new to SDL and this domain in general. So I would really
appreciate if somebody can help me out with this.
Also, I was working on the lines of using multiple threads to achieve
this but dropped that approach when I came across some posts saying that
multiple threads wont achieve this as different threads on each process
would not be able to use different invocations of the SDL library. Can
you please confirm this.
Thanks in advance.
On 10/30/08, Sam Lantinga <slouken at devolution.com <mailto:slouken at devolution.com>> wrote:
> Thanks for the information Sam.
You're welcome! :)
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
Forest ‘LordHavoc’ Hale
Author of DarkPlaces Quake1 engine and mod
http://icculus.org/twilight/darkplaces/
Address: 94340 Horton Road Blachly OR 97412
Phone/Fax: 541-925-4130