[v3 2/3] dxva2api.idl: Add interface IDirectXVideoMemoryConfiguration

Fabian Maurer dark.shadow4 at web.de
Sun Sep 10 17:40:11 CDT 2017


Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
 include/dxva2api.idl | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/include/dxva2api.idl b/include/dxva2api.idl
index 7a29157036..35cbf828bb 100644
--- a/include/dxva2api.idl
+++ b/include/dxva2api.idl
@@ -292,6 +292,13 @@ typedef struct _DXVA2_VideoSample
     DWORD SampleData;
 } DXVA2_VideoSample;
 
+typedef enum _DXVA2_SurfaceType
+{
+    DXVA2_SurfaceType_DecoderRenderTarget    = 0,
+    DXVA2_SurfaceType_ProcessorRenderTarget  = 1,
+    DXVA2_SurfaceType_D3DRenderTargetTexture = 2,
+} DXVA2_SurfaceType;
+
 interface IDirectXVideoDecoder;
 interface IDirectXVideoProcessor;
 
@@ -525,3 +532,21 @@ interface IDirectXVideoProcessor : IUnknown
         [in] UINT NumSamples,
         [out] HANDLE* pHandleCompleteIDirect3DDeviceManager9);
 };
+
+/*****************************************************************************
+ * IDirectXVideoMemoryConfiguration interface
+ */
+[
+    object,
+    uuid(b7f916dd-db3b-49c1-84d7-e45ef99ec726),
+    local
+]
+interface IDirectXVideoMemoryConfiguration : IUnknown
+{
+    HRESULT GetAvailableSurfaceTypeByIndex(
+        [in] DWORD wTypeIndex,
+        [out] DXVA2_SurfaceType *pdwType);
+
+    HRESULT SetSurfaceType(
+        [in] DXVA2_SurfaceType dwType);
+}
-- 
2.14.1




More information about the wine-patches mailing list