1*a67afe4dSAndroid Build Coastguard Worker# pngminim/encoder/pngusr.dfa 2*a67afe4dSAndroid Build Coastguard Worker# 3*a67afe4dSAndroid Build Coastguard Worker# Copyright (c) 2010-2013 Glenn Randers-Pehrson 4*a67afe4dSAndroid Build Coastguard Worker# 5*a67afe4dSAndroid Build Coastguard Worker# This code is released under the libpng license. 6*a67afe4dSAndroid Build Coastguard Worker# For conditions of distribution and use, see the disclaimer 7*a67afe4dSAndroid Build Coastguard Worker# and license in png.h 8*a67afe4dSAndroid Build Coastguard Worker 9*a67afe4dSAndroid Build Coastguard Worker# First all the build options off: 10*a67afe4dSAndroid Build Coastguard Worker 11*a67afe4dSAndroid Build Coastguard Workereverything = off 12*a67afe4dSAndroid Build Coastguard Worker 13*a67afe4dSAndroid Build Coastguard Worker# Switch on the write code - this makes a minimalist encoder 14*a67afe4dSAndroid Build Coastguard Worker 15*a67afe4dSAndroid Build Coastguard Workeroption WRITE on 16*a67afe4dSAndroid Build Coastguard Worker 17*a67afe4dSAndroid Build Coastguard Worker# These 2 options are required if you need to read PBM (P1 or P4) files. 18*a67afe4dSAndroid Build Coastguard Workeroption WRITE_INVERT on 19*a67afe4dSAndroid Build Coastguard Workeroption WRITE_PACK on 20*a67afe4dSAndroid Build Coastguard Worker 21*a67afe4dSAndroid Build Coastguard Worker# You must choose fixed or floating point arithmetic: 22*a67afe4dSAndroid Build Coastguard Worker# option FLOATING_POINT on 23*a67afe4dSAndroid Build Coastguard Worker 24*a67afe4dSAndroid Build Coastguard Workeroption FIXED_POINT on 25*a67afe4dSAndroid Build Coastguard Worker 26*a67afe4dSAndroid Build Coastguard Worker# You must chose the internal fixed point implementation or to 27*a67afe4dSAndroid Build Coastguard Worker# use the system floating point. The latter is considerably 28*a67afe4dSAndroid Build Coastguard Worker# smaller (by about 1kbyte on an x86 system): 29*a67afe4dSAndroid Build Coastguard Worker# option FLOATING_ARITHMETIC on 30*a67afe4dSAndroid Build Coastguard Worker 31*a67afe4dSAndroid Build Coastguard Workeroption FLOATING_ARITHMETIC off 32*a67afe4dSAndroid Build Coastguard Worker 33*a67afe4dSAndroid Build Coastguard Worker# Your program will probably need other options. The example 34*a67afe4dSAndroid Build Coastguard Worker# program here, pnm2pngm, requires the following. Take a look 35*a67afe4dSAndroid Build Coastguard Worker# at pnglibconf.h to find out the full set of what has to be 36*a67afe4dSAndroid Build Coastguard Worker# enabled to make the following work. 37*a67afe4dSAndroid Build Coastguard Worker 38*a67afe4dSAndroid Build Coastguard Workeroption SETJMP on 39*a67afe4dSAndroid Build Coastguard Workeroption STDIO on 40