[4/5] windowscodecs: Add wrapper functions for IWICPalette methods.

Vincent Povirk madewokherd at gmail.com
Thu May 10 09:45:47 CDT 2012


-------------- next part --------------
From 7124591d7516a95ff8b2b0750667bbf16b7b7922 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 May 2012 10:49:22 -0500
Subject: [PATCH 04/18] windowscodecs: Add wrapper functions for IWICPalette
 methods.

---
 dlls/windowscodecs/proxy.c            |   48 +++++++++++++++++++++++++++++++++
 dlls/windowscodecs/windowscodecs.spec |   16 +++++------
 2 files changed, 56 insertions(+), 8 deletions(-)

diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c
index 011c074..ec3ed9b 100644
--- a/dlls/windowscodecs/proxy.c
+++ b/dlls/windowscodecs/proxy.c
@@ -247,6 +247,54 @@ HRESULT WINAPI IWICImagingFactory_CreateStream_Proxy_W(IWICImagingFactory *pFact
     return IWICImagingFactory_CreateStream(pFactory, ppIWICStream);
 }
 
+HRESULT WINAPI IWICPalette_InitializePredefined_Proxy_W(IWICPalette *iface,
+    WICBitmapPaletteType ePaletteType, BOOL fAddTransparentColor)
+{
+    return IWICPalette_InitializePredefined(iface, ePaletteType, fAddTransparentColor);
+}
+
+HRESULT WINAPI IWICPalette_InitializeCustom_Proxy_W(IWICPalette *iface,
+    WICColor *pColors, UINT colorCount)
+{
+    return IWICPalette_InitializeCustom(iface, pColors, colorCount);
+}
+
+HRESULT WINAPI IWICPalette_InitializeFromBitmap_Proxy_W(IWICPalette *iface,
+    IWICBitmapSource *pISurface, UINT colorCount, BOOL fAddTransparentColor)
+{
+    return IWICPalette_InitializeFromBitmap(iface, pISurface, colorCount, fAddTransparentColor);
+}
+
+HRESULT WINAPI IWICPalette_InitializeFromPalette_Proxy_W(IWICPalette *iface,
+    IWICPalette *pIPalette)
+{
+    return IWICPalette_InitializeFromPalette(iface, pIPalette);
+}
+
+HRESULT WINAPI IWICPalette_GetType_Proxy_W(IWICPalette *iface,
+    WICBitmapPaletteType *pePaletteType)
+{
+    return IWICPalette_GetType(iface, pePaletteType);
+}
+
+HRESULT WINAPI IWICPalette_GetColorCount_Proxy_W(IWICPalette *iface,
+    UINT *pcCount)
+{
+    return IWICPalette_GetColorCount(iface, pcCount);
+}
+
+HRESULT WINAPI IWICPalette_GetColors_Proxy_W(IWICPalette *iface,
+    UINT colorCount, WICColor *pColors, UINT *pcActualColors)
+{
+    return IWICPalette_GetColors(iface, colorCount, pColors, pcActualColors);
+}
+
+HRESULT WINAPI IWICPalette_HasAlpha_Proxy_W(IWICPalette *iface,
+    BOOL *pfHasAlpha)
+{
+    return IWICPalette_HasAlpha(iface, pfHasAlpha);
+}
+
 HRESULT WINAPI WICCreateImagingFactory_Proxy(UINT SDKVersion, IWICImagingFactory **ppIImagingFactory)
 {
     TRACE("%x, %p\n", SDKVersion, ppIImagingFactory);
diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec
index 813b7d9..8636343 100644
--- a/dlls/windowscodecs/windowscodecs.spec
+++ b/dlls/windowscodecs/windowscodecs.spec
@@ -91,14 +91,14 @@
 @ stub IWICMetadataQueryReader_GetMetadataByName_Proxy
 @ stub IWICMetadataQueryWriter_RemoveMetadataByName_Proxy
 @ stub IWICMetadataQueryWriter_SetMetadataByName_Proxy
-@ stub IWICPalette_GetColorCount_Proxy
-@ stub IWICPalette_GetColors_Proxy
-@ stub IWICPalette_GetType_Proxy
-@ stub IWICPalette_HasAlpha_Proxy
-@ stub IWICPalette_InitializeCustom_Proxy
-@ stub IWICPalette_InitializeFromBitmap_Proxy
-@ stub IWICPalette_InitializeFromPalette_Proxy
-@ stub IWICPalette_InitializePredefined_Proxy
+@ stdcall IWICPalette_GetColorCount_Proxy(ptr ptr) IWICPalette_GetColorCount_Proxy_W
+@ stdcall IWICPalette_GetColors_Proxy(ptr long ptr ptr) IWICPalette_GetColors_Proxy_W
+@ stdcall IWICPalette_GetType_Proxy(ptr ptr) IWICPalette_GetType_Proxy_W
+@ stdcall IWICPalette_HasAlpha_Proxy(ptr ptr) IWICPalette_HasAlpha_Proxy_W
+@ stdcall IWICPalette_InitializeCustom_Proxy(ptr ptr long) IWICPalette_InitializeCustom_Proxy_W
+@ stdcall IWICPalette_InitializeFromBitmap_Proxy(ptr ptr long long) IWICPalette_InitializeFromBitmap_Proxy_W
+@ stdcall IWICPalette_InitializeFromPalette_Proxy(ptr ptr) IWICPalette_InitializeFromPalette_Proxy_W
+@ stdcall IWICPalette_InitializePredefined_Proxy(ptr long long) IWICPalette_InitializePredefined_Proxy_W
 @ stub IWICPixelFormatInfo_GetBitsPerPixel_Proxy
 @ stub IWICPixelFormatInfo_GetChannelCount_Proxy
 @ stub IWICPixelFormatInfo_GetChannelMask_Proxy
-- 
1.7.9.5


More information about the wine-patches mailing list