[PATCH v2 3/7] evr: Add interface definitions for EVR filter

Fabian Maurer dark.shadow4 at web.de
Sun Sep 10 10:16:05 CDT 2017


Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
 dlls/strmiids/strmiids.c |  4 +++
 include/Makefile.in      |  1 +
 include/evr.idl          | 94 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 99 insertions(+)
 create mode 100644 include/evr.idl

diff --git a/dlls/strmiids/strmiids.c b/dlls/strmiids/strmiids.c
index a257a23e9a..7659f52e74 100644
--- a/dlls/strmiids/strmiids.c
+++ b/dlls/strmiids/strmiids.c
@@ -31,6 +31,9 @@
 #include "olectl.h"
 #include "d3d9.h"
 
+/* Don't define those GUIDs here */
+#include "propsys.h"
+
 #include "initguid.h"
 
 #include "uuids.h"
@@ -39,3 +42,4 @@
 #include "amstream.h"
 #include "qedit.h"
 #include "vmr9.h"
+#include "evr.h"
diff --git a/include/Makefile.in b/include/Makefile.in
index 8a774e9b0e..2bd41e976c 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -70,6 +70,7 @@ IDL_SRCS = \
 	dyngraph.idl \
 	endpointvolume.idl \
 	errrec.idl \
+	evr.idl \
 	exdisp.idl \
 	fusion.idl \
 	gameux.idl \
diff --git a/include/evr.idl b/include/evr.idl
new file mode 100644
index 0000000000..e4e036af1a
--- /dev/null
+++ b/include/evr.idl
@@ -0,0 +1,94 @@
+/*
+ * COM Classes for evr
+ *
+ * Copyright 2017 Fabian Maurer
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+import "strmif.idl";
+import "mfidl.idl";
+
+typedef enum _MFVP_MESSAGE_TYPE {
+    MFVP_MESSAGE_FLUSH               = 0x00000000,
+    MFVP_MESSAGE_INVALIDATEMEDIATYPE = 0x00000001,
+    MFVP_MESSAGE_PROCESSINPUTNOTIFY  = 0x00000002,
+    MFVP_MESSAGE_BEGINSTREAMING      = 0x00000003,
+    MFVP_MESSAGE_ENDSTREAMING        = 0x00000004,
+    MFVP_MESSAGE_ENDOFSTREAM         = 0x00000005,
+    MFVP_MESSAGE_STEP                = 0x00000006,
+    MFVP_MESSAGE_CANCELSTEP          = 0x00000007,
+} MFVP_MESSAGE_TYPE;
+
+[
+    object,
+    uuid(29aff080-182a-4a5d-af3b-448f3a6346cb),
+    local
+]
+interface IMFVideoPresenter : IMFClockStateSink
+{
+    HRESULT ProcessMessage(
+        [in] MFVP_MESSAGE_TYPE eMessage,
+        [in] ULONG_PTR ulParam
+    );
+    HRESULT GetCurrentMediaType(
+        [out] IMFVideoMediaType **ppMediaType
+    );
+}
+
+[
+    object,
+    uuid(83e91e85-82c1-4ea7-801d-85dc50b75086),
+    local
+]
+interface IEVRFilterConfig : IUnknown
+{
+    HRESULT SetNumberOfStreams(
+        [in] DWORD dwMaxStreams
+    );
+    HRESULT GetNumberOfStreams(
+        [out] DWORD *pdwMaxStreams
+    );
+}
+
+[
+    object,
+    uuid(1f6a9f17-e70b-4e24-8ae4-0b2c3ba7a4ae),
+    local
+]
+interface IMFVideoPositionMapper : IUnknown
+{
+    HRESULT MapOutputCoordinateToInputStream(
+        [in] float xOut,
+        [in] float yOut,
+        [in] DWORD dwOutputStreamIndex,
+        [in] DWORD dwInputStreamIndex,
+        [out] float *pxIn,
+        [out] float *pyIn
+    );
+}
+
+[
+    object,
+    uuid(dfdfd197-a9ca-43d8-b341-6af3503792cd),
+    local
+]
+interface IMFVideoRenderer : IUnknown
+{
+    HRESULT InitializeRenderer(
+        [in] IMFTransform *pVideoMixer,
+        [in] IMFVideoPresenter *pVideoPresenter
+    );
+}
-- 
2.14.1




More information about the wine-patches mailing list