Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e2d70fff
Commit
e2d70fff
authored
Feb 21, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Feb 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Add yv12 detection support.
parent
f8b94d3f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
utils.c
dlls/ddraw/utils.c
+5
-0
utils.c
dlls/wined3d/utils.c
+1
-0
wined3d_types.h
include/wine/wined3d_types.h
+1
-0
No files found.
dlls/ddraw/utils.c
View file @
e2d70fff
...
...
@@ -250,6 +250,7 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
case
WINED3DFMT_UYVY
:
case
WINED3DFMT_YUY2
:
case
WINED3DFMT_YV12
:
case
WINED3DFMT_DXT1
:
case
WINED3DFMT_DXT2
:
case
WINED3DFMT_DXT3
:
...
...
@@ -553,6 +554,10 @@ PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat)
{
return
WINED3DFMT_YUY2
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
))
{
return
WINED3DFMT_YV12
;
}
if
(
DDPixelFormat
->
dwFourCC
==
MAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'1'
))
{
return
WINED3DFMT_DXT1
;
...
...
dlls/wined3d/utils.c
View file @
e2d70fff
...
...
@@ -43,6 +43,7 @@ static const StaticPixelFormatDesc formats[] = {
/* FourCC formats, kept here to have WINED3DFMT_R8G8B8(=20) at position 20 */
{
WINED3DFMT_UYVY
,
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_DXT2
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
0
,
0
,
TRUE
},
{
WINED3DFMT_DXT3
,
0x0
,
0x0
,
0x0
,
0x0
,
1
,
0
,
0
,
TRUE
},
...
...
include/wine/wined3d_types.h
View file @
e2d70fff
...
...
@@ -266,6 +266,7 @@ typedef enum _WINED3DFORMAT {
WINED3DFMT_UYVY
=
WINEMAKEFOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
),
WINED3DFMT_YUY2
=
WINEMAKEFOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
),
WINED3DFMT_YV12
=
WINEMAKEFOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
),
WINED3DFMT_DXT1
=
WINEMAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'1'
),
WINED3DFMT_DXT2
=
WINEMAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'2'
),
WINED3DFMT_DXT3
=
WINEMAKEFOURCC
(
'D'
,
'X'
,
'T'
,
'3'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment