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
bf8c08d9
Commit
bf8c08d9
authored
Aug 19, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr: Add IMFVideoRenderer stub to the filter.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
7f71eda4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
evr.c
dlls/evr/evr.c
+43
-0
evr.c
dlls/evr/tests/evr.c
+1
-0
No files found.
dlls/evr/evr.c
View file @
bf8c08d9
...
...
@@ -36,6 +36,7 @@ struct evr
IEVRFilterConfig
IEVRFilterConfig_iface
;
IAMFilterMiscFlags
IAMFilterMiscFlags_iface
;
IMFGetService
IMFGetService_iface
;
IMFVideoRenderer
IMFVideoRenderer_iface
;
};
static
struct
evr
*
impl_from_strmbase_renderer
(
struct
strmbase_renderer
*
iface
)
...
...
@@ -53,6 +54,8 @@ static HRESULT evr_query_interface(struct strmbase_renderer *iface, REFIID iid,
*
out
=
&
filter
->
IAMFilterMiscFlags_iface
;
else
if
(
IsEqualGUID
(
iid
,
&
IID_IMFGetService
))
*
out
=
&
filter
->
IMFGetService_iface
;
else
if
(
IsEqualGUID
(
iid
,
&
IID_IMFVideoRenderer
))
*
out
=
&
filter
->
IMFVideoRenderer_iface
;
else
return
E_NOINTERFACE
;
...
...
@@ -214,6 +217,45 @@ static const IMFGetServiceVtbl filter_get_service_vtbl =
filter_get_service_GetService
,
};
static
struct
evr
*
impl_from_IMFVideoRenderer
(
IMFVideoRenderer
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
evr
,
IMFVideoRenderer_iface
);
}
static
HRESULT
WINAPI
filter_video_renderer_QueryInterface
(
IMFVideoRenderer
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
evr
*
filter
=
impl_from_IMFVideoRenderer
(
iface
);
return
IUnknown_QueryInterface
(
filter
->
renderer
.
filter
.
outer_unk
,
riid
,
obj
);
}
static
ULONG
WINAPI
filter_video_renderer_AddRef
(
IMFVideoRenderer
*
iface
)
{
struct
evr
*
filter
=
impl_from_IMFVideoRenderer
(
iface
);
return
IUnknown_AddRef
(
filter
->
renderer
.
filter
.
outer_unk
);
}
static
ULONG
WINAPI
filter_video_renderer_Release
(
IMFVideoRenderer
*
iface
)
{
struct
evr
*
filter
=
impl_from_IMFVideoRenderer
(
iface
);
return
IUnknown_Release
(
filter
->
renderer
.
filter
.
outer_unk
);
}
static
HRESULT
WINAPI
filter_video_renderer_InitializeRenderer
(
IMFVideoRenderer
*
iface
,
IMFTransform
*
mixer
,
IMFVideoPresenter
*
presenter
)
{
FIXME
(
"iface %p, mixer %p, presenter %p.
\n
"
,
iface
,
mixer
,
presenter
);
return
E_NOTIMPL
;
}
static
const
IMFVideoRendererVtbl
filter_video_renderer_vtbl
=
{
filter_video_renderer_QueryInterface
,
filter_video_renderer_AddRef
,
filter_video_renderer_Release
,
filter_video_renderer_InitializeRenderer
,
};
HRESULT
evr_filter_create
(
IUnknown
*
outer
,
void
**
out
)
{
struct
evr
*
object
;
...
...
@@ -226,6 +268,7 @@ HRESULT evr_filter_create(IUnknown *outer, void **out)
object
->
IEVRFilterConfig_iface
.
lpVtbl
=
&
filter_config_vtbl
;
object
->
IAMFilterMiscFlags_iface
.
lpVtbl
=
&
filter_misc_flags_vtbl
;
object
->
IMFGetService_iface
.
lpVtbl
=
&
filter_get_service_vtbl
;
object
->
IMFVideoRenderer_iface
.
lpVtbl
=
&
filter_video_renderer_vtbl
;
TRACE
(
"Created EVR %p.
\n
"
,
object
);
*
out
=
&
object
->
renderer
.
filter
.
IUnknown_inner
;
...
...
dlls/evr/tests/evr.c
View file @
bf8c08d9
...
...
@@ -280,6 +280,7 @@ static void test_interfaces(void)
check_interface
(
filter
,
&
IID_IBaseFilter
,
TRUE
);
check_interface
(
filter
,
&
IID_IEVRFilterConfig
,
TRUE
);
check_interface
(
filter
,
&
IID_IMFGetService
,
TRUE
);
check_interface
(
filter
,
&
IID_IMFVideoRenderer
,
TRUE
);
check_interface
(
filter
,
&
IID_IMediaFilter
,
TRUE
);
check_interface
(
filter
,
&
IID_IMediaPosition
,
TRUE
);
check_interface
(
filter
,
&
IID_IMediaSeeking
,
TRUE
);
...
...
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