40 #define ZLIB_VERSION "1.2.8" 41 #define ZLIB_VERNUM 0x1280 42 #define ZLIB_VER_MAJOR 1 43 #define ZLIB_VER_MINOR 2 44 #define ZLIB_VER_REVISION 8 45 #define ZLIB_VER_SUBREVISION 0 83 struct internal_state;
165 #define Z_PARTIAL_FLUSH 1 166 #define Z_SYNC_FLUSH 2 167 #define Z_FULL_FLUSH 3 174 #define Z_STREAM_END 1 175 #define Z_NEED_DICT 2 177 #define Z_STREAM_ERROR (-2) 178 #define Z_DATA_ERROR (-3) 179 #define Z_MEM_ERROR (-4) 180 #define Z_BUF_ERROR (-5) 181 #define Z_VERSION_ERROR (-6) 186 #define Z_NO_COMPRESSION 0 187 #define Z_BEST_SPEED 1 188 #define Z_BEST_COMPRESSION 9 189 #define Z_DEFAULT_COMPRESSION (-1) 193 #define Z_HUFFMAN_ONLY 2 196 #define Z_DEFAULT_STRATEGY 0 201 #define Z_ASCII Z_TEXT 210 #define zlib_version zlibVersion() 1025 typedef unsigned (*in_func)
OF((
void FAR *,
1026 z_const unsigned char FAR * FAR *));
1027 typedef int (*out_func)
OF((
void FAR *,
unsigned char FAR *,
unsigned));
1030 in_func
in,
void FAR *in_desc,
1031 out_func
out,
void FAR *out_desc));
1644 unsigned char FAR *window,
1647 #define deflateInit(strm, level) \ 1648 deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream)) 1649 #define inflateInit(strm) \ 1650 inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream)) 1651 #define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \ 1652 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\ 1653 (strategy), ZLIB_VERSION, (int)sizeof(z_stream)) 1654 #define inflateInit2(strm, windowBits) \ 1655 inflateInit2_((strm), (windowBits), ZLIB_VERSION, \ 1656 (int)sizeof(z_stream)) 1657 #define inflateBackInit(strm, windowBits, window) \ 1658 inflateBackInit_((strm), (windowBits), (window), \ 1659 ZLIB_VERSION, (int)sizeof(z_stream)) 1678 # define z_gzgetc(g) \ 1679 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1681 # define gzgetc(g) \ 1682 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1700 #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) 1701 # ifdef Z_PREFIX_SET 1702 # define z_gzopen z_gzopen64 1703 # define z_gzseek z_gzseek64 1704 # define z_gztell z_gztell64 1705 # define z_gzoffset z_gzoffset64 1706 # define z_adler32_combine z_adler32_combine64 1707 # define z_crc32_combine z_crc32_combine64 1709 # define gzopen gzopen64 1710 # define gzseek gzseek64 1711 # define gztell gztell64 1712 # define gzoffset gzoffset64 1713 # define adler32_combine adler32_combine64 1714 # define crc32_combine crc32_combine64 1741 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) 1742 struct internal_state {
int dummy;};
1752 #if defined(_WIN32) && !defined(Z_SOLO) 1756 #if defined(STDC) || defined(Z_HAVE_STDARG_H)
int ZEXPORT gzdirect(gzFile file)
uLong ZEXPORT compressBound(uLong sourceLen)
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
struct z_stream_s z_stream
const char *ZEXPORT zError(int err)
voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))
Addition for GDAL : START.
int ZEXPORT inflateResetKeep(z_streamp strm)
ZEXTERN(int) inflate OF((z_streamp strm
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
int ZEXPORT gzeof(gzFile file)
z_off64_t ZEXPORT gzoffset64(gzFile file)
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
GLsizei GLsizei GLchar * source
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
int ZEXPORT gzclose(gzFile file)
const z_crc_t FAR *ZEXPORT get_crc_table()
z_off_t ZEXPORT gztell(gzFile file)
int ZEXPORT inflateReset(z_streamp strm)
struct gz_header_s gz_header
int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
int ZEXPORT deflateEnd(z_streamp strm)
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format,...))
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
GLenum GLuint GLenum GLsizei const GLchar * buf
int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
int ZEXPORT gzgetc_(gzFile file)
int ZEXPORT gzputc(gzFile file, int c)
int ZEXPORT gzrewind(gzFile file)
z_off64_t ZEXPORT gztell64(gzFile file)
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT gzungetc(int c, gzFile file)
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
GLsizei const GLchar ** path
int ZEXPORT inflateSyncPoint(z_streamp strm)
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
gz_header FAR * gz_headerp
local int out(void *out_desc, unsigned char *buf, unsigned len)
int ZEXPORT gzbuffer(gzFile file, unsigned size)
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
int ZEXPORT inflateSync(z_streamp strm)
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT gzclose_r(gzFile file)
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head)
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
gzFile ZEXPORT gzdopen(int fd, const char *mode)
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
int ZEXPORT inflateBackEnd(z_streamp strm)
int ZEXPORT gzclose_w(gzFile file)
int ZEXPORT gzputs(gzFile file, const char *str)
uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2)
GLsizei const GLfloat * value
const char *ZEXPORT zlibVersion()
int const char int stream_size
int ZEXPORT deflate(z_streamp strm, int flush)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
int ZEXPORTVA 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)
z_off_t ZEXPORT gzoffset(gzFile file)
int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
uLong ZEXPORT zlibCompileFlags()
const char *ZEXPORT gzerror(gzFile file, int *errnum)
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
void ZEXPORT gzclearerr(gzFile file)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT gzflush(gzFile file, int flush)
gzFile ZEXPORT gzopen64(char *path, const char *mode) const
int ZEXPORT deflateResetKeep(z_streamp strm)
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
gzFile ZEXPORT gzopen(char *path, const char *mode) const
int ZEXPORT inflateUndermine(z_streamp strm, int subvert)
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
int ZEXPORT deflateReset(z_streamp strm)
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
struct internal_state FAR * state
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
long ZEXPORT inflateMark(z_streamp strm)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
int ZEXPORT inflateEnd(z_streamp strm)
int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)