John Klehm : gdiplus: Stub implementation of GdipGetImageDecoders and GdipGetImageDecodersSize.
Alexandre Julliard
julliard at winehq.org
Mon Sep 15 06:55:06 CDT 2008
Module: wine
Branch: master
Commit: 294c160c36e699ff30d2b56850d18a629c256f1b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=294c160c36e699ff30d2b56850d18a629c256f1b
Author: John Klehm <xixsimplicityxix at gmail.com>
Date: Fri Sep 12 19:40:28 2008 -0500
gdiplus: Stub implementation of GdipGetImageDecoders and GdipGetImageDecodersSize.
---
dlls/gdiplus/gdiplus.spec | 4 ++--
dlls/gdiplus/image.c | 29 +++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 5de555a..dbe7c76 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -281,8 +281,8 @@
@ stub GdipGetHemfFromMetafile
@ stub GdipGetImageAttributesAdjustedPalette
@ stdcall GdipGetImageBounds(ptr ptr ptr)
-@ stub GdipGetImageDecoders
-@ stub GdipGetImageDecodersSize
+@ stdcall GdipGetImageDecoders(long long ptr)
+@ stdcall GdipGetImageDecodersSize(ptr ptr)
@ stdcall GdipGetImageDimension(ptr ptr ptr)
@ stdcall GdipGetImageEncoders(long long ptr)
@ stdcall GdipGetImageEncodersSize(ptr ptr)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 2f35f27..2172b51 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -1277,6 +1277,35 @@ static const ImageCodecInfo codecs[NUM_ENCODERS_SUPPORTED] =
};
/*****************************************************************************
+ * GdipGetImageDecodersSize [GDIPLUS.@]
+ */
+GpStatus WINGDIPAPI GdipGetImageDecodersSize(UINT *numDecoders, UINT *size)
+{
+ FIXME("%p %p stub!\n", numDecoders, size);
+
+ if (!numDecoders || !size)
+ return InvalidParameter;
+
+ *numDecoders = 0;
+ *size = 0;
+
+ return Ok;
+}
+
+/*****************************************************************************
+ * GdipGetImageDecoders [GDIPLUS.@]
+ */
+GpStatus WINGDIPAPI GdipGetImageDecoders(UINT numDecoders, UINT size, ImageCodecInfo *decoders)
+{
+ FIXME("%u %u %p stub!\n", numDecoders, size, decoders);
+
+ if (!decoders)
+ return GenericError;
+
+ return NotImplemented;
+}
+
+/*****************************************************************************
* GdipGetImageEncodersSize [GDIPLUS.@]
*/
GpStatus WINGDIPAPI GdipGetImageEncodersSize(UINT *numEncoders, UINT *size)
More information about the wine-cvs
mailing list