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
8827eb6a
Commit
8827eb6a
authored
Sep 08, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/mixer: Return initial mixing preferences.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3d8d05db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
5 deletions
+44
-5
mixer.c
dlls/evr/mixer.c
+20
-4
evr.c
dlls/evr/tests/evr.c
+14
-1
evr.idl
include/evr.idl
+10
-0
No files found.
dlls/evr/mixer.c
View file @
8827eb6a
...
...
@@ -73,6 +73,7 @@ struct video_mixer
IDirect3DDeviceManager9
*
device_manager
;
IMediaEventSink
*
event_sink
;
IMFAttributes
*
attributes
;
unsigned
int
mixing_flags
;
CRITICAL_SECTION
cs
;
};
...
...
@@ -1008,16 +1009,31 @@ static HRESULT WINAPI video_mixer_control_GetStreamOutputRect(IMFVideoMixerContr
static
HRESULT
WINAPI
video_mixer_control_SetMixingPrefs
(
IMFVideoMixerControl2
*
iface
,
DWORD
flags
)
{
FIXME
(
"%p, %#x.
\n
"
,
iface
,
flags
);
struct
video_mixer
*
mixer
=
impl_from_IMFVideoMixerControl2
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %#x.
\n
"
,
iface
,
flags
);
EnterCriticalSection
(
&
mixer
->
cs
);
mixer
->
mixing_flags
=
flags
;
LeaveCriticalSection
(
&
mixer
->
cs
);
return
S_OK
;
}
static
HRESULT
WINAPI
video_mixer_control_GetMixingPrefs
(
IMFVideoMixerControl2
*
iface
,
DWORD
*
flags
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
flags
);
struct
video_mixer
*
mixer
=
impl_from_IMFVideoMixerControl2
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
flags
);
if
(
!
flags
)
return
E_POINTER
;
EnterCriticalSection
(
&
mixer
->
cs
);
*
flags
=
mixer
->
mixing_flags
;
LeaveCriticalSection
(
&
mixer
->
cs
);
return
S_OK
;
}
static
const
IMFVideoMixerControl2Vtbl
video_mixer_control_vtbl
=
...
...
dlls/evr/tests/evr.c
View file @
8827eb6a
...
...
@@ -414,6 +414,7 @@ static void test_default_mixer(void)
{
DWORD
input_min
,
input_max
,
output_min
,
output_max
;
IMFAttributes
*
attributes
,
*
attributes2
;
IMFVideoMixerControl2
*
mixer_control2
;
MFT_OUTPUT_STREAM_INFO
output_info
;
MFT_INPUT_STREAM_INFO
input_info
;
DWORD
input_count
,
output_count
;
...
...
@@ -424,12 +425,12 @@ static void test_default_mixer(void)
IMFTransform
*
transform
;
DXVA2_ValueRange
range
;
DXVA2_Fixed32
value
;
DWORD
flags
,
count
;
IMFGetService
*
gs
;
COLORREF
color
;
unsigned
int
i
;
DWORD
ids
[
16
];
IUnknown
*
unk
;
DWORD
count
;
GUID
*
guids
;
HRESULT
hr
;
IID
iid
;
...
...
@@ -455,6 +456,18 @@ static void test_default_mixer(void)
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk
);
if
(
SUCCEEDED
(
IMFGetService_GetService
(
gs
,
&
MR_VIDEO_MIXER_SERVICE
,
&
IID_IMFVideoMixerControl2
,
(
void
**
)
&
mixer_control2
)))
{
hr
=
IMFVideoMixerControl2_GetMixingPrefs
(
mixer_control2
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFVideoMixerControl2_GetMixingPrefs
(
mixer_control2
,
&
flags
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
flags
,
"Unexpected flags %#x.
\n
"
,
flags
);
IMFVideoMixerControl2_Release
(
mixer_control2
);
}
hr
=
IMFVideoProcessor_GetBackgroundColor
(
processor
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
...
...
include/evr.idl
View file @
8827eb6a
...
...
@@ -184,6 +184,16 @@ interface IMFVideoMixerControl : IUnknown
)
;
}
typedef
enum
_MFVideoMixPrefs
{
MFVideoMixPrefs_ForceHalfInterlace
=
0
x00000001
,
MFVideoMixPrefs_AllowDropToHalfInterlace
=
0
x00000002
,
MFVideoMixPrefs_AllowDropToBob
=
0
x00000004
,
MFVideoMixPrefs_ForceBob
=
0
x00000008
,
MFVideoMixPrefs_EnableRotation
=
0
x00000010
,
MFVideoMixPrefs_Mask
=
0
x0000001f
,
}
MFVideoMixPrefs
;
[
object
,
uuid
(
8459616d-966
e
-
4930
-
b658
-
54
fa7e5a16d3
)
...
...
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