windowscodecs: Implement GetSize/Resolution for default format converter.
This commit is contained in:
parent
d7d3618414
commit
05ddbfbf30
|
@ -157,8 +157,14 @@ static ULONG WINAPI FormatConverter_Release(IWICFormatConverter *iface)
|
||||||
static HRESULT WINAPI FormatConverter_GetSize(IWICFormatConverter *iface,
|
static HRESULT WINAPI FormatConverter_GetSize(IWICFormatConverter *iface,
|
||||||
UINT *puiWidth, UINT *puiHeight)
|
UINT *puiWidth, UINT *puiHeight)
|
||||||
{
|
{
|
||||||
FIXME("(%p,%p,%p): stub\n", iface, puiWidth, puiHeight);
|
FormatConverter *This = (FormatConverter*)iface;
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p,%p,%p)\n", iface, puiWidth, puiHeight);
|
||||||
|
|
||||||
|
if (This->source)
|
||||||
|
return IWICBitmapSource_GetSize(This->source, puiWidth, puiHeight);
|
||||||
|
else
|
||||||
|
return WINCODEC_ERR_NOTINITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI FormatConverter_GetPixelFormat(IWICFormatConverter *iface,
|
static HRESULT WINAPI FormatConverter_GetPixelFormat(IWICFormatConverter *iface,
|
||||||
|
@ -171,8 +177,14 @@ static HRESULT WINAPI FormatConverter_GetPixelFormat(IWICFormatConverter *iface,
|
||||||
static HRESULT WINAPI FormatConverter_GetResolution(IWICFormatConverter *iface,
|
static HRESULT WINAPI FormatConverter_GetResolution(IWICFormatConverter *iface,
|
||||||
double *pDpiX, double *pDpiY)
|
double *pDpiX, double *pDpiY)
|
||||||
{
|
{
|
||||||
FIXME("(%p,%p,%p): stub\n", iface, pDpiX, pDpiY);
|
FormatConverter *This = (FormatConverter*)iface;
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p,%p,%p): stub\n", iface, pDpiX, pDpiY);
|
||||||
|
|
||||||
|
if (This->source)
|
||||||
|
return IWICBitmapSource_GetResolution(This->source, pDpiX, pDpiY);
|
||||||
|
else
|
||||||
|
return WINCODEC_ERR_NOTINITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI FormatConverter_CopyPalette(IWICFormatConverter *iface,
|
static HRESULT WINAPI FormatConverter_CopyPalette(IWICFormatConverter *iface,
|
||||||
|
|
Loading…
Reference in New Issue