summaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zconf.h')
-rw-r--r--zconf.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/zconf.h b/zconf.h
index 4e05a3e..1abb0ea 100644
--- a/zconf.h
+++ b/zconf.h
@@ -3,7 +3,7 @@
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
6/* $Id: zconf.h,v 1.10 1995/04/30 19:27:14 jloup Exp $ */ 6/* $Id: zconf.h,v 1.11 1995/05/02 13:07:21 jloup Exp $ */
7 7
8#ifndef _ZCONF_H 8#ifndef _ZCONF_H
9#define _ZCONF_H 9#define _ZCONF_H
@@ -32,6 +32,7 @@
32# define STDC 32# define STDC
33#endif 33#endif
34 34
35/* Maximum value for memLevel in deflateInit2 */
35#ifndef MAX_MEM_LEVEL 36#ifndef MAX_MEM_LEVEL
36# ifdef MAXSEG_64K 37# ifdef MAXSEG_64K
37# define MAX_MEM_LEVEL 8 38# define MAX_MEM_LEVEL 8
@@ -40,10 +41,24 @@
40# endif 41# endif
41#endif 42#endif
42 43
44/* Maximum value for windowBits in deflateInit2 and inflateInit2 */
43#ifndef MAX_WBITS 45#ifndef MAX_WBITS
44# define MAX_WBITS 15 /* 32K LZ77 window */ 46# define MAX_WBITS 15 /* 32K LZ77 window */
45#endif 47#endif
46 48
49/* The memory requirements for deflate are (in bytes):
50 1 << (windowBits+2) + 1 << (memLevel+9)
51 that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
52 plus a few kilobytes for small objects. For example, if you want to reduce
53 the default memory requirements from 256K to 128K, compile with
54 make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
55 Of course this will generally degrade compression (there's no free lunch).
56
57 The memory requirements for inflate are (in bytes) 1 << windowBits
58 that is, 32K for windowBits=15 (default value) plus a few kilobytes
59 for small objects.
60*/
61
47 /* Type declarations */ 62 /* Type declarations */
48 63
49#ifndef __P /* function prototypes */ 64#ifndef __P /* function prototypes */