windowscodecs: Implement IWICBitmapScaler::GetSize.

oldstable
Vincent Povirk 2012-02-28 16:21:24 -06:00 committed by Alexandre Julliard
parent 3ab9eaf679
commit 6e790c9aec
1 changed files with 12 additions and 2 deletions

View File

@ -102,9 +102,19 @@ static ULONG WINAPI BitmapScaler_Release(IWICBitmapScaler *iface)
static HRESULT WINAPI BitmapScaler_GetSize(IWICBitmapScaler *iface,
UINT *puiWidth, UINT *puiHeight)
{
FIXME("(%p,%p,%p): stub\n", iface, puiWidth, puiHeight);
BitmapScaler *This = impl_from_IWICBitmapScaler(iface);
TRACE("(%p,%p,%p)\n", iface, puiWidth, puiHeight);
return E_NOTIMPL;
if (!puiWidth || !puiHeight)
return E_INVALIDARG;
if (!This->source)
return WINCODEC_ERR_WRONGSTATE;
*puiWidth = This->width;
*puiHeight = This->height;
return S_OK;
}
static HRESULT WINAPI BitmapScaler_GetPixelFormat(IWICBitmapScaler *iface,