diff options
author | James Bursa <james@netsurf-browser.org> | 2003-05-10 11:15:49 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-05-10 11:15:49 +0000 |
commit | 27d93c182c7202c8d2a4ff5c9e05a85c3444cca6 (patch) | |
tree | ed95b0bf286b44e4cd62021490a38a807ff7e4ef /content/content.h | |
parent | 0285c2984fc1913d583432716d6fff4f9f291994 (diff) | |
download | netsurf-27d93c182c7202c8d2a4ff5c9e05a85c3444cca6.tar.gz netsurf-27d93c182c7202c8d2a4ff5c9e05a85c3444cca6.tar.bz2 |
[project @ 2003-05-10 11:13:34 by bursa]
Partial PNG support.
svn path=/import/netsurf/; revision=129
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 16 |
1 files changed, 15 insertions, 1 deletions
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 |