Vincent Povirk : windowscodecs: Implement GetPixelFormat for the PNG decoder.

Alexandre Julliard julliard at winehq.org
Fri Aug 28 10:18:02 CDT 2009


Module: wine
Branch: master
Commit: 50b07b795d3b9c7f2353d18f87f887a6c5b61038
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=50b07b795d3b9c7f2353d18f87f887a6c5b61038

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Tue Aug 18 17:54:15 2009 -0500

windowscodecs: Implement GetPixelFormat for the PNG decoder.

---

 dlls/windowscodecs/pngformat.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 4c6c50c..5ab9c9f 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -463,8 +463,12 @@ static HRESULT WINAPI PngDecoder_Frame_GetSize(IWICBitmapFrameDecode *iface,
 static HRESULT WINAPI PngDecoder_Frame_GetPixelFormat(IWICBitmapFrameDecode *iface,
     WICPixelFormatGUID *pPixelFormat)
 {
-    FIXME("(%p,%p): stub\n", iface, pPixelFormat);
-    return E_NOTIMPL;
+    PngDecoder *This = impl_from_frame(iface);
+    TRACE("(%p,%p)\n", iface, pPixelFormat);
+
+    memcpy(pPixelFormat, This->format, sizeof(GUID));
+
+    return S_OK;
 }
 
 static HRESULT WINAPI PngDecoder_Frame_GetResolution(IWICBitmapFrameDecode *iface,




More information about the wine-cvs mailing list