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
f3b0fc6a
Commit
f3b0fc6a
authored
Nov 13, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Add IMFQualityAdvise stub.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71e13d44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
0 deletions
+81
-0
evr.c
dlls/mf/evr.c
+80
-0
mf.c
dlls/mf/tests/mf.c
+1
-0
No files found.
dlls/mf/evr.c
View file @
f3b0fc6a
...
...
@@ -76,6 +76,7 @@ struct video_renderer
IMFTopologyServiceLookup
IMFTopologyServiceLookup_iface
;
IMediaEventSink
IMediaEventSink_iface
;
IMFAttributes
IMFAttributes_iface
;
IMFQualityAdvise
IMFQualityAdvise_iface
;
LONG
refcount
;
IMFMediaEventQueue
*
event_queue
;
...
...
@@ -141,6 +142,11 @@ static struct video_renderer *impl_from_IMFAttributes(IMFAttributes *iface)
return
CONTAINING_RECORD
(
iface
,
struct
video_renderer
,
IMFAttributes_iface
);
}
static
struct
video_renderer
*
impl_from_IMFQualityAdvise
(
IMFQualityAdvise
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
video_renderer
,
IMFQualityAdvise_iface
);
}
static
struct
video_stream
*
impl_from_IMFStreamSink
(
IMFStreamSink
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
video_stream
,
IMFStreamSink_iface
);
...
...
@@ -657,6 +663,10 @@ static HRESULT WINAPI video_renderer_sink_QueryInterface(IMFMediaSink *iface, RE
{
*
obj
=
&
renderer
->
IMFAttributes_iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IMFQualityAdvise
))
{
*
obj
=
&
renderer
->
IMFQualityAdvise_iface
;
}
else
{
WARN
(
"Unsupported interface %s.
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -2120,6 +2130,75 @@ static const IMFAttributesVtbl video_renderer_attributes_vtbl =
video_renderer_attributes_CopyAllItems
,
};
static
HRESULT
WINAPI
video_renderer_quality_advise_QueryInterface
(
IMFQualityAdvise
*
iface
,
REFIID
riid
,
void
**
out
)
{
struct
video_renderer
*
renderer
=
impl_from_IMFQualityAdvise
(
iface
);
return
IMFMediaSink_QueryInterface
(
&
renderer
->
IMFMediaSink_iface
,
riid
,
out
);
}
static
ULONG
WINAPI
video_renderer_quality_advise_AddRef
(
IMFQualityAdvise
*
iface
)
{
struct
video_renderer
*
renderer
=
impl_from_IMFQualityAdvise
(
iface
);
return
IMFMediaSink_AddRef
(
&
renderer
->
IMFMediaSink_iface
);
}
static
ULONG
WINAPI
video_renderer_quality_Release
(
IMFQualityAdvise
*
iface
)
{
struct
video_renderer
*
renderer
=
impl_from_IMFQualityAdvise
(
iface
);
return
IMFMediaSink_Release
(
&
renderer
->
IMFMediaSink_iface
);
}
static
HRESULT
WINAPI
video_renderer_quality_advise_SetDropMode
(
IMFQualityAdvise
*
iface
,
MF_QUALITY_DROP_MODE
mode
)
{
FIXME
(
"%p, %u.
\n
"
,
iface
,
mode
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
video_renderer_quality_advise_SetQualityLevel
(
IMFQualityAdvise
*
iface
,
MF_QUALITY_LEVEL
level
)
{
FIXME
(
"%p, %u.
\n
"
,
iface
,
level
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
video_renderer_quality_advise_GetDropMode
(
IMFQualityAdvise
*
iface
,
MF_QUALITY_DROP_MODE
*
mode
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
mode
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
video_renderer_quality_advise_GetQualityLevel
(
IMFQualityAdvise
*
iface
,
MF_QUALITY_LEVEL
*
level
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
level
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
video_renderer_quality_advise_DropTime
(
IMFQualityAdvise
*
iface
,
LONGLONG
interval
)
{
FIXME
(
"%p, %s.
\n
"
,
iface
,
wine_dbgstr_longlong
(
interval
));
return
E_NOTIMPL
;
}
static
const
IMFQualityAdviseVtbl
video_renderer_quality_advise_vtbl
=
{
video_renderer_quality_advise_QueryInterface
,
video_renderer_quality_advise_AddRef
,
video_renderer_quality_Release
,
video_renderer_quality_advise_SetDropMode
,
video_renderer_quality_advise_SetQualityLevel
,
video_renderer_quality_advise_GetDropMode
,
video_renderer_quality_advise_GetQualityLevel
,
video_renderer_quality_advise_DropTime
,
};
static
HRESULT
evr_create_object
(
IMFAttributes
*
attributes
,
void
*
user_context
,
IUnknown
**
obj
)
{
struct
video_renderer
*
object
;
...
...
@@ -2141,6 +2220,7 @@ static HRESULT evr_create_object(IMFAttributes *attributes, void *user_context,
object
->
IMFTopologyServiceLookup_iface
.
lpVtbl
=
&
video_renderer_service_lookup_vtbl
;
object
->
IMediaEventSink_iface
.
lpVtbl
=
&
media_event_sink_vtbl
;
object
->
IMFAttributes_iface
.
lpVtbl
=
&
video_renderer_attributes_vtbl
;
object
->
IMFQualityAdvise_iface
.
lpVtbl
=
&
video_renderer_quality_advise_vtbl
;
object
->
refcount
=
1
;
InitializeCriticalSection
(
&
object
->
cs
);
...
...
dlls/mf/tests/mf.c
View file @
f3b0fc6a
...
...
@@ -3284,6 +3284,7 @@ static void test_evr(void)
check_interface
(
sink
,
&
IID_IMFMediaEventGenerator
,
TRUE
);
check_interface
(
sink
,
&
IID_IMFClockStateSink
,
TRUE
);
check_interface
(
sink
,
&
IID_IMFGetService
,
TRUE
);
check_interface
(
sink
,
&
IID_IMFQualityAdvise
,
TRUE
);
hr
=
MFGetService
((
IUnknown
*
)
sink
,
&
MR_VIDEO_RENDER_SERVICE
,
&
IID_IMFVideoDisplayControl
,
(
void
**
)
&
display_control
);
...
...
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