Vincent Povirk : windowscodecs: Implement GetPixelFormat for default format converter.
Module: wine Branch: master Commit: fa54c2e1aa0e58a9ac7daf33562207f7d0f3c74b URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa54c2e1aa0e58a9ac7daf3356... Author: Vincent Povirk <vincent(a)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,
participants (1)
-
Alexandre Julliard