Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5d836622
Commit
5d836622
authored
May 31, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/mixer: Set aperture attributes for output type candidates.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e91b05bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
mixer.c
dlls/evr/mixer.c
+21
-17
No files found.
dlls/evr/mixer.c
View file @
5d836622
...
...
@@ -664,6 +664,7 @@ static HRESULT video_mixer_collect_output_types(struct video_mixer *mixer, const
unsigned
int
i
,
j
,
format_count
,
count
;
struct
rt_format
*
rt_formats
=
NULL
,
*
ptr
;
HRESULT
hr
=
MF_E_INVALIDMEDIATYPE
;
MFVideoArea
aperture
;
D3DFORMAT
*
formats
;
GUID
subtype
;
...
...
@@ -691,29 +692,32 @@ static HRESULT video_mixer_collect_output_types(struct video_mixer *mixer, const
if
(
count
&&
!
(
flags
&
MFT_SET_TYPE_TEST_ONLY
))
{
if
(
!
(
mixer
->
output
.
rt_formats
=
calloc
(
count
,
sizeof
(
*
mixer
->
output
.
rt_formats
))))
{
free
(
rt_formats
);
return
E_OUTOFMEMORY
;
}
memcpy
(
&
subtype
,
&
MFVideoFormat_Base
,
sizeof
(
subtype
));
if
((
mixer
->
output
.
rt_formats
=
calloc
(
count
,
sizeof
(
*
mixer
->
output
.
rt_formats
))))
memset
(
&
aperture
,
0
,
sizeof
(
aperture
));
aperture
.
Area
.
cx
=
video_desc
->
SampleWidth
;
aperture
.
Area
.
cy
=
video_desc
->
SampleHeight
;
for
(
i
=
0
;
i
<
count
;
++
i
)
{
for
(
i
=
0
;
i
<
count
;
++
i
)
{
IMFMediaType
*
rt_media_type
;
IMFMediaType
*
rt_media_type
;
subtype
.
Data1
=
rt_formats
[
i
].
format
;
mixer
->
output
.
rt_formats
[
i
]
=
rt_formats
[
i
];
subtype
.
Data1
=
rt_formats
[
i
].
format
;
mixer
->
output
.
rt_formats
[
i
]
=
rt_formats
[
i
];
MFCreateMediaType
(
&
rt_media_type
);
IMFMediaType_CopyAllItems
(
media_type
,
(
IMFAttributes
*
)
rt_media_type
);
IMFMediaType_SetGUID
(
rt_media_type
,
&
MF_MT_SUBTYPE
,
&
subtype
);
MFCreateMediaType
(
&
rt_media_type
);
IMFMediaType_CopyAllItems
(
media_type
,
(
IMFAttributes
*
)
rt_media_type
);
IMFMediaType_SetGUID
(
rt_media_type
,
&
MF_MT_SUBTYPE
,
&
subtype
);
IMFMediaType_SetBlob
(
rt_media_type
,
&
MF_MT_GEOMETRIC_APERTURE
,
(
const
UINT8
*
)
&
aperture
,
sizeof
(
aperture
));
IMFMediaType_SetBlob
(
rt_media_type
,
&
MF_MT_MINIMUM_DISPLAY_APERTURE
,
(
const
UINT8
*
)
&
aperture
,
sizeof
(
aperture
));
mixer
->
output
.
rt_formats
[
i
].
media_type
=
rt_media_type
;
}
mixer
->
output
.
rt_formats_count
=
count
;
}
else
{
hr
=
E_OUTOFMEMORY
;
count
=
0
;
mixer
->
output
.
rt_formats
[
i
].
media_type
=
rt_media_type
;
}
mixer
->
output
.
rt_formats_count
=
count
;
}
free
(
rt_formats
);
...
...
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