Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/tools/ports/libpng/pnglibconf.h
4154 views
1
/* pnglibconf.h - library build configuration */
2
3
/* libpng version 1.6.39 */
4
5
/* Copyright (c) 2018-2022 Cosmin Truta */
6
/* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
7
8
/* This code is released under the libpng license. */
9
/* For conditions of distribution and use, see the disclaimer */
10
/* and license in png.h */
11
12
/* EMSCRIPTEN: png.h is provided in the downloaded archive that this script */
13
/* fetches. The license portion of that is: */
14
15
/*
16
* Copyright (c) 2018-2019 Cosmin Truta
17
* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
18
* Copyright (c) 1996-1997 Andreas Dilger
19
* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
20
*
21
* This code is released under the libpng license. (See LICENSE, below.)
22
*/
23
24
/* EMSCRIPTEN: The contents of LICENSE are: */
25
26
/*
27
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
28
=========================================
29
30
PNG Reference Library License version 2
31
---------------------------------------
32
33
* Copyright (c) 1995-2019 The PNG Reference Library Authors.
34
* Copyright (c) 2018-2019 Cosmin Truta.
35
* Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.
36
* Copyright (c) 1996-1997 Andreas Dilger.
37
* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
38
39
The software is supplied "as is", without warranty of any kind,
40
express or implied, including, without limitation, the warranties
41
of merchantability, fitness for a particular purpose, title, and
42
non-infringement. In no event shall the Copyright owners, or
43
anyone distributing the software, be liable for any damages or
44
other liability, whether in contract, tort or otherwise, arising
45
from, out of, or in connection with the software, or the use or
46
other dealings in the software, even if advised of the possibility
47
of such damage.
48
49
Permission is hereby granted to use, copy, modify, and distribute
50
this software, or portions hereof, for any purpose, without fee,
51
subject to the following restrictions:
52
53
1. The origin of this software must not be misrepresented; you
54
must not claim that you wrote the original software. If you
55
use this software in a product, an acknowledgment in the product
56
documentation would be appreciated, but is not required.
57
58
2. Altered source versions must be plainly marked as such, and must
59
not be misrepresented as being the original software.
60
61
3. This Copyright notice may not be removed or altered from any
62
source or altered source distribution.
63
64
65
PNG Reference Library License version 1 (for libpng 0.5 through 1.6.35)
66
-----------------------------------------------------------------------
67
68
libpng versions 1.0.7, July 1, 2000, through 1.6.35, July 15, 2018 are
69
Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are
70
derived from libpng-1.0.6, and are distributed according to the same
71
disclaimer and license as libpng-1.0.6 with the following individuals
72
added to the list of Contributing Authors:
73
74
Simon-Pierre Cadieux
75
Eric S. Raymond
76
Mans Rullgard
77
Cosmin Truta
78
Gilles Vollant
79
James Yu
80
Mandar Sahastrabuddhe
81
Google Inc.
82
Vadim Barkov
83
84
and with the following additions to the disclaimer:
85
86
There is no warranty against interference with your enjoyment of
87
the library or against infringement. There is no warranty that our
88
efforts or the library will fulfill any of your particular purposes
89
or needs. This library is provided with all faults, and the entire
90
risk of satisfactory quality, performance, accuracy, and effort is
91
with the user.
92
93
Some files in the "contrib" directory and some configure-generated
94
files that are distributed with libpng have other copyright owners, and
95
are released under other open source licenses.
96
97
libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
98
Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from
99
libpng-0.96, and are distributed according to the same disclaimer and
100
license as libpng-0.96, with the following individuals added to the
101
list of Contributing Authors:
102
103
Tom Lane
104
Glenn Randers-Pehrson
105
Willem van Schaik
106
107
libpng versions 0.89, June 1996, through 0.96, May 1997, are
108
Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,
109
and are distributed according to the same disclaimer and license as
110
libpng-0.88, with the following individuals added to the list of
111
Contributing Authors:
112
113
John Bowler
114
Kevin Bracey
115
Sam Bushell
116
Magnus Holmgren
117
Greg Roelofs
118
Tom Tanner
119
120
Some files in the "scripts" directory have other copyright owners,
121
but are released under this license.
122
123
libpng versions 0.5, May 1995, through 0.88, January 1996, are
124
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
125
126
For the purposes of this copyright and license, "Contributing Authors"
127
is defined as the following set of individuals:
128
129
Andreas Dilger
130
Dave Martindale
131
Guy Eric Schalnat
132
Paul Schmidt
133
Tim Wegner
134
135
The PNG Reference Library is supplied "AS IS". The Contributing
136
Authors and Group 42, Inc. disclaim all warranties, expressed or
137
implied, including, without limitation, the warranties of
138
merchantability and of fitness for any purpose. The Contributing
139
Authors and Group 42, Inc. assume no liability for direct, indirect,
140
incidental, special, exemplary, or consequential damages, which may
141
result from the use of the PNG Reference Library, even if advised of
142
the possibility of such damage.
143
144
Permission is hereby granted to use, copy, modify, and distribute this
145
source code, or portions hereof, for any purpose, without fee, subject
146
to the following restrictions:
147
148
1. The origin of this source code must not be misrepresented.
149
150
2. Altered versions must be plainly marked as such and must not
151
be misrepresented as being the original source.
152
153
3. This Copyright notice may not be removed or altered from any
154
source or altered source distribution.
155
156
The Contributing Authors and Group 42, Inc. specifically permit,
157
without fee, and encourage the use of this source code as a component
158
to supporting the PNG file format in commercial products. If you use
159
this source code in a product, acknowledgment is not required but would
160
be appreciated.
161
*/
162
163
/* pnglibconf.h */
164
/* Machine generated file: DO NOT EDIT */
165
/* Derived from: scripts/pnglibconf.dfa */
166
#ifndef PNGLCONF_H
167
#define PNGLCONF_H
168
/* options */
169
#define PNG_16BIT_SUPPORTED
170
#define PNG_ALIGNED_MEMORY_SUPPORTED
171
/*#undef PNG_ARM_NEON_API_SUPPORTED*/
172
/*#undef PNG_ARM_NEON_CHECK_SUPPORTED*/
173
#define PNG_BENIGN_ERRORS_SUPPORTED
174
#define PNG_BENIGN_READ_ERRORS_SUPPORTED
175
/*#undef PNG_BENIGN_WRITE_ERRORS_SUPPORTED*/
176
#define PNG_BUILD_GRAYSCALE_PALETTE_SUPPORTED
177
#define PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
178
#define PNG_COLORSPACE_SUPPORTED
179
#define PNG_CONSOLE_IO_SUPPORTED
180
#define PNG_CONVERT_tIME_SUPPORTED
181
#define PNG_EASY_ACCESS_SUPPORTED
182
/*#undef PNG_ERROR_NUMBERS_SUPPORTED*/
183
#define PNG_ERROR_TEXT_SUPPORTED
184
#define PNG_FIXED_POINT_SUPPORTED
185
#define PNG_FLOATING_ARITHMETIC_SUPPORTED
186
#define PNG_FLOATING_POINT_SUPPORTED
187
#define PNG_FORMAT_AFIRST_SUPPORTED
188
#define PNG_FORMAT_BGR_SUPPORTED
189
#define PNG_GAMMA_SUPPORTED
190
#define PNG_GET_PALETTE_MAX_SUPPORTED
191
#define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
192
#define PNG_INCH_CONVERSIONS_SUPPORTED
193
#define PNG_INFO_IMAGE_SUPPORTED
194
#define PNG_IO_STATE_SUPPORTED
195
#define PNG_MNG_FEATURES_SUPPORTED
196
#define PNG_POINTER_INDEXING_SUPPORTED
197
/*#undef PNG_POWERPC_VSX_API_SUPPORTED*/
198
/*#undef PNG_POWERPC_VSX_CHECK_SUPPORTED*/
199
#define PNG_PROGRESSIVE_READ_SUPPORTED
200
#define PNG_READ_16BIT_SUPPORTED
201
#define PNG_READ_ALPHA_MODE_SUPPORTED
202
#define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
203
#define PNG_READ_BACKGROUND_SUPPORTED
204
#define PNG_READ_BGR_SUPPORTED
205
#define PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED
206
#define PNG_READ_COMPOSITE_NODIV_SUPPORTED
207
#define PNG_READ_COMPRESSED_TEXT_SUPPORTED
208
#define PNG_READ_EXPAND_16_SUPPORTED
209
#define PNG_READ_EXPAND_SUPPORTED
210
#define PNG_READ_FILLER_SUPPORTED
211
#define PNG_READ_GAMMA_SUPPORTED
212
#define PNG_READ_GET_PALETTE_MAX_SUPPORTED
213
#define PNG_READ_GRAY_TO_RGB_SUPPORTED
214
#define PNG_READ_INTERLACING_SUPPORTED
215
#define PNG_READ_INT_FUNCTIONS_SUPPORTED
216
#define PNG_READ_INVERT_ALPHA_SUPPORTED
217
#define PNG_READ_INVERT_SUPPORTED
218
#define PNG_READ_OPT_PLTE_SUPPORTED
219
#define PNG_READ_PACKSWAP_SUPPORTED
220
#define PNG_READ_PACK_SUPPORTED
221
#define PNG_READ_QUANTIZE_SUPPORTED
222
#define PNG_READ_RGB_TO_GRAY_SUPPORTED
223
#define PNG_READ_SCALE_16_TO_8_SUPPORTED
224
#define PNG_READ_SHIFT_SUPPORTED
225
#define PNG_READ_STRIP_16_TO_8_SUPPORTED
226
#define PNG_READ_STRIP_ALPHA_SUPPORTED
227
#define PNG_READ_SUPPORTED
228
#define PNG_READ_SWAP_ALPHA_SUPPORTED
229
#define PNG_READ_SWAP_SUPPORTED
230
#define PNG_READ_TEXT_SUPPORTED
231
#define PNG_READ_TRANSFORMS_SUPPORTED
232
#define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
233
#define PNG_READ_USER_CHUNKS_SUPPORTED
234
#define PNG_READ_USER_TRANSFORM_SUPPORTED
235
#define PNG_READ_bKGD_SUPPORTED
236
#define PNG_READ_cHRM_SUPPORTED
237
#define PNG_READ_eXIf_SUPPORTED
238
#define PNG_READ_gAMA_SUPPORTED
239
#define PNG_READ_hIST_SUPPORTED
240
#define PNG_READ_iCCP_SUPPORTED
241
#define PNG_READ_iTXt_SUPPORTED
242
#define PNG_READ_oFFs_SUPPORTED
243
#define PNG_READ_pCAL_SUPPORTED
244
#define PNG_READ_pHYs_SUPPORTED
245
#define PNG_READ_sBIT_SUPPORTED
246
#define PNG_READ_sCAL_SUPPORTED
247
#define PNG_READ_sPLT_SUPPORTED
248
#define PNG_READ_sRGB_SUPPORTED
249
#define PNG_READ_tEXt_SUPPORTED
250
#define PNG_READ_tIME_SUPPORTED
251
#define PNG_READ_tRNS_SUPPORTED
252
#define PNG_READ_zTXt_SUPPORTED
253
#define PNG_SAVE_INT_32_SUPPORTED
254
#define PNG_SAVE_UNKNOWN_CHUNKS_SUPPORTED
255
#define PNG_SEQUENTIAL_READ_SUPPORTED
256
#define PNG_SETJMP_SUPPORTED
257
#define PNG_SET_OPTION_SUPPORTED
258
#define PNG_SET_UNKNOWN_CHUNKS_SUPPORTED
259
#define PNG_SET_USER_LIMITS_SUPPORTED
260
#define PNG_SIMPLIFIED_READ_AFIRST_SUPPORTED
261
#define PNG_SIMPLIFIED_READ_BGR_SUPPORTED
262
#define PNG_SIMPLIFIED_READ_SUPPORTED
263
#define PNG_SIMPLIFIED_WRITE_AFIRST_SUPPORTED
264
#define PNG_SIMPLIFIED_WRITE_BGR_SUPPORTED
265
#define PNG_SIMPLIFIED_WRITE_STDIO_SUPPORTED
266
#define PNG_SIMPLIFIED_WRITE_SUPPORTED
267
#define PNG_STDIO_SUPPORTED
268
#define PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED
269
#define PNG_TEXT_SUPPORTED
270
#define PNG_TIME_RFC1123_SUPPORTED
271
#define PNG_UNKNOWN_CHUNKS_SUPPORTED
272
#define PNG_USER_CHUNKS_SUPPORTED
273
#define PNG_USER_LIMITS_SUPPORTED
274
#define PNG_USER_MEM_SUPPORTED
275
#define PNG_USER_TRANSFORM_INFO_SUPPORTED
276
#define PNG_USER_TRANSFORM_PTR_SUPPORTED
277
#undef PNG_WARNINGS_SUPPORTED
278
#define PNG_WRITE_16BIT_SUPPORTED
279
#define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
280
#define PNG_WRITE_BGR_SUPPORTED
281
#define PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED
282
#define PNG_WRITE_COMPRESSED_TEXT_SUPPORTED
283
#define PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED
284
#define PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED
285
#define PNG_WRITE_FILLER_SUPPORTED
286
#define PNG_WRITE_FILTER_SUPPORTED
287
#define PNG_WRITE_FLUSH_SUPPORTED
288
#define PNG_WRITE_GET_PALETTE_MAX_SUPPORTED
289
#define PNG_WRITE_INTERLACING_SUPPORTED
290
#define PNG_WRITE_INT_FUNCTIONS_SUPPORTED
291
#define PNG_WRITE_INVERT_ALPHA_SUPPORTED
292
#define PNG_WRITE_INVERT_SUPPORTED
293
#define PNG_WRITE_OPTIMIZE_CMF_SUPPORTED
294
#define PNG_WRITE_PACKSWAP_SUPPORTED
295
#define PNG_WRITE_PACK_SUPPORTED
296
#define PNG_WRITE_SHIFT_SUPPORTED
297
#define PNG_WRITE_SUPPORTED
298
#define PNG_WRITE_SWAP_ALPHA_SUPPORTED
299
#define PNG_WRITE_SWAP_SUPPORTED
300
#define PNG_WRITE_TEXT_SUPPORTED
301
#define PNG_WRITE_TRANSFORMS_SUPPORTED
302
#define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
303
#define PNG_WRITE_USER_TRANSFORM_SUPPORTED
304
#define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
305
#define PNG_WRITE_bKGD_SUPPORTED
306
#define PNG_WRITE_cHRM_SUPPORTED
307
#define PNG_WRITE_eXIf_SUPPORTED
308
#define PNG_WRITE_gAMA_SUPPORTED
309
#define PNG_WRITE_hIST_SUPPORTED
310
#define PNG_WRITE_iCCP_SUPPORTED
311
#define PNG_WRITE_iTXt_SUPPORTED
312
#define PNG_WRITE_oFFs_SUPPORTED
313
#define PNG_WRITE_pCAL_SUPPORTED
314
#define PNG_WRITE_pHYs_SUPPORTED
315
#define PNG_WRITE_sBIT_SUPPORTED
316
#define PNG_WRITE_sCAL_SUPPORTED
317
#define PNG_WRITE_sPLT_SUPPORTED
318
#define PNG_WRITE_sRGB_SUPPORTED
319
#define PNG_WRITE_tEXt_SUPPORTED
320
#define PNG_WRITE_tIME_SUPPORTED
321
#define PNG_WRITE_tRNS_SUPPORTED
322
#define PNG_WRITE_zTXt_SUPPORTED
323
#define PNG_bKGD_SUPPORTED
324
#define PNG_cHRM_SUPPORTED
325
#define PNG_eXIf_SUPPORTED
326
#define PNG_gAMA_SUPPORTED
327
#define PNG_hIST_SUPPORTED
328
#define PNG_iCCP_SUPPORTED
329
#define PNG_iTXt_SUPPORTED
330
#define PNG_oFFs_SUPPORTED
331
#define PNG_pCAL_SUPPORTED
332
#define PNG_pHYs_SUPPORTED
333
#define PNG_sBIT_SUPPORTED
334
#define PNG_sCAL_SUPPORTED
335
#define PNG_sPLT_SUPPORTED
336
#define PNG_sRGB_SUPPORTED
337
#define PNG_tEXt_SUPPORTED
338
#define PNG_tIME_SUPPORTED
339
#define PNG_tRNS_SUPPORTED
340
#define PNG_zTXt_SUPPORTED
341
/* end of options */
342
/* settings */
343
#define PNG_API_RULE 0
344
#define PNG_DEFAULT_READ_MACROS 1
345
#define PNG_GAMMA_THRESHOLD_FIXED 5000
346
#define PNG_IDAT_READ_SIZE PNG_ZBUF_SIZE
347
#define PNG_INFLATE_BUF_SIZE 1024
348
#define PNG_LINKAGE_API extern
349
#define PNG_LINKAGE_CALLBACK extern
350
#define PNG_LINKAGE_DATA extern
351
#define PNG_LINKAGE_FUNCTION extern
352
#define PNG_MAX_GAMMA_8 11
353
#define PNG_QUANTIZE_BLUE_BITS 5
354
#define PNG_QUANTIZE_GREEN_BITS 5
355
#define PNG_QUANTIZE_RED_BITS 5
356
#define PNG_TEXT_Z_DEFAULT_COMPRESSION (-1)
357
#define PNG_TEXT_Z_DEFAULT_STRATEGY 0
358
#define PNG_USER_CHUNK_CACHE_MAX 1000
359
#define PNG_USER_CHUNK_MALLOC_MAX 8000000
360
#define PNG_USER_HEIGHT_MAX 1000000
361
#define PNG_USER_WIDTH_MAX 1000000
362
#define PNG_ZBUF_SIZE 8192
363
#define PNG_ZLIB_VERNUM 0 /* unknown */
364
#define PNG_Z_DEFAULT_COMPRESSION (-1)
365
#define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0
366
#define PNG_Z_DEFAULT_STRATEGY 1
367
#define PNG_sCAL_PRECISION 5
368
#define PNG_sRGB_PROFILE_CHECKS 2
369
/* end of settings */
370
#endif /* PNGLCONF_H */
371
372