From b041a899ad2cd4013b2923959c184d3160d8898a Mon Sep 17 00:00:00 2001 From: John Klehm Date: Fri, 12 Sep 2008 19:40:28 -0500 Subject: 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) -- 1.5.4.3