windowscodecs: Implement QueryCapability of the TGA decoder.
This commit is contained in:
parent
03efd5c0f7
commit
380d0cd023
@ -182,11 +182,21 @@ static ULONG WINAPI TgaDecoder_Release(IWICBitmapDecoder *iface)
|
|||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI TgaDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *pIStream,
|
static HRESULT WINAPI TgaDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *stream,
|
||||||
DWORD *pdwCapability)
|
DWORD *capability)
|
||||||
{
|
{
|
||||||
FIXME("(%p,%p,%p): stub\n", iface, pIStream, pdwCapability);
|
HRESULT hr;
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p,%p,%p)\n", iface, stream, capability);
|
||||||
|
|
||||||
|
if (!stream || !capability) return E_INVALIDARG;
|
||||||
|
|
||||||
|
hr = IWICBitmapDecoder_Initialize(iface, stream, WICDecodeMetadataCacheOnDemand);
|
||||||
|
if (hr != S_OK) return hr;
|
||||||
|
|
||||||
|
*capability = WICBitmapDecoderCapabilityCanDecodeAllImages |
|
||||||
|
WICBitmapDecoderCapabilityCanDecodeSomeImages;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI TgaDecoder_Initialize(IWICBitmapDecoder *iface, IStream *pIStream,
|
static HRESULT WINAPI TgaDecoder_Initialize(IWICBitmapDecoder *iface, IStream *pIStream,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user