source: svn/newcon3bcm2_21bu/dst/dlib/src/PNG/zconf.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 8.5 KB
Line 
1/* zconf.h -- configuration of the zlib compression library
2 * Copyright (C) 1995-1998 Jean-loup Gailly.
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6/* @(#) $Id: //suprahd/releases/suprahd_163/suprahd_ztvapp640_163/drivers/graphics/PNG/lpng102/zconf.h#1 $
7 * $Revision: #1 $
8 * $DateTime: 2006/02/24 17:51:46 $
9 * $Change: 42566 $
10 * $Author: pryush.sharma $
11 */
12
13#ifndef _ZCONF_H
14#define _ZCONF_H
15
16/*
17 * If you *really* need a unique prefix for all types and library functions,
18 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
19 */
20#ifdef Z_PREFIX
21#  define deflateInit_  z_deflateInit_
22#  define deflate       z_deflate
23#  define deflateEnd    z_deflateEnd
24#  define png_inflateInit_      z_inflateInit_
25#  define png_inflate   z_inflate
26#  define png_inflateEnd        z_inflateEnd
27#  define deflateInit2_ z_deflateInit2_
28#  define deflateSetDictionary z_deflateSetDictionary
29#  define deflateCopy   z_deflateCopy
30#  define deflateReset  z_deflateReset
31#  define deflateParams z_deflateParams
32#  define png_inflateInit2_     z_inflateInit2_
33#  define png_inflateSetDictionary z_inflateSetDictionary
34#  define png_inflateSync       z_inflateSync
35#  define png_inflateSyncPoint z_inflateSyncPoint
36#  define png_inflateReset      z_inflateReset
37#  define compress      z_compress
38#  define compress2     z_compress2
39#  define uncompress    z_uncompress
40#  define adler32       z_adler32
41#  define crc32         z_crc32
42#  define get_crc_table z_get_crc_table
43
44#  define Byte          z_Byte
45#  define uInt          z_uInt
46#  define uLong         z_uLong
47#  define Bytef         z_Bytef
48#  define charf         z_charf
49#  define intf          z_intf
50#  define uIntf         z_uIntf
51#  define uLongf        z_uLongf
52#  define voidpf        z_voidpf
53#  define voidp         z_voidp
54
55#else
56
57#  define png_inflateInit_      inflateInit_
58#  define png_inflate   inflate
59#  define png_inflateEnd        inflateEnd
60#  define png_inflateInit2_     inflateInit2_
61#  define png_inflateSetDictionary inflateSetDictionary
62#  define png_inflateSync       inflateSync
63#  define png_inflateSyncPoint inflateSyncPoint
64#  define png_inflateReset      inflateReset
65#endif
66
67#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
68#  define WIN32
69#endif
70#if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386)
71#  ifndef __32BIT__
72#    define __32BIT__
73#  endif
74#endif
75#if defined(__MSDOS__) && !defined(MSDOS)
76#  define MSDOS
77#endif
78
79/*
80 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
81 * than 64k bytes at a time (needed on systems with 16-bit int).
82 */
83#if defined(MSDOS) && !defined(__32BIT__)
84#  define MAXSEG_64K
85#endif
86#ifdef MSDOS
87#  define UNALIGNED_OK
88#endif
89
90#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32))  && !defined(STDC)
91#  define STDC
92#endif
93#if defined(__STDC__) || defined(__cplusplus) || defined(__OS2__)
94#  ifndef STDC
95#    define STDC
96#  endif
97#endif
98
99#ifndef STDC
100#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
101#    define const
102#  endif
103#endif
104
105/* Some Mac compilers merge all .h files incorrectly: */
106#if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
107#  define NO_DUMMY_DECL
108#endif
109
110/* Old Borland C incorrectly complains about missing returns: */
111#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
112#  define NEED_DUMMY_RETURN
113#endif
114
115
116/* Maximum value for memLevel in deflateInit2 */
117#ifndef MAX_MEM_LEVEL
118#  ifdef MAXSEG_64K
119#    define MAX_MEM_LEVEL 8
120#  else
121#    define MAX_MEM_LEVEL 9
122#  endif
123#endif
124
125/* Maximum value for windowBits in deflateInit2 and inflateInit2.
126 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
127 * created by gzip. (Files created by minigzip can still be extracted by
128 * gzip.)
129 */
130#ifndef MAX_WBITS
131#  define MAX_WBITS   15 /* 32K LZ77 window */
132#endif
133
134/* The memory requirements for deflate are (in bytes):
135            (1 << (windowBits+2)) +  (1 << (memLevel+9))
136 that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
137 plus a few kilobytes for small objects. For example, if you want to reduce
138 the default memory requirements from 256K to 128K, compile with
139     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
140 Of course this will generally degrade compression (there's no free lunch).
141
142   The memory requirements for inflate are (in bytes) 1 << windowBits
143 that is, 32K for windowBits=15 (default value) plus a few kilobytes
144 for small objects.
145*/
146
147                        /* Type declarations */
148
149#ifndef OF /* function prototypes */
150#  ifdef STDC
151#    define OF(args)  args
152#  else
153#    define OF(args)  ()
154#  endif
155#endif
156
157/* The following definitions for FAR are needed only for MSDOS mixed
158 * model programming (small or medium model with some far allocations).
159 * This was tested only with MSC; for other MSDOS compilers you may have
160 * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
161 * just define FAR to be empty.
162 */
163#if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__)
164   /* MSC small or medium model */
165#  define SMALL_MEDIUM
166#  ifdef _MSC_VER
167#    define FAR _far
168#  else
169#    define FAR far
170#  endif
171#endif
172#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
173#  ifndef __32BIT__
174#    define SMALL_MEDIUM
175#    define FAR _far
176#  endif
177#endif
178
179/* Compile with -DZLIB_DLL for Windows DLL support */
180#if defined(ZLIB_DLL)
181#  if defined(_WINDOWS) || defined(WINDOWS)
182#    ifdef FAR
183#      undef FAR
184#    endif
185#    include <windows.h>
186#    define ZEXPORT  WINAPI
187#    ifdef WIN32
188#      define ZEXPORTVA  WINAPIV
189#    else
190#      define ZEXPORTVA  FAR _cdecl _export
191#    endif
192#  endif
193#  if defined (__BORLANDC__)
194#    if (__BORLANDC__ >= 0x0500) && defined (WIN32)
195#      include <windows.h>
196#      define ZEXPORT __declspec(dllexport) WINAPI
197#      define ZEXPORTRVA __declspec(dllexport) WINAPIV
198#    else
199#      if defined (_Windows) && defined (__DLL__)
200#        define ZEXPORT _export
201#        define ZEXPORTVA _export
202#      endif
203#    endif
204#  endif
205#endif
206
207#if defined (__BEOS__)
208#  if defined (ZLIB_DLL)
209#    define ZEXTERN extern __declspec(dllexport)
210#  else
211#    define ZEXTERN extern __declspec(dllimport)
212#  endif
213#endif
214
215#ifndef ZEXPORT
216#  define ZEXPORT
217#endif
218#ifndef ZEXPORTVA
219#  define ZEXPORTVA
220#endif
221#ifndef ZEXTERN
222#  define ZEXTERN extern
223#endif
224
225#ifndef FAR
226#   define FAR
227#endif
228
229#if !defined(MACOS) && !defined(TARGET_OS_MAC)
230typedef unsigned char  Byte;  /* 8 bits */
231#endif
232typedef unsigned int   uInt;  /* 16 bits or more */
233typedef unsigned long  uLong; /* 32 bits or more */
234
235#ifdef SMALL_MEDIUM
236   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
237#  define Bytef Byte FAR
238#else
239   typedef Byte  FAR Bytef;
240#endif
241typedef char  FAR charf;
242typedef int   FAR intf;
243typedef uInt  FAR uIntf;
244typedef uLong FAR uLongf;
245
246#ifdef STDC
247   typedef void FAR *voidpf;
248   typedef void     *voidp;
249#else
250   typedef Byte FAR *voidpf;
251   typedef Byte     *voidp;
252#endif
253
254#ifdef HAVE_UNISTD_H
255#  include <sys/types.h> /* for off_t */
256#  include <unistd.h>    /* for SEEK_* and off_t */
257#  define z_off_t  off_t
258#endif
259#ifndef SEEK_SET
260#  define SEEK_SET        0       /* Seek from beginning of file.  */
261#  define SEEK_CUR        1       /* Seek from current position.  */
262#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
263#endif
264#ifndef z_off_t
265#  define  z_off_t long
266#endif
267
268/* MVS linker does not support external names larger than 8 bytes */
269#if defined(__MVS__)
270#   pragma map(deflateInit_,"DEIN")
271#   pragma map(deflateInit2_,"DEIN2")
272#   pragma map(deflateEnd,"DEEND")
273#   pragma map(inflateInit_,"ININ")
274#   pragma map(inflateInit2_,"ININ2")
275#   pragma map(inflateEnd,"INEND")
276#   pragma map(inflateSync,"INSY")
277#   pragma map(inflateSetDictionary,"INSEDI")
278#   pragma map(inflate_blocks,"INBL")
279#   pragma map(inflate_blocks_new,"INBLNE")
280#   pragma map(inflate_blocks_free,"INBLFR")
281#   pragma map(inflate_blocks_reset,"INBLRE")
282#   pragma map(inflate_codes_free,"INCOFR")
283#   pragma map(inflate_codes,"INCO")
284#   pragma map(inflate_fast,"INFA")
285#   pragma map(inflate_flush,"INFLU")
286#   pragma map(inflate_mask,"INMA")
287#   pragma map(inflate_set_dictionary,"INSEDI2")
288#   pragma map(inflate_copyright,"INCOPY")
289#   pragma map(inflate_trees_bits,"INTRBI")
290#   pragma map(inflate_trees_dynamic,"INTRDY")
291#   pragma map(inflate_trees_fixed,"INTRFI")
292#   pragma map(inflate_trees_free,"INTRFR")
293#endif
294
295#endif /* _ZCONF_H */
Note: See TracBrowser for help on using the repository browser.