Vincent Povirk : windowscodecs: Implement GetSize for the JPEG decoder.
Alexandre Julliard
julliard at winehq.org
Tue Aug 25 08:44:10 CDT 2009
Module: wine
Branch: master
Commit: 7d63abc9ec61719849d753c7e713559f6a5ed7bb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d63abc9ec61719849d753c7e713559f6a5ed7bb
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Mon Aug 24 12:35:51 2009 -0500
windowscodecs: Implement GetSize for the JPEG decoder.
---
dlls/windowscodecs/jpegformat.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/jpegformat.c b/dlls/windowscodecs/jpegformat.c
index 69a07db..50ee013 100644
--- a/dlls/windowscodecs/jpegformat.c
+++ b/dlls/windowscodecs/jpegformat.c
@@ -392,8 +392,11 @@ static ULONG WINAPI JpegDecoder_Frame_Release(IWICBitmapFrameDecode *iface)
static HRESULT WINAPI JpegDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface,
UINT *puiWidth, UINT *puiHeight)
{
- FIXME("(%p,%p,%p)\n", iface, puiWidth, puiHeight);
- return E_NOTIMPL;
+ JpegDecoder *This = decoder_from_frame(iface);
+ *puiWidth = This->cinfo.output_width;
+ *puiHeight = This->cinfo.output_height;
+ TRACE("(%p)->(%u,%u)\n", iface, *puiWidth, *puiHeight);
+ return S_OK;
}
static HRESULT WINAPI JpegDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *iface,
More information about the wine-cvs
mailing list