Module: wine Branch: master Commit: 80f6890616a833ab81453fd79f4a5837b2888123 URL: http://source.winehq.org/git/wine.git/?a=commit;h=80f6890616a833ab81453fd79f...
Author: Vincent Povirk vincent@codeweavers.com Date: Mon Apr 16 16:03:57 2012 -0500
windowscodecs: Implement PixelFormatInfo_GetChannelCount.
---
dlls/windowscodecs/info.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c index 815c775..b520f82 100644 --- a/dlls/windowscodecs/info.c +++ b/dlls/windowscodecs/info.c @@ -47,6 +47,7 @@ static const WCHAR metadataformat_valuename[] = {'M','e','t','a','d','a','t','a' 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) @@ -1263,8 +1264,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,