diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-09-04 16:41:28 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-09-04 16:41:28 +0000 |
commit | 101c87958dfeb769c697136d221a2a1c63929e65 (patch) | |
tree | 99108a4a5c4b182ca9d385a9fa0330a9a6e3ea03 /image/png.h | |
parent | e223757e3504586f8c260991b81f8f62c3b75ffc (diff) | |
download | netsurf-101c87958dfeb769c697136d221a2a1c63929e65.tar.gz netsurf-101c87958dfeb769c697136d221a2a1c63929e65.tar.bz2 |
[project @ 2004-09-04 16:41:28 by jmb]
Fix jpeg redraw
Move png.c/h to /image and rework to use the bitmap code
Make RISC OS bitmap struct publically accessible (via riscos/bitmap.h)
Draw export now embeds JPEGs and PNGs/MNGs/JNGs correctly again.
Background images are now plotted correctly again.
svn path=/import/netsurf/; revision=1268
Diffstat (limited to 'image/png.h')
-rw-r--r-- | image/png.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/image/png.h b/image/png.h new file mode 100644 index 000000000..5cf0eb3c1 --- /dev/null +++ b/image/png.h @@ -0,0 +1,27 @@ +/* + * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * Licensed under the GNU General Public License, + * http://www.opensource.org/licenses/gpl-license + * Copyright 2003 James Bursa <bursa@users.sourceforge.net> + */ + +#ifndef _NETSURF_IMAGE_PNG_H_ +#define _NETSURF_IMAGE_PNG_H_ + +#include "libpng/png.h" + +struct content; + +struct content_png_data { + png_structp png; + png_infop info; + unsigned long rowbytes; + int interlace; +}; + +bool nspng_create(struct content *c, const char *params[]); +bool nspng_process_data(struct content *c, char *data, unsigned int size); +bool nspng_convert(struct content *c, int width, int height); +void nspng_destroy(struct content *c); + +#endif |