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
217faec5
Commit
217faec5
authored
Nov 06, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Nov 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add stubbed IAMCertifiedOutputProtection interface.
parent
ab925b39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
0 deletions
+77
-0
vmr9.c
dlls/quartz/vmr9.c
+77
-0
No files found.
dlls/quartz/vmr9.c
View file @
217faec5
...
...
@@ -52,6 +52,7 @@ struct quartz_vmr
BaseControlVideo
baseControlVideo
;
IUnknown
IUnknown_inner
;
IAMCertifiedOutputProtection
IAMCertifiedOutputProtection_iface
;
IAMFilterMiscFlags
IAMFilterMiscFlags_iface
;
IVMRFilterConfig
IVMRFilterConfig_iface
;
IVMRFilterConfig9
IVMRFilterConfig9_iface
;
...
...
@@ -120,6 +121,11 @@ static inline struct quartz_vmr *impl_from_IBasicVideo(IBasicVideo *iface)
return
CONTAINING_RECORD
(
iface
,
struct
quartz_vmr
,
baseControlVideo
.
IBasicVideo_iface
);
}
static
inline
struct
quartz_vmr
*
impl_from_IAMCertifiedOutputProtection
(
IAMCertifiedOutputProtection
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
quartz_vmr
,
IAMCertifiedOutputProtection_iface
);
}
static
inline
struct
quartz_vmr
*
impl_from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
quartz_vmr
,
IAMFilterMiscFlags_iface
);
...
...
@@ -753,6 +759,8 @@ static HRESULT WINAPI VMR9Inner_QueryInterface(IUnknown * iface, REFIID riid, LP
*
ppv
=
&
This
->
baseControlWindow
.
IVideoWindow_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IBasicVideo
))
*
ppv
=
&
This
->
baseControlVideo
.
IBasicVideo_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMCertifiedOutputProtection
))
*
ppv
=
&
This
->
IAMCertifiedOutputProtection_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMFilterMiscFlags
))
*
ppv
=
&
This
->
IAMFilterMiscFlags_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IVMRFilterConfig
))
...
...
@@ -1086,6 +1094,74 @@ static const IBasicVideoVtbl IBasicVideo_VTable =
BaseControlVideoImpl_IsUsingDefaultDestination
};
static
HRESULT
WINAPI
AMCertifiedOutputProtection_QueryInterface
(
IAMCertifiedOutputProtection
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMCertifiedOutputProtection
(
iface
);
return
VMR9_QueryInterface
(
&
This
->
renderer
.
filter
.
IBaseFilter_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AMCertifiedOutputProtection_AddRef
(
IAMCertifiedOutputProtection
*
iface
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMCertifiedOutputProtection
(
iface
);
return
VMR9_AddRef
(
&
This
->
renderer
.
filter
.
IBaseFilter_iface
);
}
static
ULONG
WINAPI
AMCertifiedOutputProtection_Release
(
IAMCertifiedOutputProtection
*
iface
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMCertifiedOutputProtection
(
iface
);
return
VMR9_Release
(
&
This
->
renderer
.
filter
.
IBaseFilter_iface
);
}
static
HRESULT
WINAPI
AMCertifiedOutputProtection_KeyExchange
(
IAMCertifiedOutputProtection
*
iface
,
GUID
*
pRandom
,
BYTE
**
VarLenCertGH
,
DWORD
*
pdwLengthCertGH
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMCertifiedOutputProtection
(
iface
);
FIXME
(
"(%p/%p)->(%p, %p, %p) stub
\n
"
,
iface
,
This
,
pRandom
,
VarLenCertGH
,
pdwLengthCertGH
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AMCertifiedOutputProtection_SessionSequenceStart
(
IAMCertifiedOutputProtection
*
iface
,
AMCOPPSignature
*
pSig
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMCertifiedOutputProtection
(
iface
);
FIXME
(
"(%p/%p)->(%p) stub
\n
"
,
iface
,
This
,
pSig
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AMCertifiedOutputProtection_ProtectionCommand
(
IAMCertifiedOutputProtection
*
iface
,
const
AMCOPPCommand
*
cmd
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMCertifiedOutputProtection
(
iface
);
FIXME
(
"(%p/%p)->(%p) stub
\n
"
,
iface
,
This
,
cmd
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AMCertifiedOutputProtection_ProtectionStatus
(
IAMCertifiedOutputProtection
*
iface
,
const
AMCOPPStatusInput
*
pStatusInput
,
AMCOPPStatusOutput
*
pStatusOutput
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMCertifiedOutputProtection
(
iface
);
FIXME
(
"(%p/%p)->(%p, %p) stub
\n
"
,
iface
,
This
,
pStatusInput
,
pStatusOutput
);
return
E_NOTIMPL
;
}
static
const
IAMCertifiedOutputProtectionVtbl
IAMCertifiedOutputProtection_Vtbl
=
{
AMCertifiedOutputProtection_QueryInterface
,
AMCertifiedOutputProtection_AddRef
,
AMCertifiedOutputProtection_Release
,
AMCertifiedOutputProtection_KeyExchange
,
AMCertifiedOutputProtection_SessionSequenceStart
,
AMCertifiedOutputProtection_ProtectionCommand
,
AMCertifiedOutputProtection_ProtectionStatus
};
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
struct
quartz_vmr
*
This
=
impl_from_IAMFilterMiscFlags
(
iface
);
return
VMR9_QueryInterface
(
&
This
->
renderer
.
filter
.
IBaseFilter_iface
,
riid
,
ppv
);
...
...
@@ -2183,6 +2259,7 @@ static HRESULT vmr_create(IUnknown *outer_unk, LPVOID *ppv, const CLSID *clsid)
pVMR
->
bUnkOuterValid
=
FALSE
;
pVMR
->
bAggregatable
=
FALSE
;
pVMR
->
IUnknown_inner
.
lpVtbl
=
&
IInner_VTable
;
pVMR
->
IAMCertifiedOutputProtection_iface
.
lpVtbl
=
&
IAMCertifiedOutputProtection_Vtbl
;
pVMR
->
IAMFilterMiscFlags_iface
.
lpVtbl
=
&
IAMFilterMiscFlags_Vtbl
;
pVMR
->
mode
=
0
;
...
...
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