From 1d9106bafc66fc9c909365d0e42980f962853390 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 8 May 2012 11:16:12 -0500 Subject: [PATCH] windowscodecs: Add wrapper functions for IWICBitmapCodecInfo 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 68f0effee02..150983f9c41 100644 --- a/dlls/windowscodecs/proxy.c +++ b/dlls/windowscodecs/proxy.c @@ -36,6 +36,54 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs); +HRESULT WINAPI IWICBitmapCodecInfo_GetContainerFormat_Proxy_W(IWICBitmapCodecInfo *iface, + GUID *pguidContainerFormat) +{ + return IWICBitmapCodecInfo_GetContainerFormat(iface, pguidContainerFormat); +} + +HRESULT WINAPI IWICBitmapCodecInfo_GetDeviceManufacturer_Proxy_W(IWICBitmapCodecInfo *iface, + UINT cchDeviceManufacturer, WCHAR *wzDeviceManufacturer, UINT *pcchActual) +{ + return IWICBitmapCodecInfo_GetDeviceManufacturer(iface, cchDeviceManufacturer, wzDeviceManufacturer, pcchActual); +} + +HRESULT WINAPI IWICBitmapCodecInfo_GetDeviceModels_Proxy_W(IWICBitmapCodecInfo *iface, + UINT cchDeviceModels, WCHAR *wzDeviceModels, UINT *pcchActual) +{ + return IWICBitmapCodecInfo_GetDeviceModels(iface, cchDeviceModels, wzDeviceModels, pcchActual); +} + +HRESULT WINAPI IWICBitmapCodecInfo_GetMimeTypes_Proxy_W(IWICBitmapCodecInfo *iface, + UINT cchMimeTypes, WCHAR *wzMimeTypes, UINT *pcchActual) +{ + return IWICBitmapCodecInfo_GetMimeTypes(iface, cchMimeTypes, wzMimeTypes, pcchActual); +} + +HRESULT WINAPI IWICBitmapCodecInfo_GetFileExtensions_Proxy_W(IWICBitmapCodecInfo *iface, + UINT cchFileExtensions, WCHAR *wzFileExtensions, UINT *pcchActual) +{ + return IWICBitmapCodecInfo_GetFileExtensions(iface, cchFileExtensions, wzFileExtensions, pcchActual); +} + +HRESULT WINAPI IWICBitmapCodecInfo_DoesSupportAnimation_Proxy_W(IWICBitmapCodecInfo *iface, + BOOL *pfSupportAnimation) +{ + return IWICBitmapCodecInfo_DoesSupportAnimation(iface, pfSupportAnimation); +} + +HRESULT WINAPI IWICBitmapCodecInfo_DoesSupportLossless_Proxy_W(IWICBitmapCodecInfo *iface, + BOOL *pfSupportLossless) +{ + return IWICBitmapCodecInfo_DoesSupportLossless(iface, pfSupportLossless); +} + +HRESULT WINAPI IWICBitmapCodecInfo_DoesSupportMultiframe_Proxy_W(IWICBitmapCodecInfo *iface, + BOOL *pfSupportMultiframe) +{ + return IWICBitmapCodecInfo_DoesSupportMultiframe(iface, pfSupportMultiframe); +} + HRESULT WINAPI IWICBitmapFlipRotator_Initialize_Proxy_W(IWICBitmapFlipRotator *iface, IWICBitmapSource *pISource, WICBitmapTransformOptions options) { diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec index 37c365c2a53..aecd87f528f 100644 --- a/dlls/windowscodecs/windowscodecs.spec +++ b/dlls/windowscodecs/windowscodecs.spec @@ -6,14 +6,14 @@ @ stub IEnumString_Reset_WIC_Proxy @ stub IPropertyBag2_Write_Proxy @ stub IWICBitmapClipper_Initialize_Proxy -@ stub IWICBitmapCodecInfo_DoesSupportAnimation_Proxy -@ stub IWICBitmapCodecInfo_DoesSupportLossless_Proxy -@ stub IWICBitmapCodecInfo_DoesSupportMultiframe_Proxy -@ stub IWICBitmapCodecInfo_GetContainerFormat_Proxy -@ stub IWICBitmapCodecInfo_GetDeviceManufacturer_Proxy -@ stub IWICBitmapCodecInfo_GetDeviceModels_Proxy -@ stub IWICBitmapCodecInfo_GetFileExtensions_Proxy -@ stub IWICBitmapCodecInfo_GetMimeTypes_Proxy +@ stdcall IWICBitmapCodecInfo_DoesSupportAnimation_Proxy(ptr ptr) IWICBitmapCodecInfo_DoesSupportAnimation_Proxy_W +@ stdcall IWICBitmapCodecInfo_DoesSupportLossless_Proxy(ptr ptr) IWICBitmapCodecInfo_DoesSupportLossless_Proxy_W +@ stdcall IWICBitmapCodecInfo_DoesSupportMultiframe_Proxy(ptr ptr) IWICBitmapCodecInfo_DoesSupportMultiframe_Proxy_W +@ stdcall IWICBitmapCodecInfo_GetContainerFormat_Proxy(ptr ptr) IWICBitmapCodecInfo_GetContainerFormat_Proxy_W +@ stdcall IWICBitmapCodecInfo_GetDeviceManufacturer_Proxy(ptr long ptr ptr) IWICBitmapCodecInfo_GetDeviceManufacturer_Proxy_W +@ stdcall IWICBitmapCodecInfo_GetDeviceModels_Proxy(ptr long ptr ptr) IWICBitmapCodecInfo_GetDeviceModels_Proxy_W +@ stdcall IWICBitmapCodecInfo_GetFileExtensions_Proxy(ptr long ptr ptr) IWICBitmapCodecInfo_GetFileExtensions_Proxy_W +@ stdcall IWICBitmapCodecInfo_GetMimeTypes_Proxy(ptr long ptr ptr) IWICBitmapCodecInfo_GetMimeTypes_Proxy_W @ stub IWICBitmapDecoder_CopyPalette_Proxy @ stub IWICBitmapDecoder_GetColorContexts_Proxy @ stub IWICBitmapDecoder_GetDecoderInfo_Proxy