Vincent Povirk : windowscodecs: Implement GetPixelFormat for default format converter.
Alexandre Julliard
julliard at winehq.org
Fri Aug 14 08:59:44 CDT 2009
Module: wine
Branch: master
Commit: fa54c2e1aa0e58a9ac7daf33562207f7d0f3c74b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa54c2e1aa0e58a9ac7daf33562207f7d0f3c74b
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Aug 13 12:43:05 2009 -0500
windowscodecs: Implement GetPixelFormat for default format converter.
---
dlls/windowscodecs/converter.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/converter.c b/dlls/windowscodecs/converter.c
index 300e37c..0f851bc 100644
--- a/dlls/windowscodecs/converter.c
+++ b/dlls/windowscodecs/converter.c
@@ -170,8 +170,16 @@ static HRESULT WINAPI FormatConverter_GetSize(IWICFormatConverter *iface,
static HRESULT WINAPI FormatConverter_GetPixelFormat(IWICFormatConverter *iface,
WICPixelFormatGUID *pPixelFormat)
{
- FIXME("(%p,%p): stub\n", iface, pPixelFormat);
- return E_NOTIMPL;
+ FormatConverter *This = (FormatConverter*)iface;
+
+ TRACE("(%p,%p): stub\n", iface, pPixelFormat);
+
+ if (This->source)
+ memcpy(pPixelFormat, This->dst_format->guid, sizeof(GUID));
+ else
+ return WINCODEC_ERR_NOTINITIALIZED;
+
+ return S_OK;
}
static HRESULT WINAPI FormatConverter_GetResolution(IWICFormatConverter *iface,
More information about the wine-cvs
mailing list