Overlay formats and FourCC

Hi,

SDL knows 5 formats for overlays. If you look at the list of registered
fourcc formats, you’ll see that there are several aliases for each of
these. So, for example, if I request SDL_YUY2_OVERLAY does SDL automagically
look for aliases of this supported by the actual hardware? If it doesn’t
I’ll have to do this in my code for best possible support. However, it
would be more efficient if SDL did this. This might not be a good idea,
although I can’t think of good reasons against it, ATM.

Anyway, if SDL doesn’t have this feature already, will it be supported in
the future?–
Christian
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040108/17be0123/attachment.pgp

Hi,

SDL knows 5 formats for overlays. If you look at the list of registered
fourcc formats, you’ll see that there are several aliases for each of
these. So, for example, if I request SDL_YUY2_OVERLAY does SDL automagically
look for aliases of this supported by the actual hardware?

I believe so. The FOURCC codes are passed directly to the underlying drivers
(XVideo, DirectX, etc.) and if the hardware supports them, it will create an
overlay of the correct type. Otherwise SDL will fall back to software support,
of the formats SDL knows about.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment