From 3c353607b1c6d12f5a89929237948fb0494a65da Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 8 May 2012 10:29:27 -0500 Subject: [PATCH] windowscodecs: Add wrapper functions for IWICBitmapSource methods. --- dlls/windowscodecs/proxy.c | 30 +++++++++++++++++++++++++++ dlls/windowscodecs/windowscodecs.spec | 10 ++++----- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c index c3209cc54cf..f6d9649331f 100644 --- a/dlls/windowscodecs/proxy.c +++ b/dlls/windowscodecs/proxy.c @@ -36,6 +36,36 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs); +HRESULT WINAPI IWICBitmapSource_GetSize_Proxy_W(IWICBitmapSource *iface, + UINT *puiWidth, UINT *puiHeight) +{ + return IWICBitmapSource_GetSize(iface, puiWidth, puiHeight); +} + +HRESULT WINAPI IWICBitmapSource_GetPixelFormat_Proxy_W(IWICBitmapSource *iface, + WICPixelFormatGUID *pPixelFormat) +{ + return IWICBitmapSource_GetPixelFormat(iface, pPixelFormat); +} + +HRESULT WINAPI IWICBitmapSource_GetResolution_Proxy_W(IWICBitmapSource *iface, + double *pDpiX, double *pDpiY) +{ + return IWICBitmapSource_GetResolution(iface, pDpiX, pDpiY); +} + +HRESULT WINAPI IWICBitmapSource_CopyPalette_Proxy_W(IWICBitmapSource *iface, + IWICPalette *pIPalette) +{ + return IWICBitmapSource_CopyPalette(iface, pIPalette); +} + +HRESULT WINAPI IWICBitmapSource_CopyPixels_Proxy_W(IWICBitmapSource *iface, + const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer) +{ + return IWICBitmapSource_CopyPixels(iface, prc, cbStride, cbBufferSize, pbBuffer); +} + HRESULT WINAPI IWICColorContext_InitializeFromMemory_Proxy_W(IWICColorContext *iface, const BYTE *pbBuffer, UINT cbBufferSize) { diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec index 269fda579e3..c4b8873e1c2 100644 --- a/dlls/windowscodecs/windowscodecs.spec +++ b/dlls/windowscodecs/windowscodecs.spec @@ -44,11 +44,11 @@ @ stub IWICBitmapLock_GetDataPointer_STA_Proxy @ stub IWICBitmapLock_GetStride_Proxy @ stub IWICBitmapScaler_Initialize_Proxy -@ stub IWICBitmapSource_CopyPalette_Proxy -@ stub IWICBitmapSource_CopyPixels_Proxy -@ stub IWICBitmapSource_GetPixelFormat_Proxy -@ stub IWICBitmapSource_GetResolution_Proxy -@ stub IWICBitmapSource_GetSize_Proxy +@ stdcall IWICBitmapSource_CopyPalette_Proxy(ptr ptr) IWICBitmapSource_CopyPalette_Proxy_W +@ stdcall IWICBitmapSource_CopyPixels_Proxy(ptr ptr long long ptr) IWICBitmapSource_CopyPixels_Proxy_W +@ stdcall IWICBitmapSource_GetPixelFormat_Proxy(ptr ptr) IWICBitmapSource_GetPixelFormat_Proxy_W +@ stdcall IWICBitmapSource_GetResolution_Proxy(ptr ptr ptr) IWICBitmapSource_GetResolution_Proxy_W +@ stdcall IWICBitmapSource_GetSize_Proxy(ptr ptr ptr) IWICBitmapSource_GetSize_Proxy_W @ stub IWICBitmap_Lock_Proxy @ stub IWICBitmap_SetPalette_Proxy @ stub IWICBitmap_SetResolution_Proxy