GR32_PngCompilerSwitches.inc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. { ------------------------------------------------------------------------- }
  2. { Various compiler switches to control the behaviour of th GR32_PNG library }
  3. { ------------------------------------------------------------------------- }
  4. { Enable to check the CRC of each chunk in a PNG file and the CRC of the
  5. container itself. In case of a mismatch an exception is raised.
  6. The default is enabled. }
  7. {$DEFINE CheckCRC}
  8. { Enable to validate every read operation. Usually the necessary length of the
  9. input stream for a chunk is checked before reading the chunk, but some
  10. checks might still be missing. By enabling this option every data request
  11. that can not be fulfilled will raise an exception. This check leads to an
  12. unnecessary higher CPU usage, so enable only when an error in the library is
  13. suspected.
  14. The default is disabled. }
  15. {-$DEFINE ValidateEveryReadOperation}
  16. { The company base2 offers a library called ZLibEx, which uses optimized object
  17. files compiled with the latest and fastest C compilers. The performance boosts
  18. especially for the latest IDEs might be small, but it is worth to try this
  19. library. It can be downloaded from: base2ti.com
  20. The default is disabled. }
  21. {-$DEFINE ZLibEx}
  22. { When writing PNG files, it is possible to store a gamma correction along with
  23. the PNG file. Though no user definalbe handling for gamma correction has been
  24. implemented, it is possible to store a simple 1:1 correction table in the PNG
  25. file. This will increase the file, but might improve compatibility.
  26. The default is disabled. }
  27. {-$DEFINE StoreGamma}