write.dfa 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # write.dfa
  2. # Build time configuration of libpng
  3. #
  4. # Author: John Bowler
  5. # Copyright: (c) John Bowler, 2013
  6. # Usage rights:
  7. # To the extent possible under law, the author has waived all copyright and
  8. # related or neighboring rights to this work. This work is published from:
  9. # United States.
  10. #
  11. # Build libpng with no read support and minimal write support.
  12. #
  13. everything = off
  14. # Switch on the write code - this makes a minimalist encoder
  15. option WRITE on
  16. # Choose fixed or floating point APIs and arithmetic. The choices are
  17. # independent but normally they will match. It is typically better to use the
  18. # floating point if you have floating point hardware. If you don't know, or
  19. # (perhaps) to make libpng smaller used fixed point throughout.
  20. #Fixed point:
  21. #option FIXED_POINT on
  22. #option FLOATING_ARITHMETIC off
  23. #Floating point:
  24. option FLOATING_POINT on
  25. option FLOATING_ARITHMETIC on
  26. # Basic error handling, IO and user memory support. The latter allows the
  27. # application program to provide its own implementations of 'malloc' and 'free'.
  28. option SETJMP on
  29. option STDIO on
  30. option USER_MEM on
  31. # Everything else is optional. Unlike the read code in libpng the write code
  32. # does not need to deal with arbitrary formats, so only add support for things
  33. # you really do write! For example you might only write sRGB images, sometimes
  34. # with transparency and never write 16 bit images, so:
  35. option WRITE_sRGB on
  36. option WRITE_tRNS on
  37. #option WRITE_16BIT off (this is the default with 'everything = off')