2010-04-28 08:54:14 -04:00
|
|
|
# pngminim/preader/pngusr.dfa
|
|
|
|
#
|
2011-01-04 10:57:06 -05:00
|
|
|
# Copyright (c) 2010-2011 Glenn Randers-Pehrson
|
2010-04-28 08:54:14 -04:00
|
|
|
#
|
|
|
|
# This code is released under the libpng license.
|
|
|
|
# For conditions of distribution and use, see the disclaimer
|
|
|
|
# and license in png.h
|
|
|
|
|
|
|
|
# First all the build options off:
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-04-28 08:54:14 -04:00
|
|
|
everything = off
|
|
|
|
|
|
|
|
# Just switch on the progressive read code
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-04-28 08:54:14 -04:00
|
|
|
option PROGRESSIVE_READ on
|
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# You may choose fixed or floating point APIs:
|
|
|
|
# option FLOATING_POINT on
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
option FIXED_POINT on
|
2010-07-29 21:28:36 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
# You must chose the internal fixed point implementation or to
|
|
|
|
# use the system floating point. The latter is considerably
|
|
|
|
# smaller (by about 1kbyte on an x86 system):
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-07-29 18:39:14 -04:00
|
|
|
option FLOATING_ARITHMETIC on
|
|
|
|
# option FLOATING_ARITHMETIC off
|
2010-04-28 08:54:14 -04:00
|
|
|
|
|
|
|
# Your program will probably need other options. The example
|
|
|
|
# program here, rpng2-x, requires the following. Take a look
|
|
|
|
# at pnglibconf.h to find out the full set of what has to be
|
|
|
|
# enabled to make the following work.
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-04-28 08:54:14 -04:00
|
|
|
option SETJMP on
|
|
|
|
option STDIO on
|
|
|
|
option READ_bKGD on
|
|
|
|
option READ_GAMMA on
|
|
|
|
option READ_EXPAND on
|
2011-06-17 21:38:24 -04:00
|
|
|
option READ_STRIP_16_TO_8 on
|
2010-04-28 08:54:14 -04:00
|
|
|
option READ_GRAY_TO_RGB on
|