From 56b5a6eaae4442ebeb73ad925d4ceaa863f4f56d Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 17 Apr 2011 00:21:47 +0000 Subject: Eliminate more reference to pnginfo private members git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1475 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pngx.h | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) (limited to 'converter/other/pngx.h') diff --git a/converter/other/pngx.h b/converter/other/pngx.h index 930b84c4..dfaf2e91 100644 --- a/converter/other/pngx.h +++ b/converter/other/pngx.h @@ -34,10 +34,15 @@ struct pngx_trans { typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw; struct pngx { - png_structp png_ptr; - png_infop info_ptr; - pngx_rw rw; - png_uint_16 maxval; + png_structp png_ptr; + png_infop info_ptr; + pngx_rw rw; + png_uint_16 maxval; + unsigned int numPassesRequired; + /* The number of times we have write the complete image to the + compressor. This is more than one when the compressor is set + up to do an interlaced format. + */ }; void @@ -55,6 +60,20 @@ pngx_chunkIsPresent(struct pngx * const pngxP, png_byte pngx_colorType(struct pngx * const pngxP); +void +pngx_setInterlaceHandling(struct pngx * const pngxP); + +void +pngx_setCompressionSize(struct pngx * const pngxP, + int const bufferSize); + +void +pngx_setFilter(struct pngx * const pngxP, + int const filterSet); + +void +pngx_setPacking(struct pngx * const pngxP); + void pngx_setText(struct pngx * const pngxP, png_textp const textP, @@ -90,9 +109,6 @@ void pngx_setSbit(struct pngx * const pngxP, png_color_8 const sbit); -void -pngx_setInterlaceHandling(struct pngx * const pngxP); - void pngx_setPlte(struct pngx * const pngxP, png_color * const palette, @@ -125,6 +141,10 @@ pngx_setBkgdRgb(struct pngx * const pngxP, void pngx_writeInfo(struct pngx * const pngxP); +void +pngx_writeRow(struct pngx * const pngxP, + const png_byte * const line); + void pngx_writeEnd(struct pngx * const pngxP); -- cgit 1.4.1