pngcrush
1.8.13
About: Pngcrush is an optimizer for PNG (Portable Network Graphics) files.
![]() ![]() |
#include "gzguts.h"
Go to the source code of this file.
Functions | |
static int | gz_init () |
static int | gz_comp () |
static int | gz_zero () |
static z_size_t | gz_write () |
static int | gz_init (gz_statep state) |
static int | gz_comp (gz_statep state, int flush) |
static int | gz_zero (gz_statep state, long len) |
static z_size_t | gz_write (gz_statep state, voidpc buf, z_size_t len) |
int | gzwrite (gzFile file, voidpc buf, unsigned len) |
z_size_t | gzfwrite (voidpc buf, z_size_t size, z_size_t nitems, gzFile file) |
int | gzputc (gzFile file, int c) |
int | gzputs (gzFile file, const char *str) |
int | gzprintf (gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20) |
int | gzflush (gzFile file, int flush) |
int | gzsetparams (gzFile file, int level, int strategy) |
int | gzclose_w (gzFile file) |
|
static |
Referenced by gz_write(), gz_zero(), gzclose_w(), gzflush(), gzprintf(), and gzsetparams().
|
static |
Definition at line 74 of file gzwrite.c.
References z_stream_s::avail_in, z_stream_s::avail_out, deflate(), deflateReset(), gz_error(), gz_init(), gzFile_s::have, z_stream_s::next_in, z_stream_s::next_out, Z_ERRNO, Z_FINISH, Z_NO_FLUSH, Z_OK, Z_STREAM_END, Z_STREAM_ERROR, and zstrerror.
|
static |
Referenced by gz_comp(), gz_write(), and gzprintf().
|
static |
Definition at line 18 of file gzwrite.c.
References z_stream_s::avail_out, DEF_MEM_LEVEL, deflateInit2, free(), gz_error(), malloc(), MAX_WBITS, z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, Z_DEFLATED, Z_MEM_ERROR, Z_NULL, Z_OK, z_stream_s::zalloc, and z_stream_s::zfree.
|
static |
Referenced by gzfwrite(), gzputc(), gzputs(), and gzwrite().
Definition at line 179 of file gzwrite.c.
References gz_comp(), gz_init(), gz_zero(), gzFile_s::have, gz_state::seek, z_const, and Z_NO_FLUSH.
|
static |
Referenced by gz_write(), gzclose_w(), gzflush(), gzprintf(), gzputc(), and gzsetparams().
|
static |
Definition at line 146 of file gzwrite.c.
References z_stream_s::avail_in, GT_OFF, gz_comp(), z_stream_s::next_in, Z_NO_FLUSH, and z_off64_t.
int gzclose_w | ( | gzFile | file | ) |
Definition at line 628 of file gzwrite.c.
References deflateEnd(), gz_state::direct, gz_state::err, gz_state::fd, free(), gz_comp(), gz_error(), GZ_WRITE, gz_zero(), gz_state::in, gz_state::mode, gz_state::out, gz_state::path, gz_state::seek, gz_state::size, gz_state::skip, gz_state::strm, Z_ERRNO, Z_FINISH, Z_OK, and Z_STREAM_ERROR.
Referenced by gzclose().
int gzflush | ( | gzFile | file, |
int | flush | ||
) |
Definition at line 554 of file gzwrite.c.
References gz_state::err, gz_comp(), GZ_WRITE, gz_zero(), gz_state::mode, gz_state::seek, gz_state::skip, Z_FINISH, Z_OK, and Z_STREAM_ERROR.
Definition at line 275 of file gzwrite.c.
References gz_state::err, gz_error(), gz_write(), GZ_WRITE, gz_state::mode, Z_OK, and Z_STREAM_ERROR.
int gzprintf | ( | gzFile | file, |
const char * | format, | ||
int | a1, | ||
int | a2, | ||
int | a3, | ||
int | a4, | ||
int | a5, | ||
int | a6, | ||
int | a7, | ||
int | a8, | ||
int | a9, | ||
int | a10, | ||
int | a11, | ||
int | a12, | ||
int | a13, | ||
int | a14, | ||
int | a15, | ||
int | a16, | ||
int | a17, | ||
int | a18, | ||
int | a19, | ||
int | a20 | ||
) |
Definition at line 466 of file gzwrite.c.
References z_stream_s::avail_in, gz_state::err, gz_comp(), gz_init(), GZ_WRITE, gz_zero(), gz_state::in, gz_state::mode, gzFile_s::next, z_stream_s::next_in, gzFile_s::pos, gz_state::seek, gz_state::size, gz_state::skip, gz_state::strm, gz_state::x, Z_NO_FLUSH, Z_OK, and Z_STREAM_ERROR.
int gzputc | ( | gzFile | file, |
int | c | ||
) |
Definition at line 305 of file gzwrite.c.
References z_stream_s::avail_in, gz_state::err, gz_write(), GZ_WRITE, gz_zero(), gzFile_s::have, gz_state::in, gz_state::mode, z_stream_s::next_in, gzFile_s::pos, gz_state::seek, gz_state::size, gz_state::skip, gz_state::strm, gz_state::x, and Z_OK.
Definition at line 353 of file gzwrite.c.
References gz_state::err, gz_write(), GZ_WRITE, gz_state::mode, and Z_OK.
int gzsetparams | ( | gzFile | file, |
int | level, | ||
int | strategy | ||
) |
Definition at line 586 of file gzwrite.c.
References z_stream_s::avail_in, deflateParams(), gz_state::err, gz_comp(), GZ_WRITE, gz_zero(), gz_state::level, gz_state::mode, gz_state::seek, gz_state::size, gz_state::skip, gz_state::strategy, gz_state::strm, Z_BLOCK, Z_OK, and Z_STREAM_ERROR.
Definition at line 247 of file gzwrite.c.
References gz_state::err, gz_error(), gz_write(), GZ_WRITE, gz_state::mode, Z_DATA_ERROR, and Z_OK.