From 1e6266b6ed285755630a508793d1df2e12945c8d Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 1 Aug 2009 23:18:49 +0000 Subject: Cleanup, make pnmtopng.c compile with libpng 1.4 beta, split out pngx.c git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@968 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pngx.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 converter/other/pngx.h (limited to 'converter/other/pngx.h') diff --git a/converter/other/pngx.h b/converter/other/pngx.h new file mode 100644 index 00000000..81487ca1 --- /dev/null +++ b/converter/other/pngx.h @@ -0,0 +1,29 @@ +#ifndef PNGX_H_INCLUDED +#define PNGX_H_INCLUDED + +/* pngx is designed to be an extension of the PNG library to make using + the PNG library easier and cleaner. +*/ + +struct pngx { + png_structp png_ptr; + png_infop info_ptr; +}; + +typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw; + + +void +pngx_create(struct pngx ** const pngxPP, + pngx_rw const rw, + jmp_buf * const jmpbufP); + +void +pngx_destroy(struct pngx * const pngxP); + + +bool +pngx_chunkIsPresent(struct pngx * const pngxP, + uint32_t const chunkType); + +#endif -- cgit 1.4.1