summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorPhilip Pemberton <phil@philpem.me.uk>2003-06-05 13:17:55 +0000
committerPhilip Pemberton <phil@philpem.me.uk>2003-06-05 13:17:55 +0000
commit97dea9f287048685c295ba3418f1d0e540c6a10e (patch)
tree202a31a73300fc54e991c59de8659c22dd71c13a /content/content.h
parentde2c0f5d909e6192785fbaa68736631906f9db1a (diff)
downloadnetsurf-97dea9f287048685c295ba3418f1d0e540c6a10e.tar.gz
netsurf-97dea9f287048685c295ba3418f1d0e540c6a10e.tar.bz2
[project @ 2003-06-05 13:17:55 by philpem]
Added GIF decode support svn path=/import/netsurf/; revision=160
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h15
1 files changed, 14 insertions, 1 deletions
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;