comparison src/video/win32/SDL_d3drender.c @ 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 cd763d104465
children 1374f9275de9
comparison
equal deleted inserted replaced
3494:61d95a87c327 3495:1b22878e04d0
226 return D3DFMT_X8R8G8B8; 226 return D3DFMT_X8R8G8B8;
227 case SDL_PIXELFORMAT_ARGB8888: 227 case SDL_PIXELFORMAT_ARGB8888:
228 return D3DFMT_A8R8G8B8; 228 return D3DFMT_A8R8G8B8;
229 case SDL_PIXELFORMAT_ARGB2101010: 229 case SDL_PIXELFORMAT_ARGB2101010:
230 return D3DFMT_A2R10G10B10; 230 return D3DFMT_A2R10G10B10;
231 case SDL_PIXELFORMAT_YV12:
232 return MAKEFOURCC('Y','V','1','2');
233 case SDL_PIXELFORMAT_IYUV:
234 return MAKEFOURCC('I','4','2','0');
231 case SDL_PIXELFORMAT_UYVY: 235 case SDL_PIXELFORMAT_UYVY:
232 return D3DFMT_UYVY; 236 return D3DFMT_UYVY;
233 case SDL_PIXELFORMAT_YUY2: 237 case SDL_PIXELFORMAT_YUY2:
234 return D3DFMT_YUY2; 238 return D3DFMT_YUY2;
235 default: 239 default: