Vincent Povirk : windowscodecs: Register the GIF decoder.
Alexandre Julliard
julliard at winehq.org
Tue Aug 18 10:02:05 CDT 2009
Module: wine
Branch: master
Commit: b9b06bc2c914b4ee19be0a27ff6b199455762a3e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9b06bc2c914b4ee19be0a27ff6b199455762a3e
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Mon Aug 17 09:50:31 2009 -0500
windowscodecs: Register the GIF decoder.
---
dlls/windowscodecs/regsvr.c | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/dlls/windowscodecs/regsvr.c b/dlls/windowscodecs/regsvr.c
index 8e3328a..5860a82 100644
--- a/dlls/windowscodecs/regsvr.c
+++ b/dlls/windowscodecs/regsvr.c
@@ -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 */
};
More information about the wine-cvs
mailing list