windowscodecs: Implement QueryCapability in the GIF decoder.
This commit is contained in:
parent
892c16e661
commit
7baf4ecd06
|
@ -1064,11 +1064,22 @@ static ULONG WINAPI GifDecoder_Release(IWICBitmapDecoder *iface)
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI GifDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *pIStream,
|
static HRESULT WINAPI GifDecoder_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 |
|
||||||
|
WICBitmapDecoderCapabilityCanEnumerateMetadata;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _gif_inputfunc(GifFileType *gif, GifByteType *data, int len) {
|
static int _gif_inputfunc(GifFileType *gif, GifByteType *data, int len) {
|
||||||
|
|
Loading…
Reference in New Issue