annotate lib/libpng/pngconf.h @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents 5e2e171c6911
children
rev   line source
2297
Ritor1
parents:
diff changeset
1
Ritor1
parents:
diff changeset
2 /* pngconf.h - machine configurable file for libpng
Ritor1
parents:
diff changeset
3 *
Ritor1
parents:
diff changeset
4 * libpng version 1.6.10 - March 6, 2014
Ritor1
parents:
diff changeset
5 *
Ritor1
parents:
diff changeset
6 * Copyright (c) 1998-2013 Glenn Randers-Pehrson
Ritor1
parents:
diff changeset
7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
Ritor1
parents:
diff changeset
8 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
Ritor1
parents:
diff changeset
9 *
Ritor1
parents:
diff changeset
10 * This code is released under the libpng license.
Ritor1
parents:
diff changeset
11 * For conditions of distribution and use, see the disclaimer
Ritor1
parents:
diff changeset
12 * and license in png.h
Ritor1
parents:
diff changeset
13 *
Ritor1
parents:
diff changeset
14 */
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16 /* Any machine specific code is near the front of this file, so if you
Ritor1
parents:
diff changeset
17 * are configuring libpng for a machine, you may want to read the section
Ritor1
parents:
diff changeset
18 * starting here down to where it starts to typedef png_color, png_text,
Ritor1
parents:
diff changeset
19 * and png_info.
Ritor1
parents:
diff changeset
20 */
Ritor1
parents:
diff changeset
21
Ritor1
parents:
diff changeset
22 #ifndef PNGCONF_H
Ritor1
parents:
diff changeset
23 #define PNGCONF_H
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25 /* To do: Do all of this in scripts/pnglibconf.dfa */
Ritor1
parents:
diff changeset
26 #ifdef PNG_SAFE_LIMITS_SUPPORTED
Ritor1
parents:
diff changeset
27 # ifdef PNG_USER_WIDTH_MAX
Ritor1
parents:
diff changeset
28 # undef PNG_USER_WIDTH_MAX
Ritor1
parents:
diff changeset
29 # define PNG_USER_WIDTH_MAX 1000000L
Ritor1
parents:
diff changeset
30 # endif
Ritor1
parents:
diff changeset
31 # ifdef PNG_USER_HEIGHT_MAX
Ritor1
parents:
diff changeset
32 # undef PNG_USER_HEIGHT_MAX
Ritor1
parents:
diff changeset
33 # define PNG_USER_HEIGHT_MAX 1000000L
Ritor1
parents:
diff changeset
34 # endif
Ritor1
parents:
diff changeset
35 # ifdef PNG_USER_CHUNK_MALLOC_MAX
Ritor1
parents:
diff changeset
36 # undef PNG_USER_CHUNK_MALLOC_MAX
Ritor1
parents:
diff changeset
37 # define PNG_USER_CHUNK_MALLOC_MAX 4000000L
Ritor1
parents:
diff changeset
38 # endif
Ritor1
parents:
diff changeset
39 # ifdef PNG_USER_CHUNK_CACHE_MAX
Ritor1
parents:
diff changeset
40 # undef PNG_USER_CHUNK_CACHE_MAX
Ritor1
parents:
diff changeset
41 # define PNG_USER_CHUNK_CACHE_MAX 128
Ritor1
parents:
diff changeset
42 # endif
Ritor1
parents:
diff changeset
43 #endif
Ritor1
parents:
diff changeset
44
Ritor1
parents:
diff changeset
45 #ifndef PNG_BUILDING_SYMBOL_TABLE /* else includes may cause problems */
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47 /* From libpng 1.6.0 libpng requires an ANSI X3.159-1989 ("ISOC90") compliant C
Ritor1
parents:
diff changeset
48 * compiler for correct compilation. The following header files are required by
Ritor1
parents:
diff changeset
49 * the standard. If your compiler doesn't provide these header files, or they
Ritor1
parents:
diff changeset
50 * do not match the standard, you will need to provide/improve them.
Ritor1
parents:
diff changeset
51 */
Ritor1
parents:
diff changeset
52 #include <limits.h>
Ritor1
parents:
diff changeset
53 #include <stddef.h>
Ritor1
parents:
diff changeset
54
Ritor1
parents:
diff changeset
55 /* Library header files. These header files are all defined by ISOC90; libpng
Ritor1
parents:
diff changeset
56 * expects conformant implementations, however, an ISOC90 conformant system need
Ritor1
parents:
diff changeset
57 * not provide these header files if the functionality cannot be implemented.
Ritor1
parents:
diff changeset
58 * In this case it will be necessary to disable the relevant parts of libpng in
Ritor1
parents:
diff changeset
59 * the build of pnglibconf.h.
Ritor1
parents:
diff changeset
60 *
Ritor1
parents:
diff changeset
61 * Prior to 1.6.0 string.h was included here; the API changes in 1.6.0 to not
Ritor1
parents:
diff changeset
62 * include this unnecessary header file.
Ritor1
parents:
diff changeset
63 */
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65 #ifdef PNG_STDIO_SUPPORTED
Ritor1
parents:
diff changeset
66 /* Required for the definition of FILE: */
Ritor1
parents:
diff changeset
67 # include <stdio.h>
Ritor1
parents:
diff changeset
68 #endif
Ritor1
parents:
diff changeset
69
Ritor1
parents:
diff changeset
70 #ifdef PNG_SETJMP_SUPPORTED
Ritor1
parents:
diff changeset
71 /* Required for the definition of jmp_buf and the declaration of longjmp: */
Ritor1
parents:
diff changeset
72 # include <setjmp.h>
Ritor1
parents:
diff changeset
73 #endif
Ritor1
parents:
diff changeset
74
Ritor1
parents:
diff changeset
75 #ifdef PNG_CONVERT_tIME_SUPPORTED
Ritor1
parents:
diff changeset
76 /* Required for struct tm: */
Ritor1
parents:
diff changeset
77 # include <time.h>
Ritor1
parents:
diff changeset
78 #endif
Ritor1
parents:
diff changeset
79
Ritor1
parents:
diff changeset
80 #endif /* PNG_BUILDING_SYMBOL_TABLE */
Ritor1
parents:
diff changeset
81
Ritor1
parents:
diff changeset
82 /* Prior to 1.6.0 it was possible to turn off 'const' in declarations using
Ritor1
parents:
diff changeset
83 * PNG_NO_CONST; this is no longer supported except for data declarations which
Ritor1
parents:
diff changeset
84 * apparently still cause problems in 2011 on some compilers.
Ritor1
parents:
diff changeset
85 */
Ritor1
parents:
diff changeset
86 #define PNG_CONST const /* backward compatibility only */
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88 /* This controls optimization of the reading of 16 and 32 bit values
Ritor1
parents:
diff changeset
89 * from PNG files. It can be set on a per-app-file basis - it
Ritor1
parents:
diff changeset
90 * just changes whether a macro is used when the function is called.
Ritor1
parents:
diff changeset
91 * The library builder sets the default; if read functions are not
Ritor1
parents:
diff changeset
92 * built into the library the macro implementation is forced on.
Ritor1
parents:
diff changeset
93 */
Ritor1
parents:
diff changeset
94 #ifndef PNG_READ_INT_FUNCTIONS_SUPPORTED
Ritor1
parents:
diff changeset
95 # define PNG_USE_READ_MACROS
Ritor1
parents:
diff changeset
96 #endif
Ritor1
parents:
diff changeset
97 #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS)
Ritor1
parents:
diff changeset
98 # if PNG_DEFAULT_READ_MACROS
Ritor1
parents:
diff changeset
99 # define PNG_USE_READ_MACROS
Ritor1
parents:
diff changeset
100 # endif
Ritor1
parents:
diff changeset
101 #endif
Ritor1
parents:
diff changeset
102
Ritor1
parents:
diff changeset
103 /* COMPILER SPECIFIC OPTIONS.
Ritor1
parents:
diff changeset
104 *
Ritor1
parents:
diff changeset
105 * These options are provided so that a variety of difficult compilers
Ritor1
parents:
diff changeset
106 * can be used. Some are fixed at build time (e.g. PNG_API_RULE
Ritor1
parents:
diff changeset
107 * below) but still have compiler specific implementations, others
Ritor1
parents:
diff changeset
108 * may be changed on a per-file basis when compiling against libpng.
Ritor1
parents:
diff changeset
109 */
Ritor1
parents:
diff changeset
110
Ritor1
parents:
diff changeset
111 /* The PNGARG macro was used in versions of libpng prior to 1.6.0 to protect
Ritor1
parents:
diff changeset
112 * against legacy (pre ISOC90) compilers that did not understand function
Ritor1
parents:
diff changeset
113 * prototypes. It is not required for modern C compilers.
Ritor1
parents:
diff changeset
114 */
Ritor1
parents:
diff changeset
115 #ifndef PNGARG
Ritor1
parents:
diff changeset
116 # define PNGARG(arglist) arglist
Ritor1
parents:
diff changeset
117 #endif
Ritor1
parents:
diff changeset
118
Ritor1
parents:
diff changeset
119 /* Function calling conventions.
Ritor1
parents:
diff changeset
120 * =============================
Ritor1
parents:
diff changeset
121 * Normally it is not necessary to specify to the compiler how to call
Ritor1
parents:
diff changeset
122 * a function - it just does it - however on x86 systems derived from
Ritor1
parents:
diff changeset
123 * Microsoft and Borland C compilers ('IBM PC', 'DOS', 'Windows' systems
Ritor1
parents:
diff changeset
124 * and some others) there are multiple ways to call a function and the
Ritor1
parents:
diff changeset
125 * default can be changed on the compiler command line. For this reason
Ritor1
parents:
diff changeset
126 * libpng specifies the calling convention of every exported function and
Ritor1
parents:
diff changeset
127 * every function called via a user supplied function pointer. This is
Ritor1
parents:
diff changeset
128 * done in this file by defining the following macros:
Ritor1
parents:
diff changeset
129 *
Ritor1
parents:
diff changeset
130 * PNGAPI Calling convention for exported functions.
Ritor1
parents:
diff changeset
131 * PNGCBAPI Calling convention for user provided (callback) functions.
Ritor1
parents:
diff changeset
132 * PNGCAPI Calling convention used by the ANSI-C library (required
Ritor1
parents:
diff changeset
133 * for longjmp callbacks and sometimes used internally to
Ritor1
parents:
diff changeset
134 * specify the calling convention for zlib).
Ritor1
parents:
diff changeset
135 *
Ritor1
parents:
diff changeset
136 * These macros should never be overridden. If it is necessary to
Ritor1
parents:
diff changeset
137 * change calling convention in a private build this can be done
Ritor1
parents:
diff changeset
138 * by setting PNG_API_RULE (which defaults to 0) to one of the values
Ritor1
parents:
diff changeset
139 * below to select the correct 'API' variants.
Ritor1
parents:
diff changeset
140 *
Ritor1
parents:
diff changeset
141 * PNG_API_RULE=0 Use PNGCAPI - the 'C' calling convention - throughout.
Ritor1
parents:
diff changeset
142 * This is correct in every known environment.
Ritor1
parents:
diff changeset
143 * PNG_API_RULE=1 Use the operating system convention for PNGAPI and
Ritor1
parents:
diff changeset
144 * the 'C' calling convention (from PNGCAPI) for
Ritor1
parents:
diff changeset
145 * callbacks (PNGCBAPI). This is no longer required
Ritor1
parents:
diff changeset
146 * in any known environment - if it has to be used
Ritor1
parents:
diff changeset
147 * please post an explanation of the problem to the
Ritor1
parents:
diff changeset
148 * libpng mailing list.
Ritor1
parents:
diff changeset
149 *
Ritor1
parents:
diff changeset
150 * These cases only differ if the operating system does not use the C
Ritor1
parents:
diff changeset
151 * calling convention, at present this just means the above cases
Ritor1
parents:
diff changeset
152 * (x86 DOS/Windows sytems) and, even then, this does not apply to
Ritor1
parents:
diff changeset
153 * Cygwin running on those systems.
Ritor1
parents:
diff changeset
154 *
Ritor1
parents:
diff changeset
155 * Note that the value must be defined in pnglibconf.h so that what
Ritor1
parents:
diff changeset
156 * the application uses to call the library matches the conventions
Ritor1
parents:
diff changeset
157 * set when building the library.
Ritor1
parents:
diff changeset
158 */
Ritor1
parents:
diff changeset
159
Ritor1
parents:
diff changeset
160 /* Symbol export
Ritor1
parents:
diff changeset
161 * =============
Ritor1
parents:
diff changeset
162 * When building a shared library it is almost always necessary to tell
Ritor1
parents:
diff changeset
163 * the compiler which symbols to export. The png.h macro 'PNG_EXPORT'
Ritor1
parents:
diff changeset
164 * is used to mark the symbols. On some systems these symbols can be
Ritor1
parents:
diff changeset
165 * extracted at link time and need no special processing by the compiler,
Ritor1
parents:
diff changeset
166 * on other systems the symbols are flagged by the compiler and just
Ritor1
parents:
diff changeset
167 * the declaration requires a special tag applied (unfortunately) in a
Ritor1
parents:
diff changeset
168 * compiler dependent way. Some systems can do either.
Ritor1
parents:
diff changeset
169 *
Ritor1
parents:
diff changeset
170 * A small number of older systems also require a symbol from a DLL to
Ritor1
parents:
diff changeset
171 * be flagged to the program that calls it. This is a problem because
Ritor1
parents:
diff changeset
172 * we do not know in the header file included by application code that
Ritor1
parents:
diff changeset
173 * the symbol will come from a shared library, as opposed to a statically
Ritor1
parents:
diff changeset
174 * linked one. For this reason the application must tell us by setting
Ritor1
parents:
diff changeset
175 * the magic flag PNG_USE_DLL to turn on the special processing before
Ritor1
parents:
diff changeset
176 * it includes png.h.
Ritor1
parents:
diff changeset
177 *
Ritor1
parents:
diff changeset
178 * Four additional macros are used to make this happen:
Ritor1
parents:
diff changeset
179 *
Ritor1
parents:
diff changeset
180 * PNG_IMPEXP The magic (if any) to cause a symbol to be exported from
Ritor1
parents:
diff changeset
181 * the build or imported if PNG_USE_DLL is set - compiler
Ritor1
parents:
diff changeset
182 * and system specific.
Ritor1
parents:
diff changeset
183 *
Ritor1
parents:
diff changeset
184 * PNG_EXPORT_TYPE(type) A macro that pre or appends PNG_IMPEXP to
Ritor1
parents:
diff changeset
185 * 'type', compiler specific.
Ritor1
parents:
diff changeset
186 *
Ritor1
parents:
diff changeset
187 * PNG_DLL_EXPORT Set to the magic to use during a libpng build to
Ritor1
parents:
diff changeset
188 * make a symbol exported from the DLL. Not used in the
Ritor1
parents:
diff changeset
189 * public header files; see pngpriv.h for how it is used
Ritor1
parents:
diff changeset
190 * in the libpng build.
Ritor1
parents:
diff changeset
191 *
Ritor1
parents:
diff changeset
192 * PNG_DLL_IMPORT Set to the magic to force the libpng symbols to come
Ritor1
parents:
diff changeset
193 * from a DLL - used to define PNG_IMPEXP when
Ritor1
parents:
diff changeset
194 * PNG_USE_DLL is set.
Ritor1
parents:
diff changeset
195 */
Ritor1
parents:
diff changeset
196
Ritor1
parents:
diff changeset
197 /* System specific discovery.
Ritor1
parents:
diff changeset
198 * ==========================
Ritor1
parents:
diff changeset
199 * This code is used at build time to find PNG_IMPEXP, the API settings
Ritor1
parents:
diff changeset
200 * and PNG_EXPORT_TYPE(), it may also set a macro to indicate the DLL
Ritor1
parents:
diff changeset
201 * import processing is possible. On Windows systems it also sets
Ritor1
parents:
diff changeset
202 * compiler-specific macros to the values required to change the calling
Ritor1
parents:
diff changeset
203 * conventions of the various functions.
Ritor1
parents:
diff changeset
204 */
Ritor1
parents:
diff changeset
205 #if defined(_Windows) || defined(_WINDOWS) || defined(WIN32) ||\
Ritor1
parents:
diff changeset
206 defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
Ritor1
parents:
diff changeset
207 /* Windows system (DOS doesn't support DLLs). Includes builds under Cygwin or
Ritor1
parents:
diff changeset
208 * MinGW on any architecture currently supported by Windows. Also includes
Ritor1
parents:
diff changeset
209 * Watcom builds but these need special treatment because they are not
Ritor1
parents:
diff changeset
210 * compatible with GCC or Visual C because of different calling conventions.
Ritor1
parents:
diff changeset
211 */
Ritor1
parents:
diff changeset
212 # if PNG_API_RULE == 2
Ritor1
parents:
diff changeset
213 /* If this line results in an error, either because __watcall is not
Ritor1
parents:
diff changeset
214 * understood or because of a redefine just below you cannot use *this*
Ritor1
parents:
diff changeset
215 * build of the library with the compiler you are using. *This* build was
Ritor1
parents:
diff changeset
216 * build using Watcom and applications must also be built using Watcom!
Ritor1
parents:
diff changeset
217 */
Ritor1
parents:
diff changeset
218 # define PNGCAPI __watcall
Ritor1
parents:
diff changeset
219 # endif
Ritor1
parents:
diff changeset
220
Ritor1
parents:
diff changeset
221 # if defined(__GNUC__) || (defined(_MSC_VER) && (_MSC_VER >= 800))
Ritor1
parents:
diff changeset
222 # define PNGCAPI __cdecl
Ritor1
parents:
diff changeset
223 # if PNG_API_RULE == 1
Ritor1
parents:
diff changeset
224 /* If this line results in an error __stdcall is not understood and
Ritor1
parents:
diff changeset
225 * PNG_API_RULE should not have been set to '1'.
Ritor1
parents:
diff changeset
226 */
Ritor1
parents:
diff changeset
227 # define PNGAPI __stdcall
Ritor1
parents:
diff changeset
228 # endif
Ritor1
parents:
diff changeset
229 # else
Ritor1
parents:
diff changeset
230 /* An older compiler, or one not detected (erroneously) above,
Ritor1
parents:
diff changeset
231 * if necessary override on the command line to get the correct
Ritor1
parents:
diff changeset
232 * variants for the compiler.
Ritor1
parents:
diff changeset
233 */
Ritor1
parents:
diff changeset
234 # ifndef PNGCAPI
Ritor1
parents:
diff changeset
235 # define PNGCAPI _cdecl
Ritor1
parents:
diff changeset
236 # endif
Ritor1
parents:
diff changeset
237 # if PNG_API_RULE == 1 && !defined(PNGAPI)
Ritor1
parents:
diff changeset
238 # define PNGAPI _stdcall
Ritor1
parents:
diff changeset
239 # endif
Ritor1
parents:
diff changeset
240 # endif /* compiler/api */
Ritor1
parents:
diff changeset
241
Ritor1
parents:
diff changeset
242 /* NOTE: PNGCBAPI always defaults to PNGCAPI. */
Ritor1
parents:
diff changeset
243
Ritor1
parents:
diff changeset
244 # if defined(PNGAPI) && !defined(PNG_USER_PRIVATEBUILD)
Ritor1
parents:
diff changeset
245 # error "PNG_USER_PRIVATEBUILD must be defined if PNGAPI is changed"
Ritor1
parents:
diff changeset
246 # endif
Ritor1
parents:
diff changeset
247
Ritor1
parents:
diff changeset
248 # if (defined(_MSC_VER) && _MSC_VER < 800) ||\
Ritor1
parents:
diff changeset
249 (defined(__BORLANDC__) && __BORLANDC__ < 0x500)
Ritor1
parents:
diff changeset
250 /* older Borland and MSC
Ritor1
parents:
diff changeset
251 * compilers used '__export' and required this to be after
Ritor1
parents:
diff changeset
252 * the type.
Ritor1
parents:
diff changeset
253 */
Ritor1
parents:
diff changeset
254 # ifndef PNG_EXPORT_TYPE
Ritor1
parents:
diff changeset
255 # define PNG_EXPORT_TYPE(type) type PNG_IMPEXP
Ritor1
parents:
diff changeset
256 # endif
Ritor1
parents:
diff changeset
257 # define PNG_DLL_EXPORT __export
Ritor1
parents:
diff changeset
258 # else /* newer compiler */
Ritor1
parents:
diff changeset
259 # define PNG_DLL_EXPORT __declspec(dllexport)
Ritor1
parents:
diff changeset
260 # ifndef PNG_DLL_IMPORT
Ritor1
parents:
diff changeset
261 # define PNG_DLL_IMPORT __declspec(dllimport)
Ritor1
parents:
diff changeset
262 # endif
Ritor1
parents:
diff changeset
263 # endif /* compiler */
Ritor1
parents:
diff changeset
264
Ritor1
parents:
diff changeset
265 #else /* !Windows */
Ritor1
parents:
diff changeset
266 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__)
Ritor1
parents:
diff changeset
267 # define PNGAPI _System
Ritor1
parents:
diff changeset
268 # else /* !Windows/x86 && !OS/2 */
Ritor1
parents:
diff changeset
269 /* Use the defaults, or define PNG*API on the command line (but
Ritor1
parents:
diff changeset
270 * this will have to be done for every compile!)
Ritor1
parents:
diff changeset
271 */
Ritor1
parents:
diff changeset
272 # endif /* other system, !OS/2 */
Ritor1
parents:
diff changeset
273 #endif /* !Windows/x86 */
Ritor1
parents:
diff changeset
274
Ritor1
parents:
diff changeset
275 /* Now do all the defaulting . */
Ritor1
parents:
diff changeset
276 #ifndef PNGCAPI
Ritor1
parents:
diff changeset
277 # define PNGCAPI
Ritor1
parents:
diff changeset
278 #endif
Ritor1
parents:
diff changeset
279 #ifndef PNGCBAPI
Ritor1
parents:
diff changeset
280 # define PNGCBAPI PNGCAPI
Ritor1
parents:
diff changeset
281 #endif
Ritor1
parents:
diff changeset
282 #ifndef PNGAPI
Ritor1
parents:
diff changeset
283 # define PNGAPI PNGCAPI
Ritor1
parents:
diff changeset
284 #endif
Ritor1
parents:
diff changeset
285
Ritor1
parents:
diff changeset
286 /* PNG_IMPEXP may be set on the compilation system command line or (if not set)
Ritor1
parents:
diff changeset
287 * then in an internal header file when building the library, otherwise (when
Ritor1
parents:
diff changeset
288 * using the library) it is set here.
Ritor1
parents:
diff changeset
289 */
Ritor1
parents:
diff changeset
290 #ifndef PNG_IMPEXP
Ritor1
parents:
diff changeset
291 # if defined(PNG_USE_DLL) && defined(PNG_DLL_IMPORT)
Ritor1
parents:
diff changeset
292 /* This forces use of a DLL, disallowing static linking */
Ritor1
parents:
diff changeset
293 # define PNG_IMPEXP PNG_DLL_IMPORT
Ritor1
parents:
diff changeset
294 # endif
Ritor1
parents:
diff changeset
295
Ritor1
parents:
diff changeset
296 # ifndef PNG_IMPEXP
Ritor1
parents:
diff changeset
297 # define PNG_IMPEXP
Ritor1
parents:
diff changeset
298 # endif
Ritor1
parents:
diff changeset
299 #endif
Ritor1
parents:
diff changeset
300
Ritor1
parents:
diff changeset
301 /* In 1.5.2 the definition of PNG_FUNCTION has been changed to always treat
Ritor1
parents:
diff changeset
302 * 'attributes' as a storage class - the attributes go at the start of the
Ritor1
parents:
diff changeset
303 * function definition, and attributes are always appended regardless of the
Ritor1
parents:
diff changeset
304 * compiler. This considerably simplifies these macros but may cause problems
Ritor1
parents:
diff changeset
305 * if any compilers both need function attributes and fail to handle them as
Ritor1
parents:
diff changeset
306 * a storage class (this is unlikely.)
Ritor1
parents:
diff changeset
307 */
Ritor1
parents:
diff changeset
308 #ifndef PNG_FUNCTION
Ritor1
parents:
diff changeset
309 # define PNG_FUNCTION(type, name, args, attributes) attributes type name args
Ritor1
parents:
diff changeset
310 #endif
Ritor1
parents:
diff changeset
311
Ritor1
parents:
diff changeset
312 #ifndef PNG_EXPORT_TYPE
Ritor1
parents:
diff changeset
313 # define PNG_EXPORT_TYPE(type) PNG_IMPEXP type
Ritor1
parents:
diff changeset
314 #endif
Ritor1
parents:
diff changeset
315
Ritor1
parents:
diff changeset
316 /* The ordinal value is only relevant when preprocessing png.h for symbol
Ritor1
parents:
diff changeset
317 * table entries, so we discard it here. See the .dfn files in the
Ritor1
parents:
diff changeset
318 * scripts directory.
Ritor1
parents:
diff changeset
319 */
Ritor1
parents:
diff changeset
320 #ifndef PNG_EXPORTA
Ritor1
parents:
diff changeset
321
Ritor1
parents:
diff changeset
322 # define PNG_EXPORTA(ordinal, type, name, args, attributes)\
Ritor1
parents:
diff changeset
323 PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args), \
Ritor1
parents:
diff changeset
324 extern attributes)
Ritor1
parents:
diff changeset
325 #endif
Ritor1
parents:
diff changeset
326
Ritor1
parents:
diff changeset
327 /* ANSI-C (C90) does not permit a macro to be invoked with an empty argument,
Ritor1
parents:
diff changeset
328 * so make something non-empty to satisfy the requirement:
Ritor1
parents:
diff changeset
329 */
Ritor1
parents:
diff changeset
330 #define PNG_EMPTY /*empty list*/
Ritor1
parents:
diff changeset
331
Ritor1
parents:
diff changeset
332 #define PNG_EXPORT(ordinal, type, name, args)\
Ritor1
parents:
diff changeset
333 PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
Ritor1
parents:
diff changeset
334
Ritor1
parents:
diff changeset
335 /* Use PNG_REMOVED to comment out a removed interface. */
Ritor1
parents:
diff changeset
336 #ifndef PNG_REMOVED
Ritor1
parents:
diff changeset
337 # define PNG_REMOVED(ordinal, type, name, args, attributes)
Ritor1
parents:
diff changeset
338 #endif
Ritor1
parents:
diff changeset
339
Ritor1
parents:
diff changeset
340 #ifndef PNG_CALLBACK
Ritor1
parents:
diff changeset
341 # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) PNGARG(args)
Ritor1
parents:
diff changeset
342 #endif
Ritor1
parents:
diff changeset
343
Ritor1
parents:
diff changeset
344 /* Support for compiler specific function attributes. These are used
Ritor1
parents:
diff changeset
345 * so that where compiler support is available incorrect use of API
Ritor1
parents:
diff changeset
346 * functions in png.h will generate compiler warnings.
Ritor1
parents:
diff changeset
347 *
Ritor1
parents:
diff changeset
348 * Added at libpng-1.2.41.
Ritor1
parents:
diff changeset
349 */
Ritor1
parents:
diff changeset
350
Ritor1
parents:
diff changeset
351 #ifndef PNG_NO_PEDANTIC_WARNINGS
Ritor1
parents:
diff changeset
352 # ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED
Ritor1
parents:
diff changeset
353 # define PNG_PEDANTIC_WARNINGS_SUPPORTED
Ritor1
parents:
diff changeset
354 # endif
Ritor1
parents:
diff changeset
355 #endif
Ritor1
parents:
diff changeset
356
Ritor1
parents:
diff changeset
357 #ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED
Ritor1
parents:
diff changeset
358 /* Support for compiler specific function attributes. These are used
Ritor1
parents:
diff changeset
359 * so that where compiler support is available, incorrect use of API
Ritor1
parents:
diff changeset
360 * functions in png.h will generate compiler warnings. Added at libpng
Ritor1
parents:
diff changeset
361 * version 1.2.41. Disabling these removes the warnings but may also produce
Ritor1
parents:
diff changeset
362 * less efficient code.
Ritor1
parents:
diff changeset
363 */
Ritor1
parents:
diff changeset
364 # if defined(__clang__)
Ritor1
parents:
diff changeset
365 /* Clang defines both __clang__ and __GNUC__. Check __clang__ first. */
Ritor1
parents:
diff changeset
366 # if !defined(PNG_USE_RESULT) && __has_attribute(__warn_unused_result__)
Ritor1
parents:
diff changeset
367 # define PNG_USE_RESULT __attribute__((__warn_unused_result__))
Ritor1
parents:
diff changeset
368 # endif
Ritor1
parents:
diff changeset
369 # if !defined(PNG_NORETURN) && __has_attribute(__noreturn__)
Ritor1
parents:
diff changeset
370 # define PNG_NORETURN __attribute__((__noreturn__))
Ritor1
parents:
diff changeset
371 # endif
Ritor1
parents:
diff changeset
372 # if !defined(PNG_ALLOCATED) && __has_attribute(__malloc__)
Ritor1
parents:
diff changeset
373 # define PNG_ALLOCATED __attribute__((__malloc__))
Ritor1
parents:
diff changeset
374 # endif
Ritor1
parents:
diff changeset
375 # if !defined(PNG_DEPRECATED) && __has_attribute(__deprecated__)
Ritor1
parents:
diff changeset
376 # define PNG_DEPRECATED __attribute__((__deprecated__))
Ritor1
parents:
diff changeset
377 # endif
Ritor1
parents:
diff changeset
378 # if !defined(PNG_PRIVATE)
Ritor1
parents:
diff changeset
379 # ifdef __has_extension
Ritor1
parents:
diff changeset
380 # if __has_extension(attribute_unavailable_with_message)
Ritor1
parents:
diff changeset
381 # define PNG_PRIVATE __attribute__((__unavailable__(\
Ritor1
parents:
diff changeset
382 "This function is not exported by libpng.")))
Ritor1
parents:
diff changeset
383 # endif
Ritor1
parents:
diff changeset
384 # endif
Ritor1
parents:
diff changeset
385 # endif
Ritor1
parents:
diff changeset
386 # ifndef PNG_RESTRICT
Ritor1
parents:
diff changeset
387 # define PNG_RESTRICT __restrict
Ritor1
parents:
diff changeset
388 # endif
Ritor1
parents:
diff changeset
389
Ritor1
parents:
diff changeset
390 # elif defined(__GNUC__)
Ritor1
parents:
diff changeset
391 # ifndef PNG_USE_RESULT
Ritor1
parents:
diff changeset
392 # define PNG_USE_RESULT __attribute__((__warn_unused_result__))
Ritor1
parents:
diff changeset
393 # endif
Ritor1
parents:
diff changeset
394 # ifndef PNG_NORETURN
Ritor1
parents:
diff changeset
395 # define PNG_NORETURN __attribute__((__noreturn__))
Ritor1
parents:
diff changeset
396 # endif
Ritor1
parents:
diff changeset
397 # if __GNUC__ >= 3
Ritor1
parents:
diff changeset
398 # ifndef PNG_ALLOCATED
Ritor1
parents:
diff changeset
399 # define PNG_ALLOCATED __attribute__((__malloc__))
Ritor1
parents:
diff changeset
400 # endif
Ritor1
parents:
diff changeset
401 # ifndef PNG_DEPRECATED
Ritor1
parents:
diff changeset
402 # define PNG_DEPRECATED __attribute__((__deprecated__))
Ritor1
parents:
diff changeset
403 # endif
Ritor1
parents:
diff changeset
404 # ifndef PNG_PRIVATE
Ritor1
parents:
diff changeset
405 # if 0 /* Doesn't work so we use deprecated instead*/
Ritor1
parents:
diff changeset
406 # define PNG_PRIVATE \
Ritor1
parents:
diff changeset
407 __attribute__((warning("This function is not exported by libpng.")))
Ritor1
parents:
diff changeset
408 # else
Ritor1
parents:
diff changeset
409 # define PNG_PRIVATE \
Ritor1
parents:
diff changeset
410 __attribute__((__deprecated__))
Ritor1
parents:
diff changeset
411 # endif
Ritor1
parents:
diff changeset
412 # endif
Ritor1
parents:
diff changeset
413 # if ((__GNUC__ > 3) || !defined(__GNUC_MINOR__) || (__GNUC_MINOR__ >= 1))
Ritor1
parents:
diff changeset
414 # ifndef PNG_RESTRICT
Ritor1
parents:
diff changeset
415 # define PNG_RESTRICT __restrict
Ritor1
parents:
diff changeset
416 # endif
Ritor1
parents:
diff changeset
417 # endif /* __GNUC__.__GNUC_MINOR__ > 3.0 */
Ritor1
parents:
diff changeset
418 # endif /* __GNUC__ >= 3 */
Ritor1
parents:
diff changeset
419
Ritor1
parents:
diff changeset
420 # elif defined(_MSC_VER) && (_MSC_VER >= 1300)
Ritor1
parents:
diff changeset
421 # ifndef PNG_USE_RESULT
Ritor1
parents:
diff changeset
422 # define PNG_USE_RESULT /* not supported */
Ritor1
parents:
diff changeset
423 # endif
Ritor1
parents:
diff changeset
424 # ifndef PNG_NORETURN
Ritor1
parents:
diff changeset
425 # define PNG_NORETURN __declspec(noreturn)
Ritor1
parents:
diff changeset
426 # endif
Ritor1
parents:
diff changeset
427 # ifndef PNG_ALLOCATED
Ritor1
parents:
diff changeset
428 # if (_MSC_VER >= 1400)
Ritor1
parents:
diff changeset
429 # define PNG_ALLOCATED __declspec(restrict)
Ritor1
parents:
diff changeset
430 # endif
Ritor1
parents:
diff changeset
431 # endif
Ritor1
parents:
diff changeset
432 # ifndef PNG_DEPRECATED
Ritor1
parents:
diff changeset
433 # define PNG_DEPRECATED __declspec(deprecated)
Ritor1
parents:
diff changeset
434 # endif
Ritor1
parents:
diff changeset
435 # ifndef PNG_PRIVATE
Ritor1
parents:
diff changeset
436 # define PNG_PRIVATE __declspec(deprecated)
Ritor1
parents:
diff changeset
437 # endif
Ritor1
parents:
diff changeset
438 # ifndef PNG_RESTRICT
Ritor1
parents:
diff changeset
439 # if (_MSC_VER >= 1400)
Ritor1
parents:
diff changeset
440 # define PNG_RESTRICT __restrict
Ritor1
parents:
diff changeset
441 # endif
Ritor1
parents:
diff changeset
442 # endif
Ritor1
parents:
diff changeset
443
Ritor1
parents:
diff changeset
444 # elif defined(__WATCOMC__)
Ritor1
parents:
diff changeset
445 # ifndef PNG_RESTRICT
Ritor1
parents:
diff changeset
446 # define PNG_RESTRICT __restrict
Ritor1
parents:
diff changeset
447 # endif
Ritor1
parents:
diff changeset
448 # endif
Ritor1
parents:
diff changeset
449 #endif /* PNG_PEDANTIC_WARNINGS */
Ritor1
parents:
diff changeset
450
Ritor1
parents:
diff changeset
451 #ifndef PNG_DEPRECATED
Ritor1
parents:
diff changeset
452 # define PNG_DEPRECATED /* Use of this function is deprecated */
Ritor1
parents:
diff changeset
453 #endif
Ritor1
parents:
diff changeset
454 #ifndef PNG_USE_RESULT
Ritor1
parents:
diff changeset
455 # define PNG_USE_RESULT /* The result of this function must be checked */
Ritor1
parents:
diff changeset
456 #endif
Ritor1
parents:
diff changeset
457 #ifndef PNG_NORETURN
Ritor1
parents:
diff changeset
458 # define PNG_NORETURN /* This function does not return */
Ritor1
parents:
diff changeset
459 #endif
Ritor1
parents:
diff changeset
460 #ifndef PNG_ALLOCATED
Ritor1
parents:
diff changeset
461 # define PNG_ALLOCATED /* The result of the function is new memory */
Ritor1
parents:
diff changeset
462 #endif
Ritor1
parents:
diff changeset
463 #ifndef PNG_PRIVATE
Ritor1
parents:
diff changeset
464 # define PNG_PRIVATE /* This is a private libpng function */
Ritor1
parents:
diff changeset
465 #endif
Ritor1
parents:
diff changeset
466 #ifndef PNG_RESTRICT
Ritor1
parents:
diff changeset
467 # define PNG_RESTRICT /* The C99 "restrict" feature */
Ritor1
parents:
diff changeset
468 #endif
Ritor1
parents:
diff changeset
469
Ritor1
parents:
diff changeset
470 #ifndef PNG_FP_EXPORT /* A floating point API. */
Ritor1
parents:
diff changeset
471 # ifdef PNG_FLOATING_POINT_SUPPORTED
Ritor1
parents:
diff changeset
472 # define PNG_FP_EXPORT(ordinal, type, name, args)\
Ritor1
parents:
diff changeset
473 PNG_EXPORT(ordinal, type, name, args);
Ritor1
parents:
diff changeset
474 # else /* No floating point APIs */
Ritor1
parents:
diff changeset
475 # define PNG_FP_EXPORT(ordinal, type, name, args)
Ritor1
parents:
diff changeset
476 # endif
Ritor1
parents:
diff changeset
477 #endif
Ritor1
parents:
diff changeset
478 #ifndef PNG_FIXED_EXPORT /* A fixed point API. */
Ritor1
parents:
diff changeset
479 # ifdef PNG_FIXED_POINT_SUPPORTED
Ritor1
parents:
diff changeset
480 # define PNG_FIXED_EXPORT(ordinal, type, name, args)\
Ritor1
parents:
diff changeset
481 PNG_EXPORT(ordinal, type, name, args);
Ritor1
parents:
diff changeset
482 # else /* No fixed point APIs */
Ritor1
parents:
diff changeset
483 # define PNG_FIXED_EXPORT(ordinal, type, name, args)
Ritor1
parents:
diff changeset
484 # endif
Ritor1
parents:
diff changeset
485 #endif
Ritor1
parents:
diff changeset
486
Ritor1
parents:
diff changeset
487 #ifndef PNG_BUILDING_SYMBOL_TABLE
Ritor1
parents:
diff changeset
488 /* Some typedefs to get us started. These should be safe on most of the common
Ritor1
parents:
diff changeset
489 * platforms.
Ritor1
parents:
diff changeset
490 *
Ritor1
parents:
diff changeset
491 * png_uint_32 and png_int_32 may, currently, be larger than required to hold a
Ritor1
parents:
diff changeset
492 * 32-bit value however this is not normally advisable.
Ritor1
parents:
diff changeset
493 *
Ritor1
parents:
diff changeset
494 * png_uint_16 and png_int_16 should always be two bytes in size - this is
Ritor1
parents:
diff changeset
495 * verified at library build time.
Ritor1
parents:
diff changeset
496 *
Ritor1
parents:
diff changeset
497 * png_byte must always be one byte in size.
Ritor1
parents:
diff changeset
498 *
Ritor1
parents:
diff changeset
499 * The checks below use constants from limits.h, as defined by the ISOC90
Ritor1
parents:
diff changeset
500 * standard.
Ritor1
parents:
diff changeset
501 */
Ritor1
parents:
diff changeset
502 #if CHAR_BIT == 8 && UCHAR_MAX == 255
Ritor1
parents:
diff changeset
503 typedef unsigned char png_byte;
Ritor1
parents:
diff changeset
504 #else
Ritor1
parents:
diff changeset
505 # error "libpng requires 8 bit bytes"
Ritor1
parents:
diff changeset
506 #endif
Ritor1
parents:
diff changeset
507
Ritor1
parents:
diff changeset
508 #if INT_MIN == -32768 && INT_MAX == 32767
Ritor1
parents:
diff changeset
509 typedef int png_int_16;
Ritor1
parents:
diff changeset
510 #elif SHRT_MIN == -32768 && SHRT_MAX == 32767
Ritor1
parents:
diff changeset
511 typedef short png_int_16;
Ritor1
parents:
diff changeset
512 #else
Ritor1
parents:
diff changeset
513 # error "libpng requires a signed 16 bit type"
Ritor1
parents:
diff changeset
514 #endif
Ritor1
parents:
diff changeset
515
Ritor1
parents:
diff changeset
516 #if UINT_MAX == 65535
Ritor1
parents:
diff changeset
517 typedef unsigned int png_uint_16;
Ritor1
parents:
diff changeset
518 #elif USHRT_MAX == 65535
Ritor1
parents:
diff changeset
519 typedef unsigned short png_uint_16;
Ritor1
parents:
diff changeset
520 #else
Ritor1
parents:
diff changeset
521 # error "libpng requires an unsigned 16 bit type"
Ritor1
parents:
diff changeset
522 #endif
Ritor1
parents:
diff changeset
523
Ritor1
parents:
diff changeset
524 #if INT_MIN < -2147483646 && INT_MAX > 2147483646
Ritor1
parents:
diff changeset
525 typedef int png_int_32;
Ritor1
parents:
diff changeset
526 #elif LONG_MIN < -2147483646 && LONG_MAX > 2147483646
Ritor1
parents:
diff changeset
527 typedef long int png_int_32;
Ritor1
parents:
diff changeset
528 #else
Ritor1
parents:
diff changeset
529 # error "libpng requires a signed 32 bit (or more) type"
Ritor1
parents:
diff changeset
530 #endif
Ritor1
parents:
diff changeset
531
Ritor1
parents:
diff changeset
532 #if UINT_MAX > 4294967294
Ritor1
parents:
diff changeset
533 typedef unsigned int png_uint_32;
Ritor1
parents:
diff changeset
534 #elif ULONG_MAX > 4294967294
Ritor1
parents:
diff changeset
535 typedef unsigned long int png_uint_32;
Ritor1
parents:
diff changeset
536 #else
Ritor1
parents:
diff changeset
537 # error "libpng requires an unsigned 32 bit (or more) type"
Ritor1
parents:
diff changeset
538 #endif
Ritor1
parents:
diff changeset
539
Ritor1
parents:
diff changeset
540 /* Prior to 1.6.0 it was possible to disable the use of size_t, 1.6.0, however,
Ritor1
parents:
diff changeset
541 * requires an ISOC90 compiler and relies on consistent behavior of sizeof.
Ritor1
parents:
diff changeset
542 */
Ritor1
parents:
diff changeset
543 typedef size_t png_size_t;
Ritor1
parents:
diff changeset
544 typedef ptrdiff_t png_ptrdiff_t;
Ritor1
parents:
diff changeset
545
Ritor1
parents:
diff changeset
546 /* libpng needs to know the maximum value of 'size_t' and this controls the
Ritor1
parents:
diff changeset
547 * definition of png_alloc_size_t, below. This maximum value of size_t limits
Ritor1
parents:
diff changeset
548 * but does not control the maximum allocations the library makes - there is
Ritor1
parents:
diff changeset
549 * direct application control of this through png_set_user_limits().
Ritor1
parents:
diff changeset
550 */
Ritor1
parents:
diff changeset
551 #ifndef PNG_SMALL_SIZE_T
Ritor1
parents:
diff changeset
552 /* Compiler specific tests for systems where size_t is known to be less than
Ritor1
parents:
diff changeset
553 * 32 bits (some of these systems may no longer work because of the lack of
Ritor1
parents:
diff changeset
554 * 'far' support; see above.)
Ritor1
parents:
diff changeset
555 */
Ritor1
parents:
diff changeset
556 # if (defined(__TURBOC__) && !defined(__FLAT__)) ||\
Ritor1
parents:
diff changeset
557 (defined(_MSC_VER) && defined(MAXSEG_64K))
Ritor1
parents:
diff changeset
558 # define PNG_SMALL_SIZE_T
Ritor1
parents:
diff changeset
559 # endif
Ritor1
parents:
diff changeset
560 #endif
Ritor1
parents:
diff changeset
561
Ritor1
parents:
diff changeset
562 /* png_alloc_size_t is guaranteed to be no smaller than png_size_t, and no
Ritor1
parents:
diff changeset
563 * smaller than png_uint_32. Casts from png_size_t or png_uint_32 to
Ritor1
parents:
diff changeset
564 * png_alloc_size_t are not necessary; in fact, it is recommended not to use
Ritor1
parents:
diff changeset
565 * them at all so that the compiler can complain when something turns out to be
Ritor1
parents:
diff changeset
566 * problematic.
Ritor1
parents:
diff changeset
567 *
Ritor1
parents:
diff changeset
568 * Casts in the other direction (from png_alloc_size_t to png_size_t or
Ritor1
parents:
diff changeset
569 * png_uint_32) should be explicitly applied; however, we do not expect to
Ritor1
parents:
diff changeset
570 * encounter practical situations that require such conversions.
Ritor1
parents:
diff changeset
571 *
Ritor1
parents:
diff changeset
572 * PNG_SMALL_SIZE_T must be defined if the maximum value of size_t is less than
Ritor1
parents:
diff changeset
573 * 4294967295 - i.e. less than the maximum value of png_uint_32.
Ritor1
parents:
diff changeset
574 */
Ritor1
parents:
diff changeset
575 #ifdef PNG_SMALL_SIZE_T
Ritor1
parents:
diff changeset
576 typedef png_uint_32 png_alloc_size_t;
Ritor1
parents:
diff changeset
577 #else
Ritor1
parents:
diff changeset
578 typedef png_size_t png_alloc_size_t;
Ritor1
parents:
diff changeset
579 #endif
Ritor1
parents:
diff changeset
580
Ritor1
parents:
diff changeset
581 /* Prior to 1.6.0 libpng offered limited support for Microsoft C compiler
Ritor1
parents:
diff changeset
582 * implementations of Intel CPU specific support of user-mode segmented address
Ritor1
parents:
diff changeset
583 * spaces, where 16-bit pointers address more than 65536 bytes of memory using
Ritor1
parents:
diff changeset
584 * separate 'segment' registers. The implementation requires two different
Ritor1
parents:
diff changeset
585 * types of pointer (only one of which includes the segment value.)
Ritor1
parents:
diff changeset
586 *
Ritor1
parents:
diff changeset
587 * If required this support is available in version 1.2 of libpng and may be
Ritor1
parents:
diff changeset
588 * available in versions through 1.5, although the correctness of the code has
Ritor1
parents:
diff changeset
589 * not been verified recently.
Ritor1
parents:
diff changeset
590 */
Ritor1
parents:
diff changeset
591
Ritor1
parents:
diff changeset
592 /* Typedef for floating-point numbers that are converted to fixed-point with a
Ritor1
parents:
diff changeset
593 * multiple of 100,000, e.g., gamma
Ritor1
parents:
diff changeset
594 */
Ritor1
parents:
diff changeset
595 typedef png_int_32 png_fixed_point;
Ritor1
parents:
diff changeset
596
Ritor1
parents:
diff changeset
597 /* Add typedefs for pointers */
Ritor1
parents:
diff changeset
598 typedef void * png_voidp;
Ritor1
parents:
diff changeset
599 typedef const void * png_const_voidp;
Ritor1
parents:
diff changeset
600 typedef png_byte * png_bytep;
Ritor1
parents:
diff changeset
601 typedef const png_byte * png_const_bytep;
Ritor1
parents:
diff changeset
602 typedef png_uint_32 * png_uint_32p;
Ritor1
parents:
diff changeset
603 typedef const png_uint_32 * png_const_uint_32p;
Ritor1
parents:
diff changeset
604 typedef png_int_32 * png_int_32p;
Ritor1
parents:
diff changeset
605 typedef const png_int_32 * png_const_int_32p;
Ritor1
parents:
diff changeset
606 typedef png_uint_16 * png_uint_16p;
Ritor1
parents:
diff changeset
607 typedef const png_uint_16 * png_const_uint_16p;
Ritor1
parents:
diff changeset
608 typedef png_int_16 * png_int_16p;
Ritor1
parents:
diff changeset
609 typedef const png_int_16 * png_const_int_16p;
Ritor1
parents:
diff changeset
610 typedef char * png_charp;
Ritor1
parents:
diff changeset
611 typedef const char * png_const_charp;
Ritor1
parents:
diff changeset
612 typedef png_fixed_point * png_fixed_point_p;
Ritor1
parents:
diff changeset
613 typedef const png_fixed_point * png_const_fixed_point_p;
Ritor1
parents:
diff changeset
614 typedef png_size_t * png_size_tp;
Ritor1
parents:
diff changeset
615 typedef const png_size_t * png_const_size_tp;
Ritor1
parents:
diff changeset
616
Ritor1
parents:
diff changeset
617 #ifdef PNG_STDIO_SUPPORTED
Ritor1
parents:
diff changeset
618 typedef FILE * png_FILE_p;
Ritor1
parents:
diff changeset
619 #endif
Ritor1
parents:
diff changeset
620
Ritor1
parents:
diff changeset
621 #ifdef PNG_FLOATING_POINT_SUPPORTED
Ritor1
parents:
diff changeset
622 typedef double * png_doublep;
Ritor1
parents:
diff changeset
623 typedef const double * png_const_doublep;
Ritor1
parents:
diff changeset
624 #endif
Ritor1
parents:
diff changeset
625
Ritor1
parents:
diff changeset
626 /* Pointers to pointers; i.e. arrays */
Ritor1
parents:
diff changeset
627 typedef png_byte * * png_bytepp;
Ritor1
parents:
diff changeset
628 typedef png_uint_32 * * png_uint_32pp;
Ritor1
parents:
diff changeset
629 typedef png_int_32 * * png_int_32pp;
Ritor1
parents:
diff changeset
630 typedef png_uint_16 * * png_uint_16pp;
Ritor1
parents:
diff changeset
631 typedef png_int_16 * * png_int_16pp;
Ritor1
parents:
diff changeset
632 typedef const char * * png_const_charpp;
Ritor1
parents:
diff changeset
633 typedef char * * png_charpp;
Ritor1
parents:
diff changeset
634 typedef png_fixed_point * * png_fixed_point_pp;
Ritor1
parents:
diff changeset
635 #ifdef PNG_FLOATING_POINT_SUPPORTED
Ritor1
parents:
diff changeset
636 typedef double * * png_doublepp;
Ritor1
parents:
diff changeset
637 #endif
Ritor1
parents:
diff changeset
638
Ritor1
parents:
diff changeset
639 /* Pointers to pointers to pointers; i.e., pointer to array */
Ritor1
parents:
diff changeset
640 typedef char * * * png_charppp;
Ritor1
parents:
diff changeset
641
Ritor1
parents:
diff changeset
642 #endif /* PNG_BUILDING_SYMBOL_TABLE */
Ritor1
parents:
diff changeset
643
Ritor1
parents:
diff changeset
644 #endif /* PNGCONF_H */