about summary refs log tree commit diff
path: root/converter/other/pngx.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-04-17 00:21:47 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-04-17 00:21:47 +0000
commit56b5a6eaae4442ebeb73ad925d4ceaa863f4f56d (patch)
treee4681a24ed01e383ab6e8dfe448ee10fa0b3cb5e /converter/other/pngx.h
parent99a59c83cf845bc2859589f59ca709b92268df11 (diff)
downloadnetpbm-mirror-56b5a6eaae4442ebeb73ad925d4ceaa863f4f56d.tar.gz
netpbm-mirror-56b5a6eaae4442ebeb73ad925d4ceaa863f4f56d.tar.xz
netpbm-mirror-56b5a6eaae4442ebeb73ad925d4ceaa863f4f56d.zip
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
Diffstat (limited to 'converter/other/pngx.h')
-rw-r--r--converter/other/pngx.h34
1 files changed, 27 insertions, 7 deletions
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
@@ -56,6 +61,20 @@ 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,
              unsigned int  const count);
@@ -91,9 +110,6 @@ 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,
              unsigned int  const paletteSize);
@@ -126,6 +142,10 @@ 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);
 
 #endif