fukasawa e60969
# write.dfa
fukasawa e60969
#  Build time configuration of libpng
fukasawa e60969
#
fukasawa e60969
# Author: John Bowler
fukasawa e60969
# Copyright: (c) John Bowler, 2013
fukasawa e60969
# Usage rights:
fukasawa e60969
#  To the extent possible under law, the author has waived all copyright and
fukasawa e60969
#  related or neighboring rights to this work.  This work is published from:
fukasawa e60969
#  United States.
fukasawa e60969
#
fukasawa e60969
# Build libpng with no read support and minimal write support.
fukasawa e60969
#
fukasawa e60969
fukasawa e60969
everything = off
fukasawa e60969
fukasawa e60969
# Switch on the write code - this makes a minimalist encoder
fukasawa e60969
fukasawa e60969
option WRITE on
fukasawa e60969
fukasawa e60969
# Choose fixed or floating point APIs and arithmetic.  The choices are
fukasawa e60969
# independent but normally they will match.  It is typically better to use the
fukasawa e60969
# floating point if you have floating point hardware.  If you don't know, or
fukasawa e60969
# (perhaps) to make libpng smaller used fixed point throughout.
fukasawa e60969
fukasawa e60969
#Fixed point:
fukasawa e60969
#option FIXED_POINT on
fukasawa e60969
#option FLOATING_ARITHMETIC off
fukasawa e60969
fukasawa e60969
#Floating point:
fukasawa e60969
option FLOATING_POINT on
fukasawa e60969
option FLOATING_ARITHMETIC on
fukasawa e60969
fukasawa e60969
# Basic error handling, IO and user memory support.  The latter allows the
fukasawa e60969
# application program to provide its own implementations of 'malloc' and 'free'.
fukasawa e60969
option SETJMP on
fukasawa e60969
option STDIO on
fukasawa e60969
option USER_MEM on
fukasawa e60969
fukasawa e60969
# Everything else is optional.  Unlike the read code in libpng the write code
fukasawa e60969
# does not need to deal with arbitrary formats, so only add support for things
fukasawa e60969
# you really do write!  For example you might only write sRGB images, sometimes
fukasawa e60969
# with transparency and never write 16 bit images, so:
fukasawa e60969
option WRITE_sRGB on
fukasawa e60969
option WRITE_tRNS on
fukasawa e60969
#option WRITE_16BIT off (this is the default with 'everything = off')