From 97dea9f287048685c295ba3418f1d0e540c6a10e Mon Sep 17 00:00:00 2001 From: Philip Pemberton Date: Thu, 5 Jun 2003 13:17:55 +0000 Subject: [project @ 2003-06-05 13:17:55 by philpem] Added GIF decode support svn path=/import/netsurf/; revision=160 --- content/content.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 8a4fcbd17..c9fa9870b 100644 --- a/content/content.h +++ b/content/content.h @@ -1,5 +1,5 @@ /** - * $Id: content.h,v 1.10 2003/05/10 11:13:34 bursa Exp $ + * $Id: content.h,v 1.11 2003/06/05 13:17:55 philpem Exp $ */ #ifndef _NETSURF_DESKTOP_CONTENT_H_ @@ -7,6 +7,7 @@ #include "libxml/HTMLparser.h" #include "libpng/png.h" +#include "libungif/gif_lib.h" #include "oslib/osspriteop.h" #include "netsurf/content/cache.h" #include "netsurf/css/css.h" @@ -34,6 +35,7 @@ typedef enum { CONTENT_JPEG, CONTENT_CSS, CONTENT_PNG, + CONTENT_GIF, CONTENT_OTHER } content_type; @@ -110,6 +112,17 @@ struct content enum { PNG_PALETTE, PNG_DITHER, PNG_DEEP } type; } png; + // Structure for the GIF handler + struct + { + GifFileType *giffile; // GIF file handler + char *data; // GIF data + unsigned long length; // Length of GIF data + unsigned long buffer_pos; // Position in the buffer + osspriteop_area *sprite_area; // Sprite area + char *sprite_image; // Sprite image + } gif; + } data; struct cache_entry *cache; -- cgit v1.2.3