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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404236
This commit is contained in:
parent
8a9c9fccbb
commit
015d99c5d9
1 changed files with 4 additions and 0 deletions
|
@ -228,6 +228,10 @@ PixelFormatToD3DFMT(Uint32 format)
|
|||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue