pngcrush  1.8.13
About: Pngcrush is an optimizer for PNG (Portable Network Graphics) files.
  Fossies Dox: pngcrush-1.8.13.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

zlib.h File Reference
#include "zconf.h"
Include dependency graph for zlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  z_stream_s
 
struct  gz_header_s
 
struct  gzFile_s
 

Macros

#define ZLIB_VERSION   "1.2.11"
 
#define ZLIB_VERNUM   0x12b0
 
#define ZLIB_VER_MAJOR   1
 
#define ZLIB_VER_MINOR   2
 
#define ZLIB_VER_REVISION   11
 
#define ZLIB_VER_SUBREVISION   0
 
#define Z_NO_FLUSH   0
 
#define Z_PARTIAL_FLUSH   1
 
#define Z_SYNC_FLUSH   2
 
#define Z_FULL_FLUSH   3
 
#define Z_FINISH   4
 
#define Z_BLOCK   5
 
#define Z_TREES   6
 
#define Z_OK   0
 
#define Z_STREAM_END   1
 
#define Z_NEED_DICT   2
 
#define Z_ERRNO   (-1)
 
#define Z_STREAM_ERROR   (-2)
 
#define Z_DATA_ERROR   (-3)
 
#define Z_MEM_ERROR   (-4)
 
#define Z_BUF_ERROR   (-5)
 
#define Z_VERSION_ERROR   (-6)
 
#define Z_NO_COMPRESSION   0
 
#define Z_BEST_SPEED   1
 
#define Z_BEST_COMPRESSION   9
 
#define Z_DEFAULT_COMPRESSION   (-1)
 
#define Z_FILTERED   1
 
#define Z_HUFFMAN_ONLY   2
 
#define Z_RLE   3
 
#define Z_FIXED   4
 
#define Z_DEFAULT_STRATEGY   0
 
#define Z_BINARY   0
 
#define Z_TEXT   1
 
#define Z_ASCII   Z_TEXT /* for compatibility with 1.2.2 and earlier */
 
#define Z_UNKNOWN   2
 
#define Z_DEFLATED   8
 
#define Z_NULL   0 /* for initializing zalloc, zfree, opaque */
 
#define zlib_version   zlibVersion()
 
#define deflateInit(strm, level)   deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
 
#define inflateInit(strm)   inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
 
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
 
#define inflateInit2(strm, windowBits)
 
#define inflateBackInit(strm, windowBits, window)
 
#define gzgetc(g)   ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))
 

Typedefs

typedef voidpf(* alloc_func) ()
 
typedef void(* free_func) ()
 
typedef struct z_stream_s z_stream
 
typedef z_streamz_streamp
 
typedef struct gz_header_s gz_header
 
typedef gz_headergz_headerp
 
typedef unsigned(* in_func) ()
 
typedef int(* out_func) ()
 
typedef struct gzFile_sgzFile
 

Functions

char * zlibVersion ()
 
int deflate ()
 
int deflateEnd ()
 
int inflate ()
 
int inflateEnd ()
 
int deflateSetDictionary ()
 
int deflateGetDictionary ()
 
int deflateCopy ()
 
int deflateReset ()
 
int deflateParams ()
 
int deflateTune ()
 
uLong deflateBound ()
 
int deflatePending ()
 
int deflatePrime ()
 
int deflateSetHeader ()
 
int inflateSetDictionary ()
 
int inflateGetDictionary ()
 
int inflateSync ()
 
int inflateCopy ()
 
int inflateReset ()
 
int inflateReset2 ()
 
int inflatePrime ()
 
long inflateMark ()
 
int inflateGetHeader ()
 
int inflateBack ()
 
int inflateBackEnd ()
 
uLong zlibCompileFlags ()
 
int compress ()
 
int compress2 ()
 
uLong compressBound ()
 
int uncompress ()
 
int uncompress2 ()
 
gzFile gzdopen ()
 
int gzbuffer ()
 
int gzsetparams ()
 
int gzread ()
 
z_size_t gzfread ()
 
int gzwrite ()
 
z_size_t gzfwrite ()
 
int gzprintf ()
 
int gzputs ()
 
char * gzgets ()
 
int gzputc ()
 
int gzgetc ()
 
