windowscodecs: Implement QueryCapability of the JPEG decoder.
This commit is contained in:
parent
c44024f1e0
commit
67eafab883
|
@ -220,11 +220,22 @@ static ULONG WINAPI JpegDecoder_Release(IWICBitmapDecoder *iface)
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI JpegDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *pIStream,
|
static HRESULT WINAPI JpegDecoder_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;
|
||||||
|
/* FIXME: WICBitmapDecoderCapabilityCanEnumerateMetadata */
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void source_mgr_init_source(j_decompress_ptr cinfo)
|
static void source_mgr_init_source(j_decompress_ptr cinfo)
|
||||||
|
|
Loading…
Reference in New Issue