Alistair Leslie-Hughes : mfplat: Add MFCopyImage stub.

Alexandre Julliard julliard at winehq.org
Mon Sep 17 15:02:26 CDT 2018


Module: wine
Branch: master
Commit: 78dcaa603d3e391f0998c64d11fd9fa285d41f7e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=78dcaa603d3e391f0998c64d11fd9fa285d41f7e

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Sep 17 00:50:05 2018 +0000

mfplat: Add MFCopyImage stub.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplat/main.c      | 5 +++++
 dlls/mfplat/mfplat.spec | 2 +-
 include/mfapi.h         | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index de3926f..bd6b99f 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -442,6 +442,11 @@ HRESULT WINAPI MFShutdown(void)
     return S_OK;
 }
 
+HRESULT WINAPI MFCopyImage(BYTE *dest, LONG deststride, const BYTE *src, LONG srcstride, DWORD width, DWORD lines)
+{
+    FIXME("(%p, %d, %p, %d, %d, %d) stub\n", dest, deststride, src, srcstride, width, lines);
+    return E_NOTIMPL;
+}
 
 typedef struct _mfbytestream
 {
diff --git a/dlls/mfplat/mfplat.spec b/dlls/mfplat/mfplat.spec
index 1ab2826..3e42d2f 100644
--- a/dlls/mfplat/mfplat.spec
+++ b/dlls/mfplat/mfplat.spec
@@ -35,7 +35,7 @@
 @ stub MFConvertColorInfoToDXVA
 @ stub MFConvertFromFP16Array
 @ stub MFConvertToFP16Array
-@ stub MFCopyImage
+@ stdcall MFCopyImage(ptr long ptr long long long)
 @ stub MFCreateAMMediaTypeFromMFMediaType
 @ stub MFCreateAlignedMemoryBuffer
 @ stub MFCreateAsyncResult
diff --git a/include/mfapi.h b/include/mfapi.h
index 45449b1..bc832bf 100644
--- a/include/mfapi.h
+++ b/include/mfapi.h
@@ -64,6 +64,7 @@ DEFINE_GUID(MFMediaType_Video,         0x73646976, 0x0000, 0x0010, 0x80, 0x00, 0
 typedef unsigned __int64 MFWORKITEM_KEY;
 
 HRESULT WINAPI MFCancelWorkItem(MFWORKITEM_KEY key);
+HRESULT WINAPI MFCopyImage(BYTE *dest, LONG deststride, const BYTE *src, LONG srcstride, DWORD width, DWORD lines);
 HRESULT WINAPI MFCreateAttributes(IMFAttributes **attributes, UINT32 size);
 HRESULT WINAPI MFCreateEventQueue(IMFMediaEventQueue **queue);
 HRESULT WINAPI MFCreateMediaType(IMFMediaType **type);




More information about the wine-cvs mailing list