int gzungetc ()
 
int gzflush ()
 
int gzrewind ()
 
int gzeof ()
 
int gzdirect ()
 
int gzclose ()
 
int gzclose_r ()
 
int gzclose_w ()
 
char * gzerror ()
 
void gzclearerr ()
 
uLong adler32 ()
 
uLong adler32_z ()
 
uLong crc32 ()
 
uLong crc32_z ()
 
int deflateInit_ ()
 
int inflateInit_ ()
 
int deflateInit2_ ()
 
int inflateInit2_ ()
 
int inflateBackInit_ ()
 
int gzgetc_ ()
 
gzFile gzopen ()
 
long gzseek ()
 
long gztell ()
 
long gzoffset ()
 
uLong adler32_combine ()
 
uLong crc32_combine ()
 
char * zError ()
 
int inflateSyncPoint ()
 
z_crc_tget_crc_table ()
 
int inflateUndermine ()
 
int inflateValidate ()
 
unsigned long inflateCodesUsed ()
 
int inflateResetKeep ()
 
int deflateResetKeep ()
 

Macro Definition Documentation

◆ deflateInit

#define deflateInit (   strm,
  level 
)    deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))

Definition at line 1805 of file zlib.h.

◆ deflateInit2

#define deflateInit2 (   strm,
  level,
  method,
  windowBits,
  memLevel,
  strategy 
)
Value:
deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
(strategy), ZLIB_VERSION, (int)sizeof(z_stream))

Definition at line 1809 of file zlib.h.

◆ gzgetc

#define gzgetc (   g)    ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))

Definition at line 1840 of file zlib.h.

◆ inflateBackInit

#define inflateBackInit (   strm,
  windowBits,
  window 
)
Value:
inflateBackInit_((strm), (windowBits), (window), \
ZLIB_VERSION, (int)sizeof(z_stream))

Definition at line 1815 of file zlib.h.

◆ inflateInit

#define inflateInit (   strm)    inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))

Definition at line 1807 of file zlib.h.

◆ inflateInit2

#define inflateInit2 (   strm,
  windowBits 
)
Value:
inflateInit2_((strm), (windowBits), ZLIB_VERSION, \
(int)sizeof(z_stream))

Definition at line 1812 of file zlib.h.

◆ Z_ASCII

#define Z_ASCII   Z_TEXT /* for compatibility with 1.2.2 and earlier */

Definition at line 205 of file zlib.h.

◆ Z_BEST_COMPRESSION

#define Z_BEST_COMPRESSION   9

Definition at line 192 of file zlib.h.

◆ Z_BEST_SPEED

#define Z_BEST_SPEED   1

Definition at line 191 of file zlib.h.

◆ Z_BINARY

#define Z_BINARY   0

Definition at line 203 of file zlib.h.

◆ Z_BLOCK

#define Z_BLOCK   5

Definition at line 173 of file zlib.h.

◆ Z_BUF_ERROR

#define Z_BUF_ERROR   (-5)

Definition at line 184 of file zlib.h.

◆ Z_DATA_ERROR

#define Z_DATA_ERROR   (-3)

Definition at line 182 of file zlib.h.

◆ Z_DEFAULT_COMPRESSION

#define Z_DEFAULT_COMPRESSION   (-1)

Definition at line 193 of file zlib.h.

◆ Z_DEFAULT_STRATEGY

#define Z_DEFAULT_STRATEGY   0

Definition at line 200 of file zlib.h.

◆ Z_DEFLATED

#define Z_DEFLATED   8

Definition at line 209 of file zlib.h.

◆ Z_ERRNO

#define Z_ERRNO   (-1)

Definition at line 180 of file zlib.h.

◆ Z_FILTERED

#define Z_FILTERED   1

Definition at line 196 of file zlib.h.

◆ Z_FINISH

#define Z_FINISH   4

Definition at line 172 of file zlib.h.

◆ Z_FIXED

#define Z_FIXED   4

Definition at line 199 of file zlib.h.

◆ Z_FULL_FLUSH

#define Z_FULL_FLUSH   3

Definition at line 171 of file zlib.h.

◆ Z_HUFFMAN_ONLY

#define Z_HUFFMAN_ONLY   2

Definition at line 197 of file zlib.h.

◆ Z_MEM_ERROR

#define Z_MEM_ERROR   (-4)

Definition at line 183 of file zlib.h.

◆ Z_NEED_DICT

#define Z_NEED_DICT   2

Definition at line 179 of file zlib.h.

◆ Z_NO_COMPRESSION

#define Z_NO_COMPRESSION   0

Definition at line 190 of file zlib.h.

◆ Z_NO_FLUSH

#define Z_NO_FLUSH   0

Definition at line 168 of file zlib.h.

◆ Z_NULL

#define Z_NULL   0 /* for initializing zalloc, zfree, opaque */

Definition at line 212 of file zlib.h.

◆ Z_OK

#define Z_OK   0

Definition at line 177 of file zlib.h.

◆ Z_PARTIAL_FLUSH

#define Z_PARTIAL_FLUSH   1

Definition at line 169 of file zlib.h.

◆ Z_RLE

#define Z_RLE   3

Definition at line 198 of file zlib.h.

◆ Z_STREAM_END

#define Z_STREAM_END   1

Definition at line 178 of file zlib.h.

◆ Z_STREAM_ERROR

#define Z_STREAM_ERROR   (-2)

Definition at line 181 of file zlib.h.

◆ Z_SYNC_FLUSH

#define Z_SYNC_FLUSH   2

Definition at line 170 of file zlib.h.

◆ Z_TEXT

#define Z_TEXT   1

Definition at line 204 of file zlib.h.

◆ Z_TREES

#define Z_TREES   6

Definition at line 174 of file zlib.h.

◆ Z_UNKNOWN

#define Z_UNKNOWN   2

Definition at line 206 of file zlib.h.

◆ Z_VERSION_ERROR

#define Z_VERSION_ERROR   (-6)

Definition at line 185 of file zlib.h.

◆ ZLIB_VER_MAJOR

#define ZLIB_VER_MAJOR   1

Definition at line 42 of file zlib.h.

◆ ZLIB_VER_MINOR

#define ZLIB_VER_MINOR   2

Definition at line 43 of file zlib.h.

◆ ZLIB_VER_REVISION

#define ZLIB_VER_REVISION   11

Definition at line 44 of file zlib.h.

◆ ZLIB_VER_SUBREVISION

#define ZLIB_VER_SUBREVISION   0

Definition at line 45 of file zlib.h.

◆ ZLIB_VERNUM

#define ZLIB_VERNUM   0x12b0

Definition at line 41 of file zlib.h.

◆ ZLIB_VERSION

#define ZLIB_VERSION   "1.2.11"

Definition at line 40 of file zlib.h.

◆ zlib_version

#define zlib_version   zlibVersion()

Definition at line 214 of file zlib.h.

Typedef Documentation

◆ alloc_func

typedef voidpf(* alloc_func) ()

Definition at line 81 of file zlib.h.

◆ free_func

typedef void(* free_func) ()

Definition at line 82 of file zlib.h.

◆ gz_header

typedef struct gz_header_s gz_header

◆ gz_headerp

Definition at line 131 of file zlib.h.

◆ gzFile

typedef struct gzFile_s* gzFile

Definition at line 1312 of file zlib.h.

◆ in_func

typedef unsigned(* in_func) ()

Definition at line 1093 of file zlib.h.

◆ out_func

typedef int(* out_func) ()

Definition at line 1094 of file zlib.h.

◆ z_stream

typedef struct z_stream_s z_stream

◆ z_streamp

typedef z_stream* z_streamp

Definition at line 108 of file zlib.h.

Function Documentation

◆ adler32()

uLong adler32 ( )

◆ adler32_combine()

uLong adler32_combine ( )

◆ adler32_z()

uLong adler32_z ( )

◆ compress()

int compress ( )

◆ compress2()

int compress2 ( )

◆ compressBound()

uLong compressBound ( )

◆ crc32()

uLong crc32 ( )

◆ crc32_combine()

uLong crc32_combine ( )

◆ crc32_z()

uLong crc32_z ( )

◆ deflate()

int deflate ( )

◆ deflateBound()

uLong deflateBound ( )

◆ deflateCopy()

int deflateCopy ( )

◆ deflateEnd()

int deflateEnd ( )

◆ deflateGetDictionary()

int deflateGetDictionary ( )

◆ deflateInit2_()

int deflateInit2_ ( )

◆ deflateInit_()

int deflateInit_ ( )

◆ deflateParams()

int deflateParams ( )

◆ deflatePending()

int deflatePending ( )

◆ deflatePrime()

int deflatePrime ( )

◆ deflateReset()

int deflateReset ( )

◆ deflateResetKeep()

int deflateResetKeep ( )

◆ deflateSetDictionary()

int deflateSetDictionary ( )

◆ deflateSetHeader()

int deflateSetHeader ( )

◆ deflateTune()

int deflateTune ( )

◆ get_crc_table()

z_crc_t* get_crc_table ( )

Definition at line 188 of file crc32.c.

References crc_table, and FAR.

◆ gzbuffer()

int gzbuffer ( )

◆ gzclearerr()

void gzclearerr ( )

◆ gzclose()

int gzclose ( )

◆ gzclose_r()

int gzclose_r ( )

◆ gzclose_w()

int gzclose_w ( )

◆ gzdirect()

int gzdirect ( )

◆ gzdopen()

gzFile gzdopen ( )

◆ gzeof()

int gzeof ( )

◆ gzerror()

char* gzerror ( )

◆ gzflush()

int gzflush ( )

◆ gzfread()

z_size_t gzfread ( )

◆ gzfwrite()

z_size_t gzfwrite ( )

◆ gzgetc()

int gzgetc ( )

◆ gzgetc_()

int gzgetc_ ( )

◆ gzgets()

char* gzgets ( )

◆ gzoffset()

long gzoffset ( )

◆ gzopen()

gzFile gzopen ( )

◆ gzprintf()

int gzprintf ( )

◆ gzputc()

int gzputc ( )

◆ gzputs()

int gzputs ( )

◆ gzread()

int gzread ( )

◆ gzrewind()

int gzrewind ( )

◆ gzseek()

long gzseek ( )

◆ gzsetparams()

int gzsetparams ( )

◆ gztell()

long gztell ( )

◆ gzungetc()

int gzungetc ( )

◆ gzwrite()

int gzwrite ( )

◆ inflate()

int inflate ( )

◆ inflateBack()

int inflateBack ( )

◆ inflateBackEnd()

int inflateBackEnd ( )

◆ inflateBackInit_()

int inflateBackInit_ ( )

◆ inflateCodesUsed()

unsigned long inflateCodesUsed ( )

◆ inflateCopy()

int inflateCopy ( )

◆ inflateEnd()

int inflateEnd ( )

◆ inflateGetDictionary()

int inflateGetDictionary ( )

◆ inflateGetHeader()

int inflateGetHeader ( )

◆ inflateInit2_()

int inflateInit2_ ( )

◆ inflateInit_()

int inflateInit_ ( )

◆ inflateMark()

long inflateMark ( )

◆ inflatePrime()

int inflatePrime ( )

◆ inflateReset()

int inflateReset ( )

◆ inflateReset2()

int inflateReset2 ( )

◆ inflateResetKeep()

int inflateResetKeep ( )

◆ inflateSetDictionary()

int inflateSetDictionary ( )

◆ inflateSync()

int inflateSync ( )

◆ inflateSyncPoint()

int inflateSyncPoint ( )

◆ inflateUndermine()

int inflateUndermine ( )

◆ inflateValidate()

int inflateValidate ( )

◆ uncompress()

int uncompress ( )

◆ uncompress2()

int uncompress2 ( )

◆ zError()

char* zError ( )

◆ zlibCompileFlags()

uLong zlibCompileFlags ( )

Definition at line 32 of file zutil.c.

References z_off_t.

◆ zlibVersion()

char* zlibVersion ( )

Definition at line 27 of file zutil.c.

References ZLIB_VERSION.

deflateInit2_
int deflateInit2_()
inflateInit2_
int inflateInit2_()
method
static int method
Definition: pngcrush.c:2291
ZLIB_VERSION
#define ZLIB_VERSION
Definition: zlib.h:40
z_stream_s
Definition: zlib.h:86
inflateBackInit_
int inflateBackInit_()