ddraw: Add yv12 detection support.
This commit is contained in:
parent
f8b94d3f5d
commit
e2d70fff6b
|
@ -250,6 +250,7 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
|
||||||
|
|
||||||
case WINED3DFMT_UYVY:
|
case WINED3DFMT_UYVY:
|
||||||
case WINED3DFMT_YUY2:
|
case WINED3DFMT_YUY2:
|
||||||
|
case WINED3DFMT_YV12:
|
||||||
case WINED3DFMT_DXT1:
|
case WINED3DFMT_DXT1:
|
||||||
case WINED3DFMT_DXT2:
|
case WINED3DFMT_DXT2:
|
||||||
case WINED3DFMT_DXT3:
|
case WINED3DFMT_DXT3:
|
||||||
|
@ -553,6 +554,10 @@ PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat)
|
||||||
{
|
{
|
||||||
return WINED3DFMT_YUY2;
|
return WINED3DFMT_YUY2;
|
||||||
}
|
}
|
||||||
|
if(DDPixelFormat->dwFourCC == MAKEFOURCC('Y', 'V', '1', '2'))
|
||||||
|
{
|
||||||
|
return WINED3DFMT_YV12;
|
||||||
|
}
|
||||||
if(DDPixelFormat->dwFourCC == MAKEFOURCC('D', 'X', 'T', '1'))
|
if(DDPixelFormat->dwFourCC == MAKEFOURCC('D', 'X', 'T', '1'))
|
||||||
{
|
{
|
||||||
return WINED3DFMT_DXT1;
|
return WINED3DFMT_DXT1;
|
||||||
|
|
|
@ -43,6 +43,7 @@ static const StaticPixelFormatDesc formats[] = {
|
||||||
/* FourCC formats, kept here to have WINED3DFMT_R8G8B8(=20) at position 20 */
|
/* FourCC formats, kept here to have WINED3DFMT_R8G8B8(=20) at position 20 */
|
||||||
{WINED3DFMT_UYVY ,0x0 ,0x0 ,0x0 ,0x0 ,1/*?*/ ,0 ,0 ,TRUE },
|
{WINED3DFMT_UYVY ,0x0 ,0x0 ,0x0 ,0x0 ,1/*?*/ ,0 ,0 ,TRUE },
|
||||||
{WINED3DFMT_YUY2 ,0x0 ,0x0 ,0x0 ,0x0 ,1/*?*/ ,0 ,0 ,TRUE },
|
{WINED3DFMT_YUY2 ,0x0 ,0x0 ,0x0 ,0x0 ,1/*?*/ ,0 ,0 ,TRUE },
|
||||||
|
{WINED3DFMT_YV12 ,0x0 ,0x0 ,0x0 ,0x0 ,1/*?*/ ,0 ,0 ,TRUE },
|
||||||
{WINED3DFMT_DXT1 ,0x0 ,0x0 ,0x0 ,0x0 ,1 ,0 ,0 ,TRUE },
|
{WINED3DFMT_DXT1 ,0x0 ,0x0 ,0x0 ,0x0 ,1 ,0 ,0 ,TRUE },
|
||||||
{WINED3DFMT_DXT2 ,0x0 ,0x0 ,0x0 ,0x0 ,1 ,0 ,0 ,TRUE },
|
{WINED3DFMT_DXT2 ,0x0 ,0x0 ,0x0 ,0x0 ,1 ,0 ,0 ,TRUE },
|
||||||
{WINED3DFMT_DXT3 ,0x0 ,0x0 ,0x0 ,0x0 ,1 ,0 ,0 ,TRUE },
|
{WINED3DFMT_DXT3 ,0x0 ,0x0 ,0x0 ,0x0 ,1 ,0 ,0 ,TRUE },
|
||||||
|
|
|
@ -266,6 +266,7 @@ typedef enum _WINED3DFORMAT {
|
||||||
|
|
||||||
WINED3DFMT_UYVY = WINEMAKEFOURCC('U', 'Y', 'V', 'Y'),
|
WINED3DFMT_UYVY = WINEMAKEFOURCC('U', 'Y', 'V', 'Y'),
|
||||||
WINED3DFMT_YUY2 = WINEMAKEFOURCC('Y', 'U', 'Y', '2'),
|
WINED3DFMT_YUY2 = WINEMAKEFOURCC('Y', 'U', 'Y', '2'),
|
||||||
|
WINED3DFMT_YV12 = WINEMAKEFOURCC('Y', 'V', '1', '2'),
|
||||||
WINED3DFMT_DXT1 = WINEMAKEFOURCC('D', 'X', 'T', '1'),
|
WINED3DFMT_DXT1 = WINEMAKEFOURCC('D', 'X', 'T', '1'),
|
||||||
WINED3DFMT_DXT2 = WINEMAKEFOURCC('D', 'X', 'T', '2'),
|
WINED3DFMT_DXT2 = WINEMAKEFOURCC('D', 'X', 'T', '2'),
|
||||||
WINED3DFMT_DXT3 = WINEMAKEFOURCC('D', 'X', 'T', '3'),
|
WINED3DFMT_DXT3 = WINEMAKEFOURCC('D', 'X', 'T', '3'),
|
||||||
|
|
Loading…
Reference in New Issue