• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2011 Joakim Sindholt <opensource@zhasha.com>
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #include "device9video.h"
7 
8 #define DBG_CHANNEL DBG_DEVICEVIDEO
9 
10 HRESULT NINE_WINAPI
NineDevice9Video_GetContentProtectionCaps(struct NineDevice9Video * This,const GUID * pCryptoType,const GUID * pDecodeProfile,D3DCONTENTPROTECTIONCAPS * pCaps)11 NineDevice9Video_GetContentProtectionCaps( struct NineDevice9Video *This,
12                                            const GUID *pCryptoType,
13                                            const GUID *pDecodeProfile,
14                                            D3DCONTENTPROTECTIONCAPS *pCaps )
15 {
16     STUB(D3DERR_INVALIDCALL);
17 }
18 
19 HRESULT NINE_WINAPI
NineDevice9Video_CreateAuthenticatedChannel(struct NineDevice9Video * This,D3DAUTHENTICATEDCHANNELTYPE ChannelType,IDirect3DAuthenticatedChannel9 ** ppAuthenticatedChannel,HANDLE * pChannelHandle)20 NineDevice9Video_CreateAuthenticatedChannel( struct NineDevice9Video *This,
21                                              D3DAUTHENTICATEDCHANNELTYPE ChannelType,
22                                              IDirect3DAuthenticatedChannel9 **ppAuthenticatedChannel,
23                                              HANDLE *pChannelHandle )
24 {
25     STUB(D3DERR_INVALIDCALL);
26 }
27 
28 HRESULT NINE_WINAPI
NineDevice9Video_CreateCryptoSession(struct NineDevice9Video * This,const GUID * pCryptoType,const GUID * pDecodeProfile,IDirect3DCryptoSession9 ** ppCryptoSession,HANDLE * pCryptoHandle)29 NineDevice9Video_CreateCryptoSession( struct NineDevice9Video *This,
30                                       const GUID *pCryptoType,
31                                       const GUID *pDecodeProfile,
32                                       IDirect3DCryptoSession9 **ppCryptoSession,
33                                       HANDLE *pCryptoHandle )
34 {
35     STUB(D3DERR_INVALIDCALL);
36 }
37 
38 IDirect3DDevice9VideoVtbl NineDevice9Video_vtable = {
39     (void *)NineUnknown_QueryInterface,
40     (void *)NineUnknown_AddRef,
41     (void *)NineUnknown_Release,
42     (void *)NineDevice9Video_GetContentProtectionCaps,
43     (void *)NineDevice9Video_CreateAuthenticatedChannel,
44     (void *)NineDevice9Video_CreateCryptoSession
45 };
46