From 27d93c182c7202c8d2a4ff5c9e05a85c3444cca6 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 10 May 2003 11:15:49 +0000 Subject: [project @ 2003-05-10 11:13:34 by bursa] Partial PNG support. svn path=/import/netsurf/; revision=129 --- content/content.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 462d58b69..8a4fcbd17 100644 --- a/content/content.h +++ b/content/content.h @@ -1,11 +1,13 @@ /** - * $Id: content.h,v 1.9 2003/04/15 17:53:00 bursa Exp $ + * $Id: content.h,v 1.10 2003/05/10 11:13:34 bursa Exp $ */ #ifndef _NETSURF_DESKTOP_CONTENT_H_ #define _NETSURF_DESKTOP_CONTENT_H_ #include "libxml/HTMLparser.h" +#include "libpng/png.h" +#include "oslib/osspriteop.h" #include "netsurf/content/cache.h" #include "netsurf/css/css.h" #include "netsurf/render/box.h" @@ -98,6 +100,16 @@ struct content unsigned long length; } jpeg; + struct + { + png_structp png; + png_infop info; + unsigned long rowbytes; + osspriteop_area *sprite_area; + char *sprite_image; + enum { PNG_PALETTE, PNG_DITHER, PNG_DEEP } type; + } png; + } data; struct cache_entry *cache; @@ -118,5 +130,7 @@ int content_convert(struct content *c, unsigned long width, unsigned long height void content_revive(struct content *c, unsigned long width, unsigned long height); void content_reformat(struct content *c, unsigned long width, unsigned long height); void content_destroy(struct content *c); +void content_redraw(struct content *c, long x, long y, + unsigned long width, unsigned long height); #endif -- cgit v1.2.3