Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Adam Strzelecki to SDL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Nov 27, 2009
1 parent 4369a54 commit 5f07b25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/win32/SDL_d3drender.c
Expand Up @@ -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:
Expand Down

0 comments on commit 5f07b25

Please sign in to comment.