2010-04-28 08:54:14 -04:00
|
|
|
# pngminim/encoder/pngusr.dfa
|
|
|
|
#
|
2013-03-02 15:58:22 -05:00
|
|
|
# Copyright (c) 2010-2013 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
|
|
|
everything = off
|
2010-08-27 10:37:06 -04:00
|
|
|
|
2010-04-28 08:54:14 -04:00
|
|
|
# Switch on the write code - this makes a minimalist encoder
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-04-28 08:54:14 -04:00
|
|
|
option WRITE on
|
2013-11-23 19:28:26 -05:00
|
|
|
|
|
|
|
# These 2 options are required if you need to read PBM (P1 or P4) files.
|
2013-11-22 16:16:04 -05:00
|
|
|
option WRITE_INVERT on
|
|
|
|
option WRITE_PACK on
|
2010-04-28 08:54:14 -04:00
|
|
|
|
|
|
|
# You must choose fixed or floating point arithmetic:
|
2010-07-29 21:28:36 -04:00
|
|
|
# option FLOATING_POINT on
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-07-29 21:28:36 -04:00
|
|
|
option FIXED_POINT on
|
|
|
|
|
|
|
|
# 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):
|
|
|
|
# option FLOATING_ARITHMETIC on
|
2010-08-27 15:21:21 -04:00
|
|
|
|
2010-07-29 21:28:36 -04:00
|
|
|
option FLOATING_ARITHMETIC off
|
2010-04-28 08:54:14 -04:00
|
|
|
|
|
|
|
# Your program will probably need other options. The example
|
|
|
|
# program here, pnm2pngm, 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
|