X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=dispatch%2Fdxvaint.h;h=8a5ecfdcf5c4a3821d2dfc0dc5efbe4fc2742555;hb=c8695f74ce1ee6a93dee4b3f7da5a70a64706c82;hp=f275d55951a12b77160d4fdb0a88149d6f7c2e98;hpb=4647f208f5a2b87391281e0f1202f66c23943bd9;p=apitrace diff --git a/dispatch/dxvaint.h b/dispatch/dxvaint.h index f275d55..8a5ecfd 100644 --- a/dispatch/dxvaint.h +++ b/dispatch/dxvaint.h @@ -27,7 +27,22 @@ #include -typedef struct _DXVA2_PVP_SETKEY DXVA2_PVP_SETKEY; /* XXX */ +#ifndef DXVA2_E_NOT_INITIALIZED +#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000L) +#endif + +#ifndef DXVA2_E_NEW_VIDEO_DEVICE +#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001L) +#endif + +#ifndef DXVA2_E_VIDEO_DEVICE_LOCKED +#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002L) +#endif + +#ifndef DXVA2_E_NOT_AVAILABLE +#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003L) +#endif + typedef struct _DXVA2_DECODEBUFFERDESC { IDirect3DSurface9 *pRenderTarget; @@ -95,6 +110,16 @@ static const GUID IID_IDirect3DDXVAExtensionDevice9 = {0x00000000,0x0000,0x0000, static const GUID IID_IDirect3DDxva2Container9 = {0x126D0349,0x4787,0x4AA6,{0x8E,0x1B,0x40,0xC1,0x77,0xC6,0x0A,0x01}}; +typedef struct DECLSPEC_ALIGN(16) _DXVA2_PVP_KEY128 +{ + BYTE Data[16]; +} DXVA2_PVP_KEY128; + +typedef struct _DXVA2_PVP_SETKEY +{ + DXVA2_PVP_KEY128 ContentKey; +} DXVA2_PVP_SETKEY; + class IDirect3DDecodeDevice9 : public IUnknown { public: