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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
vmr9.c
dlls/quartz/vmr9.c
+18
-0
No files found.
dlls/quartz/vmr9.c
View file @
8fcdca9d
...
@@ -417,6 +417,9 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
...
@@ -417,6 +417,9 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
if
(
!
is_vmr9
(
filter
))
if
(
!
is_vmr9
(
filter
))
{
{
switch
(
filter
->
bmiheader
.
biCompression
)
{
case
BI_RGB
:
switch
(
filter
->
bmiheader
.
biBitCount
)
switch
(
filter
->
bmiheader
.
biBitCount
)
{
{
case
24
:
info
.
Format
=
D3DFMT_R8G8B8
;
break
;
case
24
:
info
.
Format
=
D3DFMT_R8G8B8
;
break
;
...
@@ -428,6 +431,21 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
...
@@ -428,6 +431,21 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
}
}
info
.
dwFlags
=
VMR9AllocFlag_TextureSurface
;
info
.
dwFlags
=
VMR9AllocFlag_TextureSurface
;
break
;
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
)))
if
(
FAILED
(
hr
=
initialize_device
(
filter
,
&
info
,
count
)))
free
(
filter
->
surfaces
);
free
(
filter
->
surfaces
);
return
hr
;
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