Overlay and harware

Hi,

I wonder if the SDL_Overlay created by SDL_CreateYUVOverlay can actually be
hardware accelerated ?
With hardware-accelerated, i am talking about YUV2RGB capabilities that the
video card may have. I wonder if the SDL dx5 driver does use it when it’s
available.
According to some benchmark i did, it seems the dx5 driver of SDL doesn’t
use it while using DirectX (8.1 SDK) natively seems about twice faster.
So does SDL use it or not?.Can SDL use some MMX routines for such a task?

Hi,

I wonder if the SDL_Overlay created by SDL_CreateYUVOverlay can actually be
hardware accelerated ?
With hardware-accelerated, i am talking about YUV2RGB capabilities that the
video card may have. I wonder if the SDL dx5 driver does use it when it’s
available.
According to some benchmark i did, it seems the dx5 driver of SDL doesn’t
use it while using DirectX (8.1 SDK) natively seems about twice faster.
So does SDL use it or not?.Can SDL use some MMX routines for such a task?

Check the hardware accelerated flag in the returned overlay.
SDL does use hardware accelerated YUV -> RGB conversion, if available.
However, it uses the DirectX 5-7 API, and DirectX 8 may have a faster
path through the driver. SDL also has MMX routines which it uses if
hardware acceleration isn’t available.

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