windowscodecs: Register the GIF decoder.

This commit is contained in:
Vincent Povirk 2009-08-17 09:50:31 -05:00 committed by Alexandre Julliard
parent 0c4a5620e8
commit b9b06bc2c9
1 changed files with 26 additions and 1 deletions

View File

@ -759,8 +759,9 @@ static struct regsvr_coclass const coclass_list[] = {
/***********************************************************************
* decoder list
*/
static const BYTE mask_all[] = {0xff,0xff,0xff,0xff,0xff,0xff};
static const BYTE bmp_magic[] = {0x42,0x4d};
static const BYTE mask_all[] = {0xff,0xff};
static GUID const * const bmp_formats[] = {
&GUID_WICPixelFormat1bppIndexed,
@ -780,6 +781,20 @@ static struct decoder_pattern const bmp_patterns[] = {
{0}
};
static const BYTE gif87a_magic[6] = "GIF87a";
static const BYTE gif89a_magic[6] = "GIF89a";
static GUID const * const gif_formats[] = {
&GUID_WICPixelFormat8bppIndexed,
NULL
};
static struct decoder_pattern const gif_patterns[] = {
{6,0,gif87a_magic,mask_all,0},
{6,0,gif89a_magic,mask_all,0},
{0}
};
static struct regsvr_decoder const decoder_list[] = {
{ &CLSID_WICBmpDecoder,
"The Wine Project",
@ -791,6 +806,16 @@ static struct regsvr_decoder const decoder_list[] = {
bmp_formats,
bmp_patterns
},
{ &CLSID_WICGifDecoder,
"The Wine Project",
"GIF Decoder",
"1.0.0.0",
&GUID_VendorMicrosoft,
"image/gif",
".gif",
gif_formats,
gif_patterns
},
{ NULL } /* list terminator */
};