windowscodecs: Implement GetFrame for the TGA decoder.

This commit is contained in:
Vincent Povirk 2010-06-07 16:20:04 -05:00 committed by Alexandre Julliard
parent 6d20f77517
commit bb6d9eaffb

View file

@ -279,8 +279,17 @@ static HRESULT WINAPI TgaDecoder_GetFrameCount(IWICBitmapDecoder *iface,
static HRESULT WINAPI TgaDecoder_GetFrame(IWICBitmapDecoder *iface,
UINT index, IWICBitmapFrameDecode **ppIBitmapFrame)
{
FIXME("(%p,%p): stub\n", iface, ppIBitmapFrame);
return E_NOTIMPL;
TgaDecoder *This = (TgaDecoder*)iface;
TRACE("(%p,%p)\n", iface, ppIBitmapFrame);
if (!This->initialized) return WINCODEC_ERR_NOTINITIALIZED;
if (index != 0) return E_INVALIDARG;
IWICBitmapDecoder_AddRef(iface);
*ppIBitmapFrame = (IWICBitmapFrameDecode*)&This->lpFrameVtbl;
return S_OK;
}
static const IWICBitmapDecoderVtbl TgaDecoder_Vtbl = {