gdiplus: Use WIC to decode GIF files.

This commit is contained in:
Vincent Povirk 2009-09-01 17:56:42 -05:00 committed by Alexandre Julliard
parent faad683e47
commit 6c2d85ca84
1 changed files with 6 additions and 1 deletions

View File

@ -1512,6 +1512,11 @@ static GpStatus decode_image_jpeg(IStream* stream, REFCLSID clsid, GpImage **ima
return decode_image_wic(stream, &CLSID_WICJpegDecoder, image); return decode_image_wic(stream, &CLSID_WICJpegDecoder, image);
} }
static GpStatus decode_image_gif(IStream* stream, REFCLSID clsid, GpImage **image)
{
return decode_image_wic(stream, &CLSID_WICGifDecoder, image);
}
static GpStatus decode_image_olepicture_bitmap(IStream* stream, REFCLSID clsid, GpImage **image) static GpStatus decode_image_olepicture_bitmap(IStream* stream, REFCLSID clsid, GpImage **image)
{ {
IPicture *pic; IPicture *pic;
@ -2084,7 +2089,7 @@ static const struct image_codec codecs[NUM_CODECS] = {
/* SigMask */ gif_sig_mask, /* SigMask */ gif_sig_mask,
}, },
NULL, NULL,
decode_image_olepicture_bitmap decode_image_gif
}, },
{ {
{ /* EMF */ { /* EMF */