Vincent Povirk : windowscodecs: Implement CopyPixels for the PNG decoder.
Alexandre Julliard
julliard at winehq.org
Fri Aug 28 10:18:03 CDT 2009
Module: wine
Branch: master
Commit: bcd8dc2d5305d810703f1e25a534f6972a1cc044
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bcd8dc2d5305d810703f1e25a534f6972a1cc044
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Aug 27 12:41:03 2009 -0500
windowscodecs: Implement CopyPixels 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 2373f99..5c73f40 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -491,8 +491,12 @@ static HRESULT WINAPI PngDecoder_Frame_CopyPalette(IWICBitmapFrameDecode *iface,
static HRESULT WINAPI PngDecoder_Frame_CopyPixels(IWICBitmapFrameDecode *iface,
const WICRect *prc, UINT cbStride, UINT cbBufferSize, BYTE *pbBuffer)
{
- FIXME("(%p,%p,%u,%u,%p): stub\n", iface, prc, cbStride, cbBufferSize, pbBuffer);
- return E_NOTIMPL;
+ PngDecoder *This = impl_from_frame(iface);
+ TRACE("(%p,%p,%u,%u,%p)\n", iface, prc, cbStride, cbBufferSize, pbBuffer);
+
+ return copy_pixels(This->bpp, This->image_bits,
+ This->width, This->height, This->stride,
+ prc, cbStride, cbBufferSize, pbBuffer);
}
static HRESULT WINAPI PngDecoder_Frame_GetMetadataQueryReader(IWICBitmapFrameDecode *iface,
More information about the wine-cvs
mailing list