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
b6fd7bc1
Commit
b6fd7bc1
authored
Nov 05, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add IQualityControl to video renderer.
parent
3329873b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
videorenderer.c
dlls/quartz/tests/videorenderer.c
+2
-2
videorenderer.c
dlls/quartz/videorenderer.c
+13
-0
No files found.
dlls/quartz/tests/videorenderer.c
View file @
b6fd7bc1
...
...
@@ -70,6 +70,8 @@ static void test_query_interface(void)
RELEASE_EXPECT
(
pBasicVideo
,
1
);
QI_SUCCEED
(
pVideoRenderer
,
IID_IMediaSeeking
,
pMediaSeeking
);
RELEASE_EXPECT
(
pMediaSeeking
,
1
);
QI_SUCCEED
(
pVideoRenderer
,
IID_IQualityControl
,
pQualityControl
);
RELEASE_EXPECT
(
pQualityControl
,
1
);
todo_wine
{
QI_SUCCEED
(
pVideoRenderer
,
IID_IDirectDrawVideo
,
pDirectDrawVideo
);
RELEASE_EXPECT
(
pDirectDrawVideo
,
1
);
...
...
@@ -77,8 +79,6 @@ static void test_query_interface(void)
RELEASE_EXPECT
(
pKsPropertySet
,
1
);
QI_SUCCEED
(
pVideoRenderer
,
IID_IMediaPosition
,
pMediaPosition
);
RELEASE_EXPECT
(
pMediaPosition
,
1
);
QI_SUCCEED
(
pVideoRenderer
,
IID_IQualityControl
,
pQualityControl
);
RELEASE_EXPECT
(
pQualityControl
,
1
);
QI_SUCCEED
(
pVideoRenderer
,
IID_IQualProp
,
pQualProp
);
RELEASE_EXPECT
(
pQualProp
,
1
);
}
...
...
dlls/quartz/videorenderer.c
View file @
b6fd7bc1
...
...
@@ -53,6 +53,13 @@ static const IBasicVideoVtbl IBasicVideo_VTable;
static
const
IVideoWindowVtbl
IVideoWindow_VTable
;
static
const
IPinVtbl
VideoRenderer_InputPin_Vtbl
;
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
;
static
const
IQualityControlVtbl
VideoRenderer_QualityControl_Vtbl
=
{
QualityControlImpl_QueryInterface
,
QualityControlImpl_AddRef
,
QualityControlImpl_Release
,
QualityControlImpl_Notify
,
QualityControlImpl_SetSink
};
typedef
struct
VideoRendererImpl
{
...
...
@@ -62,6 +69,7 @@ typedef struct VideoRendererImpl
const
IUnknownVtbl
*
IInner_vtbl
;
const
IAMFilterMiscFlagsVtbl
*
IAMFilterMiscFlags_vtbl
;
IUnknown
*
seekthru_unk
;
QualityControlImpl
qcimpl
;
BaseInputPin
*
pInputPin
;
...
...
@@ -622,6 +630,9 @@ HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
if
(
FAILED
(
hr
))
goto
fail
;
QualityControlImpl_init
(
&
pVideoRenderer
->
qcimpl
,
(
IPin
*
)
pVideoRenderer
->
pInputPin
,
(
IBaseFilter
*
)
pVideoRenderer
);
pVideoRenderer
->
qcimpl
.
lpVtbl
=
&
VideoRenderer_QualityControl_Vtbl
;
if
(
!
CreateRenderingSubsystem
(
pVideoRenderer
))
return
E_FAIL
;
...
...
@@ -671,6 +682,8 @@ static HRESULT WINAPI VideoRendererInner_QueryInterface(IUnknown * iface, REFIID
return
IUnknown_QueryInterface
(
This
->
seekthru_unk
,
riid
,
ppv
);
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMFilterMiscFlags
))
*
ppv
=
&
This
->
IAMFilterMiscFlags_vtbl
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IQualityControl
))
*
ppv
=
&
This
->
qcimpl
;
if
(
*
ppv
)
{
...
...
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