mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
windowscodecs: Implement QueryCapability of the TGA decoder.
This commit is contained in:
parent
03efd5c0f7
commit
380d0cd023
1 changed files with 14 additions and 4 deletions
|
@ -182,11 +182,21 @@ static ULONG WINAPI TgaDecoder_Release(IWICBitmapDecoder *iface)
|
|||
return ref;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI TgaDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *pIStream,
|
||||
DWORD *pdwCapability)
|
||||
static HRESULT WINAPI TgaDecoder_QueryCapability(IWICBitmapDecoder *iface, IStream *stream,
|
||||
DWORD *capability)
|
||||
{
|
||||
FIXME("(%p,%p,%p): stub\n", iface, pIStream, pdwCapability);
|
||||
return E_NOTIMPL;
|
||||
HRESULT hr;
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue