Path: blob/main/tools/ports/libpng/pnglibconf.h
4154 views
/* pnglibconf.h - library build configuration */12/* libpng version 1.6.39 */34/* Copyright (c) 2018-2022 Cosmin Truta */5/* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */67/* This code is released under the libpng license. */8/* For conditions of distribution and use, see the disclaimer */9/* and license in png.h */1011/* EMSCRIPTEN: png.h is provided in the downloaded archive that this script */12/* fetches. The license portion of that is: */1314/*15* Copyright (c) 2018-2019 Cosmin Truta16* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson17* Copyright (c) 1996-1997 Andreas Dilger18* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.19*20* This code is released under the libpng license. (See LICENSE, below.)21*/2223/* EMSCRIPTEN: The contents of LICENSE are: */2425/*26COPYRIGHT NOTICE, DISCLAIMER, and LICENSE27=========================================2829PNG Reference Library License version 230---------------------------------------3132* Copyright (c) 1995-2019 The PNG Reference Library Authors.33* Copyright (c) 2018-2019 Cosmin Truta.34* Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.35* Copyright (c) 1996-1997 Andreas Dilger.36* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.3738The software is supplied "as is", without warranty of any kind,39express or implied, including, without limitation, the warranties40of merchantability, fitness for a particular purpose, title, and41non-infringement. In no event shall the Copyright owners, or42anyone distributing the software, be liable for any damages or43other liability, whether in contract, tort or otherwise, arising44from, out of, or in connection with the software, or the use or45other dealings in the software, even if advised of the possibility46of such damage.4748Permission is hereby granted to use, copy, modify, and distribute49this software, or portions hereof, for any purpose, without fee,50subject to the following restrictions:51521. The origin of this software must not be misrepresented; you53must not claim that you wrote the original software. If you54use this software in a product, an acknowledgment in the product55documentation would be appreciated, but is not required.56572. Altered source versions must be plainly marked as such, and must58not be misrepresented as being the original software.59603. This Copyright notice may not be removed or altered from any61source or altered source distribution.626364PNG Reference Library License version 1 (for libpng 0.5 through 1.6.35)65-----------------------------------------------------------------------6667libpng versions 1.0.7, July 1, 2000, through 1.6.35, July 15, 2018 are68Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are69derived from libpng-1.0.6, and are distributed according to the same70disclaimer and license as libpng-1.0.6 with the following individuals71added to the list of Contributing Authors:7273Simon-Pierre Cadieux74Eric S. Raymond75Mans Rullgard76Cosmin Truta77Gilles Vollant78James Yu79Mandar Sahastrabuddhe80Google Inc.81Vadim Barkov8283and with the following additions to the disclaimer:8485There is no warranty against interference with your enjoyment of86the library or against infringement. There is no warranty that our87efforts or the library will fulfill any of your particular purposes88or needs. This library is provided with all faults, and the entire89risk of satisfactory quality, performance, accuracy, and effort is90with the user.9192Some files in the "contrib" directory and some configure-generated93files that are distributed with libpng have other copyright owners, and94are released under other open source licenses.9596libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are97Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from98libpng-0.96, and are distributed according to the same disclaimer and99license as libpng-0.96, with the following individuals added to the100list of Contributing Authors:101102Tom Lane103Glenn Randers-Pehrson104Willem van Schaik105106libpng versions 0.89, June 1996, through 0.96, May 1997, are107Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,108and are distributed according to the same disclaimer and license as109libpng-0.88, with the following individuals added to the list of110Contributing Authors:111112John Bowler113Kevin Bracey114Sam Bushell115Magnus Holmgren116Greg Roelofs117Tom Tanner118119Some files in the "scripts" directory have other copyright owners,120but are released under this license.121122libpng versions 0.5, May 1995, through 0.88, January 1996, are123Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.124125For the purposes of this copyright and license, "Contributing Authors"126is defined as the following set of individuals:127128Andreas Dilger129Dave Martindale130Guy Eric Schalnat131Paul Schmidt132Tim Wegner133134The PNG Reference Library is supplied "AS IS". The Contributing135Authors and Group 42, Inc. disclaim all warranties, expressed or136implied, including, without limitation, the warranties of137merchantability and of fitness for any purpose. The Contributing138Authors and Group 42, Inc. assume no liability for direct, indirect,139incidental, special, exemplary, or consequential damages, which may140result from the use of the PNG Reference Library, even if advised of141the possibility of such damage.142143Permission is hereby granted to use, copy, modify, and distribute this144source code, or portions hereof, for any purpose, without fee, subject145to the following restrictions:1461471. The origin of this source code must not be misrepresented.1481492. Altered versions must be plainly marked as such and must not150be misrepresented as being the original source.1511523. This Copyright notice may not be removed or altered from any153source or altered source distribution.154155The Contributing Authors and Group 42, Inc. specifically permit,156without fee, and encourage the use of this source code as a component157to supporting the PNG file format in commercial products. If you use158this source code in a product, acknowledgment is not required but would159be appreciated.160*/161162/* pnglibconf.h */163/* Machine generated file: DO NOT EDIT */164/* Derived from: scripts/pnglibconf.dfa */165#ifndef PNGLCONF_H166#define PNGLCONF_H167/* options */168#define PNG_16BIT_SUPPORTED169#define PNG_ALIGNED_MEMORY_SUPPORTED170/*#undef PNG_ARM_NEON_API_SUPPORTED*/171/*#undef PNG_ARM_NEON_CHECK_SUPPORTED*/172#define PNG_BENIGN_ERRORS_SUPPORTED173#define PNG_BENIGN_READ_ERRORS_SUPPORTED174/*#undef PNG_BENIGN_WRITE_ERRORS_SUPPORTED*/175#define PNG_BUILD_GRAYSCALE_PALETTE_SUPPORTED176#define PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED177#define PNG_COLORSPACE_SUPPORTED178#define PNG_CONSOLE_IO_SUPPORTED179#define PNG_CONVERT_tIME_SUPPORTED180#define PNG_EASY_ACCESS_SUPPORTED181/*#undef PNG_ERROR_NUMBERS_SUPPORTED*/182#define PNG_ERROR_TEXT_SUPPORTED183#define PNG_FIXED_POINT_SUPPORTED184#define PNG_FLOATING_ARITHMETIC_SUPPORTED185#define PNG_FLOATING_POINT_SUPPORTED186#define PNG_FORMAT_AFIRST_SUPPORTED187#define PNG_FORMAT_BGR_SUPPORTED188#define PNG_GAMMA_SUPPORTED189#define PNG_GET_PALETTE_MAX_SUPPORTED190#define PNG_HANDLE_AS_UNKNOWN_SUPPORTED191#define PNG_INCH_CONVERSIONS_SUPPORTED192#define PNG_INFO_IMAGE_SUPPORTED193#define PNG_IO_STATE_SUPPORTED194#define PNG_MNG_FEATURES_SUPPORTED195#define PNG_POINTER_INDEXING_SUPPORTED196/*#undef PNG_POWERPC_VSX_API_SUPPORTED*/197/*#undef PNG_POWERPC_VSX_CHECK_SUPPORTED*/198#define PNG_PROGRESSIVE_READ_SUPPORTED199#define PNG_READ_16BIT_SUPPORTED200#define PNG_READ_ALPHA_MODE_SUPPORTED201#define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED202#define PNG_READ_BACKGROUND_SUPPORTED203#define PNG_READ_BGR_SUPPORTED204#define PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED205#define PNG_READ_COMPOSITE_NODIV_SUPPORTED206#define PNG_READ_COMPRESSED_TEXT_SUPPORTED207#define PNG_READ_EXPAND_16_SUPPORTED208#define PNG_READ_EXPAND_SUPPORTED209#define PNG_READ_FILLER_SUPPORTED210#define PNG_READ_GAMMA_SUPPORTED211#define PNG_READ_GET_PALETTE_MAX_SUPPORTED212#define PNG_READ_GRAY_TO_RGB_SUPPORTED213#define PNG_READ_INTERLACING_SUPPORTED214#define PNG_READ_INT_FUNCTIONS_SUPPORTED215#define PNG_READ_INVERT_ALPHA_SUPPORTED216#define PNG_READ_INVERT_SUPPORTED217#define PNG_READ_OPT_PLTE_SUPPORTED218#define PNG_READ_PACKSWAP_SUPPORTED219#define PNG_READ_PACK_SUPPORTED220#define PNG_READ_QUANTIZE_SUPPORTED221#define PNG_READ_RGB_TO_GRAY_SUPPORTED222#define PNG_READ_SCALE_16_TO_8_SUPPORTED223#define PNG_READ_SHIFT_SUPPORTED224#define PNG_READ_STRIP_16_TO_8_SUPPORTED225#define PNG_READ_STRIP_ALPHA_SUPPORTED226#define PNG_READ_SUPPORTED227#define PNG_READ_SWAP_ALPHA_SUPPORTED228#define PNG_READ_SWAP_SUPPORTED229#define PNG_READ_TEXT_SUPPORTED230#define PNG_READ_TRANSFORMS_SUPPORTED231#define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED232#define PNG_READ_USER_CHUNKS_SUPPORTED233#define PNG_READ_USER_TRANSFORM_SUPPORTED234#define PNG_READ_bKGD_SUPPORTED235#define PNG_READ_cHRM_SUPPORTED236#define PNG_READ_eXIf_SUPPORTED237#define PNG_READ_gAMA_SUPPORTED238#define PNG_READ_hIST_SUPPORTED239#define PNG_READ_iCCP_SUPPORTED240#define PNG_READ_iTXt_SUPPORTED241#define PNG_READ_oFFs_SUPPORTED242#define PNG_READ_pCAL_SUPPORTED243#define PNG_READ_pHYs_SUPPORTED244#define PNG_READ_sBIT_SUPPORTED245#define PNG_READ_sCAL_SUPPORTED246#define PNG_READ_sPLT_SUPPORTED247#define PNG_READ_sRGB_SUPPORTED248#define PNG_READ_tEXt_SUPPORTED249#define PNG_READ_tIME_SUPPORTED250#define PNG_READ_tRNS_SUPPORTED251#define PNG_READ_zTXt_SUPPORTED252#define PNG_SAVE_INT_32_SUPPORTED253#define PNG_SAVE_UNKNOWN_CHUNKS_SUPPORTED254#define PNG_SEQUENTIAL_READ_SUPPORTED255#define PNG_SETJMP_SUPPORTED256#define PNG_SET_OPTION_SUPPORTED257#define PNG_SET_UNKNOWN_CHUNKS_SUPPORTED258#define PNG_SET_USER_LIMITS_SUPPORTED259#define PNG_SIMPLIFIED_READ_AFIRST_SUPPORTED260#define PNG_SIMPLIFIED_READ_BGR_SUPPORTED261#define PNG_SIMPLIFIED_READ_SUPPORTED262#define PNG_SIMPLIFIED_WRITE_AFIRST_SUPPORTED263#define PNG_SIMPLIFIED_WRITE_BGR_SUPPORTED264#define PNG_SIMPLIFIED_WRITE_STDIO_SUPPORTED265#define PNG_SIMPLIFIED_WRITE_SUPPORTED266#define PNG_STDIO_SUPPORTED267#define PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED268#define PNG_TEXT_SUPPORTED269#define PNG_TIME_RFC1123_SUPPORTED270#define PNG_UNKNOWN_CHUNKS_SUPPORTED271#define PNG_USER_CHUNKS_SUPPORTED272#define PNG_USER_LIMITS_SUPPORTED273#define PNG_USER_MEM_SUPPORTED274#define PNG_USER_TRANSFORM_INFO_SUPPORTED275#define PNG_USER_TRANSFORM_PTR_SUPPORTED276#undef PNG_WARNINGS_SUPPORTED277#define PNG_WRITE_16BIT_SUPPORTED278#define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED279#define PNG_WRITE_BGR_SUPPORTED280#define PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED281#define PNG_WRITE_COMPRESSED_TEXT_SUPPORTED282#define PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED283#define PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED284#define PNG_WRITE_FILLER_SUPPORTED285#define PNG_WRITE_FILTER_SUPPORTED286#define PNG_WRITE_FLUSH_SUPPORTED287#define PNG_WRITE_GET_PALETTE_MAX_SUPPORTED288#define PNG_WRITE_INTERLACING_SUPPORTED289#define PNG_WRITE_INT_FUNCTIONS_SUPPORTED290#define PNG_WRITE_INVERT_ALPHA_SUPPORTED291#define PNG_WRITE_INVERT_SUPPORTED292#define PNG_WRITE_OPTIMIZE_CMF_SUPPORTED293#define PNG_WRITE_PACKSWAP_SUPPORTED294#define PNG_WRITE_PACK_SUPPORTED295#define PNG_WRITE_SHIFT_SUPPORTED296#define PNG_WRITE_SUPPORTED297#define PNG_WRITE_SWAP_ALPHA_SUPPORTED298#define PNG_WRITE_SWAP_SUPPORTED299#define PNG_WRITE_TEXT_SUPPORTED300#define PNG_WRITE_TRANSFORMS_SUPPORTED301#define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED302#define PNG_WRITE_USER_TRANSFORM_SUPPORTED303#define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED304#define PNG_WRITE_bKGD_SUPPORTED305#define PNG_WRITE_cHRM_SUPPORTED306#define PNG_WRITE_eXIf_SUPPORTED307#define PNG_WRITE_gAMA_SUPPORTED308#define PNG_WRITE_hIST_SUPPORTED309#define PNG_WRITE_iCCP_SUPPORTED310#define PNG_WRITE_iTXt_SUPPORTED311#define PNG_WRITE_oFFs_SUPPORTED312#define PNG_WRITE_pCAL_SUPPORTED313#define PNG_WRITE_pHYs_SUPPORTED314#define PNG_WRITE_sBIT_SUPPORTED315#define PNG_WRITE_sCAL_SUPPORTED316#define PNG_WRITE_sPLT_SUPPORTED317#define PNG_WRITE_sRGB_SUPPORTED318#define PNG_WRITE_tEXt_SUPPORTED319#define PNG_WRITE_tIME_SUPPORTED320#define PNG_WRITE_tRNS_SUPPORTED321#define PNG_WRITE_zTXt_SUPPORTED322#define PNG_bKGD_SUPPORTED323#define PNG_cHRM_SUPPORTED324#define PNG_eXIf_SUPPORTED325#define PNG_gAMA_SUPPORTED326#define PNG_hIST_SUPPORTED327#define PNG_iCCP_SUPPORTED328#define PNG_iTXt_SUPPORTED329#define PNG_oFFs_SUPPORTED330#define PNG_pCAL_SUPPORTED331#define PNG_pHYs_SUPPORTED332#define PNG_sBIT_SUPPORTED333#define PNG_sCAL_SUPPORTED334#define PNG_sPLT_SUPPORTED335#define PNG_sRGB_SUPPORTED336#define PNG_tEXt_SUPPORTED337#define PNG_tIME_SUPPORTED338#define PNG_tRNS_SUPPORTED339#define PNG_zTXt_SUPPORTED340/* end of options */341/* settings */342#define PNG_API_RULE 0343#define PNG_DEFAULT_READ_MACROS 1344#define PNG_GAMMA_THRESHOLD_FIXED 5000345#define PNG_IDAT_READ_SIZE PNG_ZBUF_SIZE346#define PNG_INFLATE_BUF_SIZE 1024347#define PNG_LINKAGE_API extern348#define PNG_LINKAGE_CALLBACK extern349#define PNG_LINKAGE_DATA extern350#define PNG_LINKAGE_FUNCTION extern351#define PNG_MAX_GAMMA_8 11352#define PNG_QUANTIZE_BLUE_BITS 5353#define PNG_QUANTIZE_GREEN_BITS 5354#define PNG_QUANTIZE_RED_BITS 5355#define PNG_TEXT_Z_DEFAULT_COMPRESSION (-1)356#define PNG_TEXT_Z_DEFAULT_STRATEGY 0357#define PNG_USER_CHUNK_CACHE_MAX 1000358#define PNG_USER_CHUNK_MALLOC_MAX 8000000359#define PNG_USER_HEIGHT_MAX 1000000360#define PNG_USER_WIDTH_MAX 1000000361#define PNG_ZBUF_SIZE 8192362#define PNG_ZLIB_VERNUM 0 /* unknown */363#define PNG_Z_DEFAULT_COMPRESSION (-1)364#define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0365#define PNG_Z_DEFAULT_STRATEGY 1366#define PNG_sCAL_PRECISION 5367#define PNG_sRGB_PROFILE_CHECKS 2368/* end of settings */369#endif /* PNGLCONF_H */370371372