Mercurial > sdl-ios-xcode
changeset 3495:1b22878e04d0
Adam Strzelecki to SDL
D3D renderer shall try mapping YV12 and I420 (IYUV) to D3D texture formats via FOURCC. This will enable HW acceleration for those formats when driver is capable (most of them are). Note that SDL's IYUV maps I420 FOURCC on Woe.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 27 Nov 2009 03:11:26 +0000 |
parents | 61d95a87c327 |
children | 78fc8ea578b2 |
files | src/video/win32/SDL_d3drender.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/win32/SDL_d3drender.c Thu Nov 26 05:55:57 2009 +0000 +++ b/src/video/win32/SDL_d3drender.c Fri Nov 27 03:11:26 2009 +0000 @@ -228,6 +228,10 @@ return D3DFMT_A8R8G8B8; case SDL_PIXELFORMAT_ARGB2101010: return D3DFMT_A2R10G10B10; + case SDL_PIXELFORMAT_YV12: + return MAKEFOURCC('Y','V','1','2'); + case SDL_PIXELFORMAT_IYUV: + return MAKEFOURCC('I','4','2','0'); case SDL_PIXELFORMAT_UYVY: return D3DFMT_UYVY; case SDL_PIXELFORMAT_YUY2: