2003-06-30 16:44:03 +04:00
|
|
|
/*
|
|
|
|
* 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>
|
2003-05-10 15:15:49 +04:00
|
|
|
*/
|
|
|
|
|
2004-09-04 20:41:28 +04:00
|
|
|
#ifndef _NETSURF_IMAGE_PNG_H_
|
|
|
|
#define _NETSURF_IMAGE_PNG_H_
|
2003-05-10 15:15:49 +04:00
|
|
|
|
2003-09-08 01:08:13 +04:00
|
|
|
#include "libpng/png.h"
|
|
|
|
|
|
|
|
struct content;
|
|
|
|
|
|
|
|
struct content_png_data {
|
|
|
|
png_structp png;
|
|
|
|
png_infop info;
|
|
|
|
unsigned long rowbytes;
|
|
|
|
int interlace;
|
|
|
|
};
|
2003-05-10 15:15:49 +04:00
|
|
|
|
2004-06-11 00:41:26 +04:00
|
|
|
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);
|
2003-05-10 15:15:49 +04:00
|
|
|
void nspng_destroy(struct content *c);
|
2004-10-18 01:37:01 +04:00
|
|
|
bool nspng_redraw(struct content *c, int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int clip_x0, int clip_y0, int clip_x1, int clip_y1,
|
|
|
|
float scale, unsigned long background_colour);
|
2004-09-04 20:41:28 +04:00
|
|
|
|
2003-05-10 15:15:49 +04:00
|
|
|
#endif
|