From 3db3346875a5f73f520f59c929bf5b0493e31e91 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[email protected]>
Date: Sun, 13 Feb 2022 01:51:42 +0530
Subject: [PATCH 3/3] headers: Add mfmediacapture.idl

Signed-off-by: Biswapriyo Nath <[email protected]>
---
 mingw-w64-crt/libsrc/mfuuid.c                |  1 +
 mingw-w64-headers/Makefile.am                |  1 +
 mingw-w64-headers/include/mfmediacapture.idl | 35 ++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 mingw-w64-headers/include/mfmediacapture.idl

diff --git a/mingw-w64-crt/libsrc/mfuuid.c b/mingw-w64-crt/libsrc/mfuuid.c
index 62a9fea..1daef2b 100644
--- a/mingw-w64-crt/libsrc/mfuuid.c
+++ b/mingw-w64-crt/libsrc/mfuuid.c
@@ -8,4 +8,5 @@
 #include <mfcaptureengine.h>
 #include <mfd3d12.h>
 #include <mfidl.h>
+#include <mfmediacapture.h>
 #include <mfreadwrite.h>
diff --git a/mingw-w64-headers/Makefile.am b/mingw-w64-headers/Makefile.am
index 30174f3..4eadb25 100644
--- a/mingw-w64-headers/Makefile.am
+++ b/mingw-w64-headers/Makefile.am
@@ -164,6 +164,7 @@ IDL_SRCS = \
   include/mfcaptureengine.idl \
   include/mfd3d12.idl \
   include/mfidl.idl \
+  include/mfmediacapture.idl \
   include/mfobjects.idl \
   include/mfplay.idl \
   include/mfreadwrite.idl \
diff --git a/mingw-w64-headers/include/mfmediacapture.idl 
b/mingw-w64-headers/include/mfmediacapture.idl
new file mode 100644
index 0000000..c84f2cf
--- /dev/null
+++ b/mingw-w64-headers/include/mfmediacapture.idl
@@ -0,0 +1,35 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+cpp_quote("#include <winapifamily.h>")
+
+cpp_quote("#if NTDDI_VERSION >= NTDDI_WIN8")
+
+cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)")
+
+import "mfobjects.idl";
+
+[object, uuid(3de21209-8ba6-4f2a-a577-2819b56ff14d), local]
+interface IAdvancedMediaCaptureInitializationSettings : IUnknown
+{
+  HRESULT SetDirectxDeviceManager([in] IMFDXGIDeviceManager *pManager);
+}
+
+[object, uuid(24e0485f-a33e-4aa1-b564-6019b1d14f65), local]
+interface IAdvancedMediaCaptureSettings : IUnknown
+{
+  HRESULT GetDirectxDeviceManager([out] IMFDXGIDeviceManager **ppManager);
+}
+
+[object, uuid(d0751585-d216-4344-b5bf-463b68f977bb), local]
+interface IAdvancedMediaCapture: IUnknown
+{
+  HRESULT GetAdvancedMediaCaptureSettings ([out] IAdvancedMediaCaptureSettings 
**ppSettings);
+}
+
+cpp_quote("#endif /* WINAPI_PARTITION_APP */")
+
+cpp_quote("#endif /* NTDDI >= NTDDI_WIN8 */")
-- 
2.35.1

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to