windowscodecs: Implement GetDecoderInfo for the GIF decoder.
This commit is contained in:
parent
2b14970e51
commit
f343c33083
|
@ -376,8 +376,20 @@ static HRESULT WINAPI GifDecoder_GetContainerFormat(IWICBitmapDecoder *iface,
|
||||||
static HRESULT WINAPI GifDecoder_GetDecoderInfo(IWICBitmapDecoder *iface,
|
static HRESULT WINAPI GifDecoder_GetDecoderInfo(IWICBitmapDecoder *iface,
|
||||||
IWICBitmapDecoderInfo **ppIDecoderInfo)
|
IWICBitmapDecoderInfo **ppIDecoderInfo)
|
||||||
{
|
{
|
||||||
FIXME("(%p,%p): stub\n", iface, ppIDecoderInfo);
|
HRESULT hr;
|
||||||
return E_NOTIMPL;
|
IWICComponentInfo *compinfo;
|
||||||
|
|
||||||
|
TRACE("(%p,%p)\n", iface, ppIDecoderInfo);
|
||||||
|
|
||||||
|
hr = CreateComponentInfo(&CLSID_WICGifDecoder, &compinfo);
|
||||||
|
if (FAILED(hr)) return hr;
|
||||||
|
|
||||||
|
hr = IWICComponentInfo_QueryInterface(compinfo, &IID_IWICBitmapDecoderInfo,
|
||||||
|
(void**)ppIDecoderInfo);
|
||||||
|
|
||||||
|
IWICComponentInfo_Release(compinfo);
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI GifDecoder_CopyPalette(IWICBitmapDecoder *iface,
|
static HRESULT WINAPI GifDecoder_CopyPalette(IWICBitmapDecoder *iface,
|
||||||
|
|
Loading…
Reference in New Issue