s_read.dfa 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # s_read.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 simplified read support (only). This builds a minimal
  12. # libpng able to read all PNG formats and convert them into a small number of
  13. # well understood memory formats.
  14. #
  15. everything = off
  16. option SIMPLIFIED_READ on
  17. # It isn't necessary to chose fixed or floating point for the APIs because the
  18. # simplified API doesn't need fixed or floating point numbers. It is necessary
  19. # to chose an internal math implementation. The default (because of 'everything
  20. # = off') is fixed point - turn the floating point implementation on if you have
  21. # hardware floating point or prefer your software floating point implementation.
  22. option FLOATING_ARITHMETIC on
  23. # This is not strictly necessary, but without it the message strings in the API
  24. # will not be filled in
  25. option ERROR_TEXT on
  26. # Switching these options on enables the 'AFIRST' and 'BGR' formats - you don't
  27. # need this if you don't use them, they just allow the in-memory layout to be
  28. # changed to match common hardware formats.
  29. option SIMPLIFIED_READ_AFIRST on
  30. option SIMPLIFIED_READ_BGR on