windowscodecs: Implement GetPixelFormat for default format converter.

This commit is contained in:
Vincent Povirk 2009-08-13 12:43:05 -05:00 committed by Alexandre Julliard
parent 05ddbfbf30
commit fa54c2e1aa
1 changed files with 10 additions and 2 deletions

View File

@ -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,