The latest CVS snapshots of SDL and SMPEG support hardware acceleration
using YUV video overlays. The software implementation is complete for
YV12 formats, and nearly complete for the YUY2 family of video formats.
The current SDL snapshot includes hardware acceleration using the
XVideo extension in XFree86 4.0, which is currently implemented for
the G200/G400. Support will be forthcoming for DirectX fairly soon.
From the WhatsNew file:
The supported YUV formats are: YV12, IYUV, YUY2, UYVY, and YVYU. This function creates an overlay surface: SDL_CreateYUVOverlay() You must lock and unlock the overlay to get access to the data: SDL_LockYUVOverlay() SDL_UnlockYUVOverlay() You can then display the overlay: SDL_DisplayYUVOverlay() You must free the overlay when you are done using it: SDL_FreeYUVOverlay() See SDL_video.h for the full function prototypes.
-Sam Lantinga, Lead Programmer, Loki Entertainment Software