pngfunc.h 519 B

12345678910111213141516171819202122232425262728293031
  1. #include "png.h" /* includes zlib.h and setjmp.h */
  2. typedef struct _jmpbuf_wrapper
  3. {
  4. jmp_buf jmpbuf;
  5. } jmpbuf_wrapper;
  6. #ifndef TRUE
  7. # define TRUE 1
  8. #endif
  9. #ifndef FALSE
  10. # define FALSE 0
  11. #endif
  12. #ifndef NONE
  13. # define NONE 0
  14. #endif
  15. #define MAXCOLORS 256
  16. #define MAXCOMMENTS 256
  17. /* function prototypes */
  18. static void pnmtopng_error_handler(png_structp png_ptr, png_const_charp msg);
  19. #if 0
  20. /* unused */
  21. static int filter = -1;
  22. #endif
  23. static jmpbuf_wrapper pnmtopng_jmpbuf_struct;
  24. typedef unsigned char xelval;