Vincent Povirk : windowscodecs: Implement GetPixelFormat for TIFF decoder.
Alexandre Julliard
julliard at winehq.org
Mon Mar 22 11:12:03 CDT 2010
Module: wine
Branch: master
Commit: 8066e9beca831275af101d5a9b13ded3b5af1f40
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8066e9beca831275af101d5a9b13ded3b5af1f40
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Fri Mar 19 15:20:52 2010 -0500
windowscodecs: Implement GetPixelFormat for TIFF decoder.
---
dlls/windowscodecs/tiffformat.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/tiffformat.c b/dlls/windowscodecs/tiffformat.c
index b351610..83b9667 100644
--- a/dlls/windowscodecs/tiffformat.c
+++ b/dlls/windowscodecs/tiffformat.c
@@ -559,8 +559,13 @@ static HRESULT WINAPI TiffFrameDecode_GetSize(IWICBitmapFrameDecode *iface,
static HRESULT WINAPI TiffFrameDecode_GetPixelFormat(IWICBitmapFrameDecode *iface,
WICPixelFormatGUID *pPixelFormat)
{
- FIXME("(%p,%p)\n", iface, pPixelFormat);
- return E_NOTIMPL;
+ TiffFrameDecode *This = (TiffFrameDecode*)iface;
+
+ memcpy(pPixelFormat, This->decode_info.format, sizeof(GUID));
+
+ TRACE("(%p) <-- %s\n", This, debugstr_guid(This->decode_info.format));
+
+ return S_OK;
}
static HRESULT WINAPI TiffFrameDecode_GetResolution(IWICBitmapFrameDecode *iface,
More information about the wine-cvs
mailing list