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
8fcdca9d
Commit
8fcdca9d
authored
Jun 24, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Support YUV formats in the VMR7.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7595461f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
9 deletions
+27
-9
vmr9.c
dlls/quartz/vmr9.c
+27
-9
No files found.
dlls/quartz/vmr9.c
View file @
8fcdca9d
...
...
@@ -417,17 +417,35 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
if
(
!
is_vmr9
(
filter
))
{
switch
(
filter
->
bmiheader
.
bi
BitCount
)
switch
(
filter
->
bmiheader
.
bi
Compression
)
{
case
24
:
info
.
Format
=
D3DFMT_R8G8B8
;
break
;
case
32
:
info
.
Format
=
D3DFMT_X8R8G8B8
;
break
;
default:
FIXME
(
"Unhandled bit depth %u.
\n
"
,
filter
->
bmiheader
.
biBitCount
);
free
(
filter
->
surfaces
);
return
VFW_E_TYPE_NOT_ACCEPTED
;
}
case
BI_RGB
:
switch
(
filter
->
bmiheader
.
biBitCount
)
{
case
24
:
info
.
Format
=
D3DFMT_R8G8B8
;
break
;
case
32
:
info
.
Format
=
D3DFMT_X8R8G8B8
;
break
;
default:
FIXME
(
"Unhandled bit depth %u.
\n
"
,
filter
->
bmiheader
.
biBitCount
);
free
(
filter
->
surfaces
);
return
VFW_E_TYPE_NOT_ACCEPTED
;
}
info
.
dwFlags
=
VMR9AllocFlag_TextureSurface
;
break
;
info
.
dwFlags
=
VMR9AllocFlag_TextureSurface
;
case
mmioFOURCC
(
'N'
,
'V'
,
'1'
,
'2'
):
case
mmioFOURCC
(
'U'
,
'Y'
,
'V'
,
'Y'
):
case
mmioFOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
):
case
mmioFOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
):
info
.
Format
=
filter
->
bmiheader
.
biCompression
;
info
.
dwFlags
=
VMR9AllocFlag_OffscreenSurface
;
break
;
default:
WARN
(
"Unhandled video compression %#x.
\n
"
,
filter
->
bmiheader
.
biCompression
);
free
(
filter
->
surfaces
);
return
VFW_E_TYPE_NOT_ACCEPTED
;
}
if
(
FAILED
(
hr
=
initialize_device
(
filter
,
&
info
,
count
)))
free
(
filter
->
surfaces
);
return
hr
;
...
...
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