diff options
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 |