diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-08-01 23:18:49 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-08-01 23:18:49 +0000 |
commit | 1e6266b6ed285755630a508793d1df2e12945c8d (patch) | |
tree | ced7404eb2d9b5996b8b9f0a79c2bfa33e0a09d6 /converter/other/pngx.h | |
parent | 8bd5955a0722a29036eb998eae74f10d54cf4ecc (diff) | |
download | netpbm-mirror-1e6266b6ed285755630a508793d1df2e12945c8d.tar.gz netpbm-mirror-1e6266b6ed285755630a508793d1df2e12945c8d.tar.xz netpbm-mirror-1e6266b6ed285755630a508793d1df2e12945c8d.zip |
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
Diffstat (limited to 'converter/other/pngx.h')
-rw-r--r-- | converter/other/pngx.h | 29 |
1 files changed, 29 insertions, 0 deletions
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 |