2010-04-16 23:30:26 -04:00
|
|
|
# scripts/pnglibconf.dfa - library build configuration control
|
2010-04-16 23:12:51 -04:00
|
|
|
#
|
2010-04-16 23:30:26 -04:00
|
|
|
@/*- pnglibconf.dfn intermediate file
|
|
|
|
@ * generated from scripts/pnglibconf.dfa
|
2010-04-16 23:12:51 -04:00
|
|
|
@ */
|
|
|
|
#
|
2010-04-16 23:30:26 -04:00
|
|
|
com pnglibconf.h - library build configuration
|
2010-04-16 23:12:51 -04:00
|
|
|
com
|
2011-11-07 23:33:49 -05:00
|
|
|
version
|
2010-04-16 23:12:51 -04:00
|
|
|
com
|
2011-01-22 00:23:34 -05:00
|
|
|
com Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
2010-04-16 23:12:51 -04:00
|
|
|
com
|
|
|
|
com This code is released under the libpng license.
|
|
|
|
com For conditions of distribution and use, see the disclaimer
|
|
|
|
com and license in png.h
|
|
|
|
com
|
2010-08-24 22:05:43 -04:00
|
|
|
|
2010-04-16 23:30:26 -04:00
|
|
|
file pnglibconf.h scripts/pnglibconf.dfa PNGLCONF_H
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
# This file is preprocessed by scripts/options.awk and the
|
2010-04-16 23:30:26 -04:00
|
|
|
# C compiler to generate 'pnglibconf.h' - a list of all the
|
2010-04-16 23:12:51 -04:00
|
|
|
# configuration options. The file lists the various options
|
|
|
|
# that can *only* be specified during the libpng build;
|
2010-04-16 23:30:26 -04:00
|
|
|
# pnglibconf.h freezes the definitons selected for the specific
|
2010-04-16 23:12:51 -04:00
|
|
|
# build.
|
|
|
|
#
|
|
|
|
# The syntax is detailed in scripts/options.awk, this is a summary
|
|
|
|
# only:
|
|
|
|
#
|
2012-02-24 12:43:31 -05:00
|
|
|
# setting <name> [default]
|
2010-04-16 23:12:51 -04:00
|
|
|
# #define PNG_<name> <value> /* value comes from current setting */
|
2010-04-28 08:52:16 -04:00
|
|
|
# option <name> [requires ...] [if ...] [enables ...] [disabled]
|
2010-04-16 23:12:51 -04:00
|
|
|
# #define PNG_<name>_SUPPORTED if the requirements are met and
|
|
|
|
# enable the other options listed
|
2012-03-21 08:55:46 -04:00
|
|
|
# chunk <name> [requires ...] [enables ...] [disabled]
|
|
|
|
# Enable chunk processing for the given ancillary chunk; any
|
|
|
|
# 'requires something' expands to READ_something for read and
|
|
|
|
# WRITE_something for write, but the enables list members are
|
|
|
|
# used as given (e.g. enables GAMMA just expands to that on the
|
|
|
|
# correspond READ_name and WRITE_name lines.)
|
2010-04-28 08:52:16 -04:00
|
|
|
#
|
|
|
|
# Note that the 'on' and 'off' keywords, while valid on both option
|
|
|
|
# and chunk, should not be used in this file because they force the
|
|
|
|
# relevant options on or off.
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2010-04-16 23:20:18 -04:00
|
|
|
# The following setting, option and chunk values can all be changed
|
|
|
|
# while building libpng:
|
2011-05-07 11:52:49 -04:00
|
|
|
#
|
2010-04-16 23:20:18 -04:00
|
|
|
# setting: change 'setting' lines to fine tune library performance,
|
|
|
|
# changes to the settings don't affect the libpng API functionally
|
|
|
|
#
|
|
|
|
# option: change 'option' lines to remove or add capabilities from
|
|
|
|
# or to the library; options change the library API
|
|
|
|
#
|
|
|
|
# chunk: change 'chunk' lines to remove capabilities to process
|
|
|
|
# optional ('ancillary') chunks. This does not prevent PNG
|
|
|
|
# decoding but does change the libpng API because some chunks
|
|
|
|
# will be ignored.
|
|
|
|
#
|
2010-04-28 08:52:16 -04:00
|
|
|
# There are three ways of disabling features, in no particular order:
|
2010-04-16 23:20:18 -04:00
|
|
|
#
|
|
|
|
# 1) Create 'pngusr.h', enter the required private build information
|
|
|
|
# detailed below and #define PNG_NO_<option> for each option you
|
|
|
|
# don't want in that file in that file. You can also turn on options
|
|
|
|
# using PNG_<option>_SUPPORTED. When you have finished rerun
|
2010-04-16 23:30:26 -04:00
|
|
|
# configure and rebuild pnglibconf.h file with -DPNG_USER_CONFIG:
|
2011-05-07 11:52:49 -04:00
|
|
|
#
|
2010-04-16 23:20:18 -04:00
|
|
|
# make clean
|
|
|
|
# CPPFLAGS='-DPNG_USER_CONFIG' ./configure
|
2010-04-16 23:30:26 -04:00
|
|
|
# make pnglibconf.h
|
2010-04-16 23:20:18 -04:00
|
|
|
#
|
2010-04-16 23:30:26 -04:00
|
|
|
# pngusr.h is only used during the creation of pnglibconf.h, but it
|
2010-04-16 23:20:18 -04:00
|
|
|
# is safer to ensure that -DPNG_USER_CONFIG is specified throughout
|
|
|
|
# the build by changing the CPPFLAGS passed to the initial ./configure
|
|
|
|
#
|
|
|
|
# 2) Add definitions of the settings you want to change to
|
|
|
|
# CPPFLAGS; for example:
|
2011-05-07 11:52:49 -04:00
|
|
|
#
|
2010-08-24 09:37:36 -04:00
|
|
|
# -DPNG_DEFAULT_READ_MACROS=0
|
2010-04-16 23:20:18 -04:00
|
|
|
#
|
|
|
|
# (This would change the default to *not* use read macros.) Be
|
|
|
|
# very careful to change only settings that don't alter the API
|
|
|
|
# because this approach bypasses the private build checking. You
|
|
|
|
# can also change settings from pngpriv.h (read pngpriv.h) safely
|
|
|
|
# without API changes. Do that in the same way.
|
|
|
|
#
|
2010-04-28 08:52:16 -04:00
|
|
|
# 3) Write a new '.dfa' file (say 'pngusr.dfa') and in this file
|
|
|
|
# provide override values for setting entries and turn option or
|
|
|
|
# chunk values explicitly 'on' or 'off':
|
|
|
|
#
|
|
|
|
# setting FOO default VALUE
|
|
|
|
# option BAR [on|off]
|
|
|
|
#
|
|
|
|
# Then add this file to the options.awk command line (the *first*
|
2010-08-24 09:37:36 -04:00
|
|
|
# one) after this file. The make macro DFA_XTRA is provided to make
|
|
|
|
# this easier (set it like CPPFLAGS prior to running ./configure).
|
|
|
|
# Look at the builds below contrib/pngminim for some extreme examples
|
|
|
|
# of how this can be used.
|
2010-04-28 08:52:16 -04:00
|
|
|
#
|
|
|
|
# Don't edit this file unless you are contributing a patch to
|
|
|
|
# libpng and need new or modified options/settings.
|
2010-04-16 23:20:18 -04:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2010-04-28 22:26:57 -04:00
|
|
|
# The following causes commented out #undef lines to be written to
|
2010-08-24 09:37:36 -04:00
|
|
|
# pnglibconf.h; this can be stopped by logunsupported=0 in a later
|
2010-04-28 22:26:57 -04:00
|
|
|
# file or on the command line (after pnglibconf.dfa)
|
2010-08-24 22:05:43 -04:00
|
|
|
|
2010-04-28 22:26:57 -04:00
|
|
|
logunsupported = 1
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
# PNG_USER_CONFIG has to be defined on the compiler command line
|
2010-04-16 23:30:26 -04:00
|
|
|
# to cause pngusr.h to be read while constructing pnglibconf.h
|
2010-04-16 23:12:51 -04:00
|
|
|
#
|
|
|
|
# If you create a private DLL you need to define the following
|
|
|
|
# macros in the file 'pngusr.h' and set -DPNG_USER_CONFIG for
|
|
|
|
# compilation (i.e. in CFLAGS.)
|
|
|
|
# #define PNG_USER_PRIVATEBUILD \
|
|
|
|
# <Describes by whom and why this version of the DLL was built>
|
|
|
|
# e.g. #define PNG_USER_PRIVATEBUILD "Build by MyCompany for xyz reasons."
|
|
|
|
# #define PNG_USER_DLLFNAME_POSTFIX <two-letter postfix that serve to
|
|
|
|
# distinguish your DLL from those of the official release. These
|
|
|
|
# correspond to the trailing letters that come after the version
|
|
|
|
# number and must match your private DLL name>
|
|
|
|
# e.g. // private DLL "libpng13gx.dll"
|
|
|
|
# #define PNG_USER_DLLFNAME_POSTFIX "gx"
|
|
|
|
#
|
|
|
|
# The following macros are also at your disposal if you want to complete the
|
|
|
|
# DLL VERSIONINFO structure.
|
|
|
|
# - PNG_USER_VERSIONINFO_COMMENTS
|
|
|
|
# - PNG_USER_VERSIONINFO_COMPANYNAME
|
|
|
|
# - PNG_USER_VERSIONINFO_LEGALTRADEMARKS
|
|
|
|
|
|
|
|
@#ifdef PNG_USER_CONFIG
|
|
|
|
@# include "pngusr.h"
|
|
|
|
@#endif
|
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# This is a special fixup for the Watcom C compiler on Windows, which has
|
|
|
|
# multiple procedure call standards. Unless PNG_API_RULE is set explicitly
|
|
|
|
# (i.e. if it is not defined at this point) it will be forced to '2' here when
|
|
|
|
# using Watcom. This indicates to the other header files that Watcom behaviour
|
|
|
|
# is required where appropriate.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
@#ifdef __WATCOMC__
|
|
|
|
@# ifndef PNG_API_RULE
|
|
|
|
@# define PNG_API_RULE 2 /* Use Watcom calling conventions */
|
|
|
|
@# endif
|
|
|
|
@#endif
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
# Note that PNG_USR_CONFIG only has an effect when building
|
2010-04-16 23:30:26 -04:00
|
|
|
# pnglibconf.h
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-08-24 22:05:43 -04:00
|
|
|
setting USER_CONFIG
|
2010-04-16 23:12:51 -04:00
|
|
|
setting USER_PRIVATEBUILD
|
|
|
|
setting USER_DLLFNAME_POSTFIX
|
|
|
|
setting USER_VERSIONINFO_COMMENTS
|
|
|
|
setting USER_VERSIONINFO_COMPANYNAME
|
|
|
|
setting USER_VERSIONINFO_LEGALTRADEMARKS
|
|
|
|
|
|
|
|
# Record the 'API rule' used to select calling conventions on
|
|
|
|
# those systems that support such things (see all the comments in
|
|
|
|
# pngconf.h)
|
2010-04-16 23:20:18 -04:00
|
|
|
# Changing this setting has a fundamental affect on the PNG ABI,
|
|
|
|
# do not release shared libraries with this changed.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
setting API_RULE default 0
|
|
|
|
|
2012-01-31 08:28:13 -05:00
|
|
|
# This allows a prefix to be added to the front of every API functon name (and
|
|
|
|
# therefore every symbol) by redefining all the function names with the prefix
|
2012-01-31 21:58:02 -05:00
|
|
|
# at the end of pnglibconf.h. It also turns on similar internal symbol renaming
|
|
|
|
# by causing a similar build-time only file, pngprefix.h, to be generated.
|
|
|
|
|
2012-01-31 08:28:13 -05:00
|
|
|
setting PREFIX
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
# Default to using the read macros
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
setting DEFAULT_READ_MACROS default 1
|
|
|
|
|
2010-04-24 10:18:57 -04:00
|
|
|
# The alternative is to call functions to read PNG values, if
|
|
|
|
# the functions are turned *off* the read macros must always
|
|
|
|
# be enabled, so turning this off will actually force the
|
|
|
|
# USE_READ_MACROS option on (see pngconf.h)
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-24 10:18:57 -04:00
|
|
|
option READ_INT_FUNCTIONS requires READ
|
|
|
|
|
|
|
|
# The same for write, but these can only be switched off if
|
|
|
|
# no writing is required at all - hence the use of an 'enables'
|
|
|
|
# not a 'requires' below:
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-28 08:52:16 -04:00
|
|
|
option WRITE_INT_FUNCTIONS disabled
|
2010-04-24 10:18:57 -04:00
|
|
|
option WRITE enables WRITE_INT_FUNCTIONS
|
|
|
|
|
2012-03-16 08:39:49 -04:00
|
|
|
# Error controls
|
|
|
|
#
|
|
|
|
# WARNINGS: normally on, if off no warnings are generated
|
|
|
|
# ERROR_TEXT: normally on, if off errors happen but there is no message
|
|
|
|
# ERROR_NUMBERS: unimplemented feature, therefore disabled
|
|
|
|
# BENIGN_ERRORS: support for just issuing warnings for recoverable errors
|
|
|
|
#
|
|
|
|
# BENIGN_READ_ERRORS:
|
|
|
|
# By default recoverable errors on read should just generate warnings,
|
|
|
|
# generally safe but PNG files that don't conform to the specification will
|
|
|
|
# be accepted if a meaningful result can be produced.
|
|
|
|
#
|
|
|
|
# BENIGN_WRITE_ERRORS:
|
|
|
|
# By default recoverable errors on write should just generate warnings,
|
|
|
|
# not generally safe because this allows the application to write invalid
|
|
|
|
# PNG files. Applications should enable this themselves; it's useful
|
|
|
|
# because it means that a failure to write an ancilliary chunk can often be
|
|
|
|
# ignored.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
option WARNINGS
|
2012-03-16 08:39:49 -04:00
|
|
|
option ERROR_TEXT
|
|
|
|
option ERROR_NUMBERS disabled
|
|
|
|
|
2010-06-25 22:45:31 -04:00
|
|
|
option BENIGN_ERRORS
|
2012-03-16 08:39:49 -04:00
|
|
|
option BENIGN_WRITE_ERRORS requires BENIGN_ERRORS disabled
|
|
|
|
option BENIGN_READ_ERRORS requires BENIGN_ERRORS
|
|
|
|
|
|
|
|
|
|
|
|
# Generic options - affect both read and write.
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option MNG_FEATURES
|
2010-07-29 18:39:14 -04:00
|
|
|
|
|
|
|
# Arithmetic options, the first is the big switch that chooses between internal
|
|
|
|
# floating and fixed point arithmetic implementations - it does not affect any
|
|
|
|
# APIs. The second two (the _POINT settings) switch off individual APIs.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
option FLOATING_ARITHMETIC
|
2010-04-16 23:12:51 -04:00
|
|
|
option FLOATING_POINT enables ok_math
|
|
|
|
option FIXED_POINT enables ok_math
|
|
|
|
|
2011-05-07 11:52:49 -04:00
|
|
|
# The following is always on (defined empty)
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
setting CALLOC_SUPPORTED default
|
|
|
|
|
|
|
|
# This protects us against compilers that run on a windowing system
|
|
|
|
# and thus don't have or would rather us not use the stdio types:
|
|
|
|
# stdin, stdout, and stderr. The only one currently used is stderr
|
|
|
|
# in png_error() and png_warning(). #defining PNG_NO_CONSOLE_IO will
|
|
|
|
# prevent these from being compiled and used. #defining PNG_NO_STDIO
|
|
|
|
# will also prevent these, plus will prevent the entire set of stdio
|
|
|
|
# macros and functions (FILE *, printf, etc.) from being compiled and used,
|
|
|
|
# unless (PNG_DEBUG > 0) has been #defined.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option STDIO
|
|
|
|
option CONSOLE_IO requires STDIO
|
|
|
|
|
|
|
|
# Note: prior to 1.5.0 this option could not be disabled if STDIO
|
2011-05-05 07:49:55 -04:00
|
|
|
# was enabled. Prior to 1.5.3 this option required STDIO
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2011-05-05 07:49:55 -04:00
|
|
|
option TIME_RFC1123
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
# PNG_SETJMP_NOT_SUPPORTED is an old equivalent for NO_SETJMP
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option SETJMP
|
|
|
|
= NO_SETJMP SETJMP_NOT_SUPPORTED
|
|
|
|
|
|
|
|
# If this is disabled it is not possible for apps to get the
|
|
|
|
# values from the 'info' structure, this effectively removes
|
|
|
|
# quite a lot of the READ API.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option EASY_ACCESS
|
|
|
|
|
|
|
|
# Added at libpng-1.2.0
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option USER_MEM
|
|
|
|
|
|
|
|
# Added at libpng-1.4.0
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option IO_STATE
|
|
|
|
|
|
|
|
# This is only for PowerPC big-endian and 680x0 systems
|
|
|
|
# some testing, not enabled by default.
|
|
|
|
# NO LONGER USED
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-28 08:52:16 -04:00
|
|
|
#option READ_BIG_ENDIAN disabled
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
# Allow users to control limits on what the READ code will
|
|
|
|
# read:
|
|
|
|
|
|
|
|
# Added at libpng-1.2.43; adds limit fields to png_struct,
|
|
|
|
# allows some usages of these fields
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option USER_LIMITS
|
|
|
|
|
|
|
|
# Added at libpng-1.2.6; adds setting APIs, allows additional
|
|
|
|
# usage of this field (UTSL)
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option SET_USER_LIMITS requires USER_LIMITS
|
|
|
|
|
|
|
|
# Feature added at libpng-1.4.0, this flag added at 1.4.1
|
|
|
|
option SET_USER_LIMITS enables SET_CHUNK_CACHE_LIMIT
|
|
|
|
# Feature added at libpng-1.4.1, this flag added at 1.4.1
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option SET_USER_LIMITS enables SET_CHUNK_MALLOC_LIMIT
|
|
|
|
|
2012-02-24 12:43:31 -05:00
|
|
|
# Libpng limits.
|
|
|
|
#
|
|
|
|
# If these settings are *not* set libpng will not limit the size of
|
|
|
|
# images or the size of data in ancilliary chunks. This does lead to
|
|
|
|
# security issues if PNG files come from untrusted sources.
|
|
|
|
setting USER_WIDTH_MAX
|
|
|
|
setting USER_HEIGHT_MAX
|
|
|
|
setting USER_CHUNK_CACHE_MAX
|
|
|
|
setting USER_CHUNK_MALLOC_MAX
|
|
|
|
|
|
|
|
# To default all these settings to values that are large but probably
|
|
|
|
# safe turn the SAFE_LIMITS option on; this will cause the value in
|
|
|
|
# pngpriv.h to be used. Individual values can also be set, simply set
|
|
|
|
# them in pngusr.dfa with '@#define PNG_setting value' lines.
|
|
|
|
option SAFE_LIMITS enables USER_LIMITS disabled
|
|
|
|
= SAFE_LIMITS SAFE_LIMITS
|
2010-04-16 23:12:51 -04:00
|
|
|
|
2010-04-16 23:20:18 -04:00
|
|
|
# All of the following options relate to code capabilities for
|
|
|
|
# processing image data before creating a PNG or after reading one.
|
|
|
|
# You can remove these capabilities safely and still be PNG
|
|
|
|
# conformant, however the library that results is still non-standard.
|
|
|
|
# See the comments above about how to change options and settings.
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
# READ options
|
2010-08-26 23:47:59 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ enables READ_INTERLACING
|
2010-08-26 23:47:59 -04:00
|
|
|
|
2010-08-27 15:21:21 -04:00
|
|
|
# Disabling READ_16BIT does not disable reading 16-bit PNG files, but it
|
|
|
|
# forces them to be chopped down to 8-bit, and disables any 16-bit
|
2011-06-14 07:59:46 -04:00
|
|
|
# processing after that has happened. You need to be sure to enable
|
2011-06-18 14:37:11 -04:00
|
|
|
# READ_SCALE_16_TO_8 or READ_STRIP_16_TO_8 when you disable READ_16BIT for
|
|
|
|
# this to work properly. You should disable the other option if you need to
|
2011-12-15 11:18:33 -05:00
|
|
|
# ensure a particular conversion (otherwise the app can chose.)
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-08-27 10:37:06 -04:00
|
|
|
option READ_16BIT requires READ enables 16BIT
|
|
|
|
|
2010-04-17 12:47:58 -04:00
|
|
|
option READ_QUANTIZE requires READ
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
option READ_TRANSFORMS requires READ
|
2010-12-06 19:45:59 -05:00
|
|
|
= NO_READ_TRANSFORMS READ_TRANSFORMS_NOT_SUPPORTED
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
option READ_EXPAND requires READ_TRANSFORMS
|
2011-02-12 10:01:20 -05:00
|
|
|
option READ_EXPAND_16 requires READ_TRANSFORMS READ_16BIT enables READ_EXPAND
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ_SHIFT requires READ_TRANSFORMS
|
|
|
|
option READ_PACK requires READ_TRANSFORMS
|
|
|
|
option READ_BGR requires READ_TRANSFORMS
|
2010-08-27 10:37:06 -04:00
|
|
|
option READ_SWAP requires READ_TRANSFORMS READ_16BIT
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ_PACKSWAP requires READ_TRANSFORMS
|
|
|
|
option READ_INVERT requires READ_TRANSFORMS
|
2011-05-07 22:00:28 -04:00
|
|
|
option READ_BACKGROUND requires READ_TRANSFORMS enables READ_STRIP_ALPHA
|
2011-06-18 14:37:11 -04:00
|
|
|
option READ_STRIP_16_TO_8 requires READ_TRANSFORMS
|
|
|
|
option READ_SCALE_16_TO_8 requires READ_TRANSFORMS
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ_FILLER requires READ_TRANSFORMS
|
2010-04-28 08:52:16 -04:00
|
|
|
option READ_GAMMA requires READ_TRANSFORMS enables READ_gAMA
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ_GRAY_TO_RGB requires READ_TRANSFORMS
|
2011-05-07 22:00:28 -04:00
|
|
|
|
|
|
|
option READ_ALPHA_MODE requires READ_TRANSFORMS enables READ_GAMMA
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ_SWAP_ALPHA requires READ_TRANSFORMS
|
|
|
|
option READ_INVERT_ALPHA requires READ_TRANSFORMS
|
|
|
|
option READ_STRIP_ALPHA requires READ_TRANSFORMS
|
|
|
|
option READ_USER_TRANSFORM requires READ_TRANSFORMS
|
|
|
|
option READ_RGB_TO_GRAY requires READ_TRANSFORMS
|
|
|
|
|
|
|
|
option PROGRESSIVE_READ requires READ
|
|
|
|
option SEQUENTIAL_READ requires READ
|
|
|
|
|
|
|
|
# You can define PNG_NO_PROGRESSIVE_READ if you don't do progressive reading.
|
|
|
|
# This is not talking about interlacing capability! You'll still have
|
|
|
|
# interlacing unless you turn off the following which is required
|
|
|
|
# for PNG-compliant decoders. (In other words, do not do this - in
|
|
|
|
# fact it can't be disabled from the command line!)
|
|
|
|
#option READ_INTERLACING requires READ
|
|
|
|
|
|
|
|
option READ_COMPOSITE_NODIV requires READ
|
2010-12-06 19:45:59 -05:00
|
|
|
= NO_READ_COMPOSITE_NODIV NO_READ_COMPOSITED_NODIV
|
2010-04-16 23:12:51 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# Inch conversions
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
option INCH_CONVERSIONS
|
2010-12-06 19:45:59 -05:00
|
|
|
= INCH_CONVERSIONS INCH_CONVERSIONS
|
2010-04-16 23:12:51 -04:00
|
|
|
|
2011-04-17 19:34:22 -04:00
|
|
|
# API to build a grayscale palette
|
|
|
|
|
|
|
|
option BUILD_GRAYSCALE_PALETTE
|
|
|
|
|
2011-06-11 00:24:58 -04:00
|
|
|
# IN DEVELOPMENT
|
|
|
|
# These are currently experimental features; define them if you want
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2011-06-11 00:24:58 -04:00
|
|
|
# NOTHING HERE
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
# WRITE options
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option WRITE
|
|
|
|
|
2010-08-27 15:21:21 -04:00
|
|
|
# Disabling WRITE_16BIT prevents 16-bit PNG files from being
|
|
|
|
# generated.
|
2010-08-26 23:47:59 -04:00
|
|
|
option WRITE_16BIT requires WRITE enables 16BIT
|
2010-08-26 18:14:07 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option WRITE_TRANSFORMS requires WRITE
|
2010-12-06 19:45:59 -05:00
|
|
|
= NO_WRITE_TRANSFORMS WRITE_TRANSFORMS_NOT_SUPPORTED
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
option WRITE_SHIFT requires WRITE_TRANSFORMS
|
|
|
|
option WRITE_PACK requires WRITE_TRANSFORMS
|
|
|
|
option WRITE_BGR requires WRITE_TRANSFORMS
|
2010-08-27 10:37:06 -04:00
|
|
|
option WRITE_SWAP requires WRITE_TRANSFORMS WRITE_16BIT
|
2010-04-16 23:12:51 -04:00
|
|
|
option WRITE_PACKSWAP requires WRITE_TRANSFORMS
|
|
|
|
option WRITE_INVERT requires WRITE_TRANSFORMS
|
|
|
|
option WRITE_FILLER requires WRITE_TRANSFORMS
|
|
|
|
option WRITE_SWAP_ALPHA requires WRITE_TRANSFORMS
|
|
|
|
option WRITE_INVERT_ALPHA requires WRITE_TRANSFORMS
|
|
|
|
option WRITE_USER_TRANSFORM requires WRITE_TRANSFORMS
|
|
|
|
|
|
|
|
# This is not required for PNG-compliant encoders, but can cause
|
|
|
|
# trouble if left undefined
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option WRITE_INTERLACING requires WRITE
|
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# The following depends, internally, on WEIGHT_SHIFT and COST_SHIFT
|
|
|
|
# where are set below.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-31 07:34:36 -04:00
|
|
|
option WRITE_WEIGHTED_FILTER requires WRITE
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
option WRITE_FLUSH requires WRITE
|
|
|
|
|
2011-01-22 18:36:34 -05:00
|
|
|
# Note: these can be turned off explicitly if not required by the
|
|
|
|
# apps implementing the user transforms
|
2010-04-16 23:12:51 -04:00
|
|
|
option USER_TRANSFORM_PTR if READ_USER_TRANSFORM WRITE_USER_TRANSFORM
|
2011-01-22 18:36:34 -05:00
|
|
|
option USER_TRANSFORM_INFO if READ_USER_TRANSFORM WRITE_USER_TRANSFORM
|
2010-04-16 23:12:51 -04:00
|
|
|
|
2011-03-31 21:53:47 -04:00
|
|
|
# This enables API to set compression parameters for compressing
|
|
|
|
# non-IDAT chunks (zTXt, iTXt, iCCP, and unknown chunks). This feature
|
|
|
|
# was added at libpng-1.5.3.
|
|
|
|
option WRITE_CUSTOMIZE_ZTXT_COMPRESSION requires WRITE
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
# Any chunks you are not interested in, you can undef here. The
|
|
|
|
# ones that allocate memory may be expecially important (hIST,
|
|
|
|
# tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info
|
|
|
|
# a bit smaller.
|
|
|
|
|
|
|
|
# The size of the png_text structure changed in libpng-1.0.6 when
|
|
|
|
# iTXt support was added. iTXt support was turned off by default through
|
|
|
|
# libpng-1.2.x, to support old apps that malloc the png_text structure
|
|
|
|
# instead of calling png_set_text() and letting libpng malloc it. It
|
|
|
|
# was turned on by default in libpng-1.4.0.
|
|
|
|
|
|
|
|
option READ_ANCILLARY_CHUNKS requires READ
|
|
|
|
# PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated.
|
|
|
|
= NO_READ_ANCILLARY_CHUNKS READ_ANCILLARY_CHUNKS_NOT_SUPPORTED
|
|
|
|
|
|
|
|
option WRITE_ANCILLARY_CHUNKS requires WRITE
|
|
|
|
# PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated.
|
|
|
|
= NO_WRITE_ANCILLARY_CHUNKS WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED
|
|
|
|
|
|
|
|
# These options disable *all* the text chunks if turned off
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ_TEXT requires READ_ANCILLARY_CHUNKS enables TEXT
|
|
|
|
option WRITE_TEXT requires WRITE_ANCILLARY_CHUNKS enables TEXT
|
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# Moved to pnglibconf.h at libpng-1.5.0
|
|
|
|
# Feature support: in 1.4 this was in pngconf.h, but the following
|
|
|
|
# features have no affect on the libpng API. Add library
|
|
|
|
# only features to the end of this list. Add features that
|
|
|
|
# affect the API above. (Note: the list of chunks follows
|
|
|
|
# the library-only settings.)
|
|
|
|
#
|
|
|
|
# BUILD TIME ONLY OPTIONS
|
|
|
|
# These options do not affect the API but rather alter how the
|
|
|
|
# API is implemented, they get recorded in pnglibconf.h, but
|
|
|
|
# can't be changed by the application.
|
|
|
|
|
2012-03-21 08:55:46 -04:00
|
|
|
# Colorspace support (enabled as required); just the support for colorant
|
|
|
|
# information. Gamma support, likewise, is just support for the gamma
|
|
|
|
# information, READ_GAMMA is required for gamma transformations (so it
|
|
|
|
# is possible to read PNG gamma without enabling all the libpng transform
|
|
|
|
# code - do this for applications that do their own gamma processing)
|
|
|
|
#
|
|
|
|
# As of 1.6.0 COLORSPACE is only useful if the application processes the
|
|
|
|
# information; this is because the library does not do any colorspace
|
|
|
|
# processing, it just validates the data in the PNG file.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2012-03-21 08:55:46 -04:00
|
|
|
option GAMMA disabled
|
|
|
|
option COLORSPACE enables GAMMA disabled
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2012-03-29 00:36:12 -04:00
|
|
|
# When an ICC profile is read, or png_set, it will be checked for a match
|
|
|
|
# against known sRGB profiles if the sRGB handling is enabled. This
|
|
|
|
# setting controls how much work is done during the check:
|
2010-07-29 18:39:14 -04:00
|
|
|
#
|
2012-03-29 00:36:12 -04:00
|
|
|
# 0: Just validate the profile MD5 signature if present, otherwise use
|
|
|
|
# the checks in option 1.
|
|
|
|
#
|
|
|
|
# 1: Additionally check the length, intent and adler32 checksum of the
|
|
|
|
# actual data. If enabled this will reject known profiles that have
|
|
|
|
# had the rendering intent in the header changed as well as other edits
|
|
|
|
# done without updating the checksum. See the discussion below.
|
|
|
|
#
|
|
|
|
# 2: Additionally checksum all the data using the ethernet CRC32 algorithm.
|
|
|
|
# This makes it more difficult to fake profiles and makes it less likely
|
|
|
|
# to get a false positive on profiles with no signature, but is probably
|
|
|
|
# just a waste of time since all currently approved ICC sRGB profiles have
|
|
|
|
# a secure MD5 signature.
|
|
|
|
#
|
|
|
|
# The rendering intent. An ICC profile stores an intended rendering intent,
|
|
|
|
# but does not include the value in the signature. The intent is documented
|
|
|
|
# as the intent that should be used when combining two profiles. The sRGB
|
|
|
|
# profile is intended, however, to be used with any of the four defined intents.
|
|
|
|
# For this reason the sRGB chunk includes an 'intent' to be used when displaying
|
|
|
|
# the image (intent is really a property of the image not the profile.)
|
|
|
|
#
|
|
|
|
# Unfortunately the iCCP chunk does not. It may therefore be that some
|
|
|
|
# applications modify the intent in profiles (including sRGB profiles) to work
|
|
|
|
# round this problem. Selecting an option other than option '0' will cause such
|
|
|
|
# modified profiles to be rejected.
|
|
|
|
#
|
|
|
|
# Security. The use of Adler32 and CRC32 checksums does not help significantly
|
|
|
|
# with any security issues. It is relatively easy to produce arbitrary profiles
|
|
|
|
# with the required checksums on current computer systems. Nevertheless
|
|
|
|
# security does not seem to be an issue because the only consequence of a false
|
|
|
|
# positive is a false assertion that the profile is an sRGB profile. This might
|
|
|
|
# be used to hide data from libpng using applications, but it doesn't seem
|
|
|
|
# possible to damage them.
|
|
|
|
|
|
|
|
setting sRGB_PROFILE_CHECKS default 2
|
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# Artificially align memory - the code typically aligns to 8 byte
|
|
|
|
# boundaries if this is switched on, it's a small waste of space
|
|
|
|
# but can help (in theory) on some architectures. Only affects
|
|
|
|
# internal structures. Added at libpng 1.4.0
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
option ALIGN_MEMORY
|
|
|
|
|
|
|
|
# Buggy compilers (e.g., gcc 2.7.2.2) need PNG_NO_POINTER_INDEXING
|
|
|
|
# See png[wr]util.c, normally this should always be *on*
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
option POINTER_INDEXING
|
|
|
|
|
|
|
|
# Other defines for things like memory and the like can go here.
|
|
|
|
|
|
|
|
# BUILD TIME SETTINGS
|
|
|
|
# Like build time options these do not affect the API, but they
|
|
|
|
# may be useful to applications because they record details of
|
|
|
|
# how the API will behave particularly with regard to overall
|
|
|
|
# accuracy.
|
|
|
|
|
|
|
|
# This controls how fine the quantizing gets. As this allocates
|
|
|
|
# a largish chunk of memory (32K), those who are not as concerned
|
|
|
|
# with quantizing quality can decrease some or all of these.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
setting QUANTIZE_RED_BITS default 5
|
|
|
|
setting QUANTIZE_GREEN_BITS default 5
|
|
|
|
setting QUANTIZE_BLUE_BITS default 5
|
|
|
|
|
|
|
|
# This controls how fine the gamma correction becomes when you
|
|
|
|
# are only interested in 8 bits anyway. Increasing this value
|
|
|
|
# results in more memory being used, and more pow() functions
|
|
|
|
# being called to fill in the gamma tables. Don't set this value
|
|
|
|
# less then 8, and even that may not work (I haven't tested it).
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
setting MAX_GAMMA_8 default 11
|
|
|
|
|
|
|
|
# This controls how much a difference in gamma we can tolerate before
|
|
|
|
# we actually start doing gamma conversion, it's a fixed point value,
|
|
|
|
# so the default below is 0.05, meaning libpng ignores corrections in
|
|
|
|
# the range 0.95 to 1.05
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
setting GAMMA_THRESHOLD_FIXED default 5000
|
|
|
|
|
|
|
|
# Scaling factor for filter heuristic weighting calculations
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
setting WEIGHT_SHIFT default 8
|
|
|
|
setting COST_SHIFT default 3
|
|
|
|
|
|
|
|
# Precision to use when converting a floating point value to a PNG
|
|
|
|
# extension format string in an sCAL chunk (only relevant if the
|
|
|
|
# floating point API is enabled)
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
setting sCAL_PRECISION default 5
|
|
|
|
|
|
|
|
# This is the size of the compression buffer, and thus the size of
|
|
|
|
# an IDAT chunk. Make this whatever size you feel is best for your
|
|
|
|
# machine. One of these will be allocated per png_struct. When this
|
|
|
|
# is full, it writes the data to the disk, and does some other
|
|
|
|
# calculations. Making this an extremely small size may slow
|
|
|
|
# the library down, but you may want to experiment to determine
|
|
|
|
# where it becomes significant, if you are concerned with memory
|
|
|
|
# usage. Note that zlib allocates at least 32Kb also. For readers,
|
|
|
|
# this describes the size of the buffer available to read the data in.
|
|
|
|
# Unless this gets smaller than the size of a row (compressed),
|
|
|
|
# it should not make much difference how big this is.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
setting ZBUF_SIZE default 8192
|
|
|
|
|
2012-03-09 10:15:18 -05:00
|
|
|
# This is the size of the decompression buffer used when counting or checking
|
|
|
|
# the decompressed size of an LZ stream from a compressed ancilliary chunk; the
|
|
|
|
# decompressed data is never used so a different size may be optimal. This size
|
|
|
|
# was determined using contrib/libtests/timepng.c with compressed zTXt data
|
|
|
|
# around 11MByte in size. Slight speed improvements (up to about 14% in
|
|
|
|
# timepng) can be achieved by very large increases (to 32kbyte) on regular data,
|
|
|
|
# but highly compressible data shows only around 2% improvement. The size is
|
|
|
|
# chosen to minimize the effects of DoS attacks based on using very large
|
|
|
|
# amounts of highly compressible data.
|
|
|
|
|
|
|
|
setting INFLATE_BUF_SIZE default 1024
|
|
|
|
|
|
|
|
# This is the maximum amount of IDAT data that the sequential reader will
|
|
|
|
# process at one time. The setting does not affect the size of IDAT chunks
|
|
|
|
# read, just the amount read at once. Neither does it affect the progressive
|
|
|
|
# reader, which processes just the amount of data the application gives it.
|
|
|
|
# The sequential reader is currently unable to process more than one IDAT at
|
|
|
|
# once - it has to read and process each one in turn. There is no point setting
|
|
|
|
# this to a value larger than the IDAT chunks typically encountered (it would
|
|
|
|
# just waste memory) but there may be some point in reducing it below the value
|
|
|
|
# of ZBUF_SIZE (the size of IDAT chunks written by libpng.)
|
|
|
|
|
|
|
|
setting IDAT_READ_SIZE default PNG_ZBUF_SIZE
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
# Ancillary chunks
|
|
|
|
chunk bKGD
|
2012-03-21 08:55:46 -04:00
|
|
|
chunk cHRM enables COLORSPACE
|
|
|
|
chunk gAMA enables GAMMA
|
2010-04-16 23:12:51 -04:00
|
|
|
chunk hIST
|
2012-03-21 08:55:46 -04:00
|
|
|
chunk iCCP enables COLORSPACE GAMMA
|
2011-04-01 14:15:36 -04:00
|
|
|
chunk iTXt
|
2010-04-16 23:12:51 -04:00
|
|
|
chunk oFFs
|
|
|
|
chunk pCAL
|
|
|
|
chunk pHYs
|
|
|
|
chunk sBIT
|
2012-03-21 08:55:46 -04:00
|
|
|
chunk sCAL
|
2010-04-16 23:12:51 -04:00
|
|
|
chunk sPLT
|
2012-03-21 08:55:46 -04:00
|
|
|
chunk sRGB enables COLORSPACE GAMMA
|
2010-04-16 23:12:51 -04:00
|
|
|
chunk tEXt requires TEXT
|
|
|
|
chunk tIME
|
|
|
|
chunk tRNS
|
2011-04-01 14:15:36 -04:00
|
|
|
chunk zTXt
|
2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
# This only affects support of the optional PLTE chunk in RGB and RGBA
|
|
|
|
# images. Notice that READ_ANCILLARY_CHUNKS therefore disables part
|
|
|
|
# of the regular chunk reading too.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option READ_OPT_PLTE requires READ_ANCILLARY_CHUNKS
|
|
|
|
|
|
|
|
option READ_UNKNOWN_CHUNKS requires READ
|
|
|
|
option READ_UNKNOWN_CHUNKS enables UNKNOWN_CHUNKS READ_USER_CHUNKS
|
|
|
|
option READ_USER_CHUNKS requires READ enables USER_CHUNKS
|
|
|
|
|
|
|
|
option CONVERT_tIME requires WRITE_ANCILLARY_CHUNKS
|
|
|
|
# The "tm" structure is not supported on WindowsCE
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
@#ifdef _WIN32_WCE
|
|
|
|
@# define PNG_NO_CONVERT_tIME
|
|
|
|
@#endif
|
|
|
|
|
|
|
|
option WRITE_FILTER requires WRITE
|
|
|
|
|
|
|
|
option WRITE_UNKNOWN_CHUNKS requires WRITE
|
|
|
|
|
|
|
|
option HANDLE_AS_UNKNOWN
|
|
|
|
|
|
|
|
option SAVE_INT_32 requires WRITE
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# png_save_int_32 is required by the ancillary chunks oFFs and pCAL
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2011-06-14 07:59:46 -04:00
|
|
|
# added at libpng-1.5.4
|
|
|
|
|
2011-05-05 17:55:20 -04:00
|
|
|
option WRITE_OPTIMIZE_CMF requires WRITE
|
|
|
|
|
2011-05-05 18:35:39 -04:00
|
|
|
option READ_COMPRESSED_TEXT disabled
|
2011-04-01 14:15:36 -04:00
|
|
|
option READ_iCCP enables READ_COMPRESSED_TEXT
|
|
|
|
option READ_iTXt enables READ_COMPRESSED_TEXT
|
|
|
|
option READ_zTXt enables READ_COMPRESSED_TEXT
|
|
|
|
option READ_COMPRESSED_TEXT enables READ_TEXT
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option WRITE_oFFs enables SAVE_INT_32
|
|
|
|
option WRITE_pCAL enables SAVE_INT_32
|
|
|
|
|
2011-05-05 18:35:39 -04:00
|
|
|
option WRITE_COMPRESSED_TEXT disabled
|
2011-04-01 14:15:36 -04:00
|
|
|
option WRITE_iCCP enables WRITE_COMPRESSED_TEXT
|
|
|
|
option WRITE_iTXt enables WRITE_COMPRESSED_TEXT
|
|
|
|
option WRITE_zTXt enables WRITE_COMPRESSED_TEXT
|
|
|
|
option WRITE_COMPRESSED_TEXT enables WRITE_TEXT
|
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
# Turn this off to disable png_read_png() and png_write_png() and
|
|
|
|
# leave the row_pointers member out of the info structure.
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-16 23:12:51 -04:00
|
|
|
option INFO_IMAGE
|
2011-11-07 23:33:49 -05:00
|
|
|
|
2012-03-01 22:39:29 -05:00
|
|
|
# added at libpng-1.5.10
|
|
|
|
# Turn this off to disable warning about invalid palette index and
|
|
|
|
# leave the num_palette_max member out of the png structure.
|
|
|
|
|
2012-03-02 23:50:03 -05:00
|
|
|
option CHECK_FOR_INVALID_INDEX enables READ_CHECK_FOR_INVALID_INDEX
|
|
|
|
option CHECK_FOR_INVALID_INDEX enables WRITE_CHECK_FOR_INVALID_INDEX
|
2012-03-01 22:39:29 -05:00
|
|
|
option READ_CHECK_FOR_INVALID_INDEX requires READ CHECK_FOR_INVALID_INDEX
|
|
|
|
option WRITE_CHECK_FOR_INVALID_INDEX requires WRITE CHECK_FOR_INVALID_INDEX
|
|
|
|
|
|
|
|
# Simplified API options (added at libpng-1.6.0)
|
2011-11-07 23:33:49 -05:00
|
|
|
# Read:
|
|
|
|
option SIMPLIFIED_READ requires SEQUENTIAL_READ READ_TRANSFORMS SETJMP
|
2012-03-16 08:39:49 -04:00
|
|
|
option SIMPLIFIED_READ requires BENIGN_ERRORS
|
2011-11-07 23:33:49 -05:00
|
|
|
option SIMPLIFIED_READ enables READ_EXPAND READ_16BIT READ_EXPAND_16
|
|
|
|
option SIMPLIFIED_READ enables READ_SCALE_16_TO_8 READ_RGB_TO_GRAY
|
|
|
|
option SIMPLIFIED_READ enables READ_ALPHA_MODE READ_BACKGROUND READ_STRIP_ALPHA
|
|
|
|
option SIMPLIFIED_READ enables READ_FILLER READ_SWAP
|
|
|
|
|
|
|
|
option SIMPLIFIED_READ_AFIRST requires SIMPLIFIED_READ disabled
|
|
|
|
option READ_SWAP_ALPHA enables SIMPLIFIED_READ_AFIRST
|
|
|
|
|
|
|
|
option SIMPLIFIED_READ_BGR requires SIMPLIFIED_READ disabled
|
|
|
|
option READ_BGR enables SIMPLIFIED_READ_BGR
|
|
|
|
|
|
|
|
# Write:
|
|
|
|
option SIMPLIFIED_WRITE requires WRITE STDIO SETJMP
|
|
|
|
option SIMPLIFIED_WRITE enables WRITE_SWAP WRITE_gAMA WRITE_sRGB WRITE_cHRM
|
|
|
|
|
|
|
|
option SIMPLIFIED_WRITE_AFIRST requires SIMPLIFIED_WRITE disabled
|
|
|
|
option WRITE_SWAP_ALPHA enables SIMPLIFIED_WRITE_AFIRST
|
|
|
|
|
|
|
|
option SIMPLIFIED_WRITE_BGR requires SIMPLIFIED_WRITE disabled
|
|
|
|
option WRITE_BGR enables SIMPLIFIED_WRITE_BGR
|
|
|
|
|
|
|
|
# Formats:
|
|
|
|
option FORMAT_AFIRST if SIMPLIFIED_READ_AFIRST SIMPLIFIED_WRITE_AFIRST
|
|
|
|
option FORMAT_BGR if SIMPLIFIED_READ_BGR SIMPLIFIED_WRITE_BGR
|