[3/5] windowscodecs: Implement PixelFormatInfo_GetChannelCount.
Vincent Povirk
madewokherd at gmail.com
Wed Jun 20 08:02:05 CDT 2012
-------------- next part --------------
From 7588ba1c5dae3da372c5b7e12f66d7a0baee0d67 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Mon, 16 Apr 2012 16:03:57 -0500
Subject: [PATCH 03/17] windowscodecs: Implement
PixelFormatInfo_GetChannelCount.
---
dlls/windowscodecs/info.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c
index 230037b..61c9ba1 100644
--- a/dlls/windowscodecs/info.c
+++ b/dlls/windowscodecs/info.c
@@ -44,6 +44,7 @@ static const WCHAR containerformat_valuename[] = {'C','o','n','t','a','i','n','e
static const WCHAR vendor_valuename[] = {'V','e','n','d','o','r',0};
static const WCHAR version_valuename[] = {'V','e','r','s','i','o','n',0};
static const WCHAR bitsperpixel_valuename[] = {'B','i','t','L','e','n','g','t','h',0};
+static const WCHAR channelcount_valuename[] = {'C','h','a','n','n','e','l','C','o','u','n','t',0};
static HRESULT ComponentInfo_GetStringValue(HKEY classkey, LPCWSTR value,
UINT buffer_size, WCHAR *buffer, UINT *actual_size)
@@ -1260,8 +1261,11 @@ static HRESULT WINAPI PixelFormatInfo_GetBitsPerPixel(IWICPixelFormatInfo2 *ifac
static HRESULT WINAPI PixelFormatInfo_GetChannelCount(IWICPixelFormatInfo2 *iface,
UINT *puiChannelCount)
{
- FIXME("(%p,%p): stub\n", iface, puiChannelCount);
- return E_NOTIMPL;
+ PixelFormatInfo *This = impl_from_IWICPixelFormatInfo2(iface);
+
+ TRACE("(%p,%p)\n", iface, puiChannelCount);
+
+ return ComponentInfo_GetDWORDValue(This->classkey, channelcount_valuename, puiChannelCount);
}
static HRESULT WINAPI PixelFormatInfo_GetChannelMask(IWICPixelFormatInfo2 *iface,
--
1.7.9.5
More information about the wine-patches
mailing list