|
|
|
@@ -1,12 +1,12 @@
|
|
|
|
|
From fea79238dba89c6233b58cbb86b3702f91f5be24 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From fceaf9739a92377afc2834e0ce9d9a187f06a2e9 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
|
|
|
|
Date: Wed, 26 Mar 2014 21:09:24 +0100
|
|
|
|
|
Subject: include: Add dxva2api.idl
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
include/Makefile.in | 1 +
|
|
|
|
|
include/dxva2api.idl | 461 ++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
2 files changed, 462 insertions(+)
|
|
|
|
|
include/dxva2api.idl | 503 ++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
2 files changed, 504 insertions(+)
|
|
|
|
|
create mode 100644 include/dxva2api.idl
|
|
|
|
|
|
|
|
|
|
diff --git a/include/Makefile.in b/include/Makefile.in
|
|
|
|
@@ -23,10 +23,10 @@ index ebdc96b..d6997db 100644
|
|
|
|
|
fusion.idl \
|
|
|
|
|
diff --git a/include/dxva2api.idl b/include/dxva2api.idl
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000..274cccf
|
|
|
|
|
index 0000000..c11f90d
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/include/dxva2api.idl
|
|
|
|
|
@@ -0,0 +1,461 @@
|
|
|
|
|
@@ -0,0 +1,503 @@
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright Michael Müller for Pipelight
|
|
|
|
|
+ *
|
|
|
|
@@ -56,6 +56,47 @@ index 0000000..274cccf
|
|
|
|
|
+typedef DWORD D3DPOOL;
|
|
|
|
|
+cpp_quote("#endif")
|
|
|
|
|
+
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_MoComp, 0xe6a9f44b, 0x61b0,0x4563, 0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea,0x4690, 0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28,0x4e65, 0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
|
|
|
|
+
|
|
|
|
|
+/* alternate names */
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeMPEG2_MOCOMP DXVA2_ModeMPEG2_MoComp")
|
|
|
|
|
+
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeWMV8_MoComp DXVA2_ModeWMV8_B")
|
|
|
|
|
+
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeWMV9_PostProc DXVA2_ModeWMV9_A")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeWMV9_MoComp DXVA2_ModeWMV9_B")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeWMV9_IDCT DXVA2_ModeWMV9_C")
|
|
|
|
|
+
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeVC1_PostProc DXVA2_ModeVC1_A")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeVC1_MoComp DXVA2_ModeVC1_B")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D")
|
|
|
|
|
+
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeH264_MoComp_FGT DXVA2_ModeH264_B")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeH264_IDCT_NoFGT DXVA2_ModeH264_C")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeH264_IDCT_FGT DXVA2_ModeH264_D")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E")
|
|
|
|
|
+cpp_quote("#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F")
|
|
|
|
|
+
|
|
|
|
|
+typedef LONGLONG REFERENCE_TIME;
|
|
|
|
|
+
|
|
|
|
|
+enum
|
|
|
|
@@ -325,20 +366,6 @@ index 0000000..274cccf
|
|
|
|
|
+]
|
|
|
|
|
+interface IDirectXVideoDecoderService : IDirectXVideoAccelerationService
|
|
|
|
|
+{
|
|
|
|
|
+ HRESULT CreateVideoDecoder(
|
|
|
|
|
+ [in] REFGUID guid,
|
|
|
|
|
+ [in] const DXVA2_VideoDesc *pVideoDesc,
|
|
|
|
|
+ [in] DXVA2_ConfigPictureDecode *pConfig,
|
|
|
|
|
+ [in] IDirect3DSurface9 **ppDecoderRenderTargets,
|
|
|
|
|
+ [in] UINT NumSurfaces,
|
|
|
|
|
+ [out] IDirectXVideoDecoder **ppDecode);
|
|
|
|
|
+
|
|
|
|
|
+ HRESULT GetDecoderConfigurations(
|
|
|
|
|
+ [in] REFGUID guid,
|
|
|
|
|
+ [in] const DXVA2_VideoDesc *pVideoDesc,
|
|
|
|
|
+ [in] IUnknown *pReserved,
|
|
|
|
|
+ [out] UINT *pCount,
|
|
|
|
|
+ [out] DXVA2_ConfigPictureDecode **ppConfigs);
|
|
|
|
|
+
|
|
|
|
|
+ HRESULT GetDecoderDeviceGuids(
|
|
|
|
|
+ [out] UINT *count,
|
|
|
|
@@ -348,6 +375,21 @@ index 0000000..274cccf
|
|
|
|
|
+ [in] REFGUID guid,
|
|
|
|
|
+ [out] UINT *pCount,
|
|
|
|
|
+ [out] D3DFORMAT **pFormats);
|
|
|
|
|
+
|
|
|
|
|
+ HRESULT GetDecoderConfigurations(
|
|
|
|
|
+ [in] REFGUID guid,
|
|
|
|
|
+ [in] const DXVA2_VideoDesc *pVideoDesc,
|
|
|
|
|
+ [in] IUnknown *pReserved,
|
|
|
|
|
+ [out] UINT *pCount,
|
|
|
|
|
+ [out] DXVA2_ConfigPictureDecode **ppConfigs);
|
|
|
|
|
+
|
|
|
|
|
+ HRESULT CreateVideoDecoder(
|
|
|
|
|
+ [in] REFGUID guid,
|
|
|
|
|
+ [in] const DXVA2_VideoDesc *pVideoDesc,
|
|
|
|
|
+ [in] DXVA2_ConfigPictureDecode *pConfig,
|
|
|
|
|
+ [in] IDirect3DSurface9 **ppDecoderRenderTargets,
|
|
|
|
|
+ [in] UINT NumSurfaces,
|
|
|
|
|
+ [out] IDirectXVideoDecoder **ppDecode);
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+/*****************************************************************************
|
|
|
|
|