[vlc-devel] [PATCH 1/2] contrib:d3d11: VideoProcessor support needs D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT
Steve Lhomme
robux4 at videolabs.io
Thu Mar 3 09:11:35 CET 2016
---
contrib/src/d3d11/processor_format.patch | 15 +++++++++++++++
contrib/src/d3d11/rules.mak | 1 +
2 files changed, 16 insertions(+)
create mode 100644 contrib/src/d3d11/processor_format.patch
diff --git a/contrib/src/d3d11/processor_format.patch b/contrib/src/d3d11/processor_format.patch
new file mode 100644
index 0000000..04f98b2
--- /dev/null
+++ b/contrib/src/d3d11/processor_format.patch
@@ -0,0 +1,15 @@
+--- a/d3d11.idl 2016-02-26 09:21:48.019575300 +0100
++++ b/d3d11.idl 2016-02-26 10:41:58.461027900 +0100
+@@ -3199,6 +3199,12 @@ typedef enum D3D11_CREATE_DEVICE_FLAG {
+ D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
+ } D3D11_CREATE_DEVICE_FLAG;
+
++typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT
++{
++ D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x00000001,
++ D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x00000002,
++} D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
++
+ const UINT D3D11_SDK_VERSION = 7;
+
+ cpp_quote("#include <d3d10_1.h>")
diff --git a/contrib/src/d3d11/rules.mak b/contrib/src/d3d11/rules.mak
index 5627013..1cc1a46 100644
--- a/contrib/src/d3d11/rules.mak
+++ b/contrib/src/d3d11/rules.mak
@@ -26,6 +26,7 @@ $(TARBALLS)/dxgidebug.idl:
.sum-d3d11: $(TARBALLS)/d3d11.idl $(TARBALLS)/dxgidebug.idl
$(DST_D3D11_H): $(TARBALLS)/d3d11.idl .sum-d3d11
+ (cd $(TARBALLS) && patch -fp1) < $(SRC)/d3d11/processor_format.patch
mkdir -p -- "$(PREFIX)/include/"
$(WIDL) -DBOOL=WINBOOL -I$(IDL_INC_PATH) -h -o $@ $<
--
2.7.2.windows.1
More information about the vlc-devel
mailing list