29 #ifdef PNG_USER_CONFIG 30 # ifndef PNG_USER_PRIVATEBUILD 31 # define PNG_USER_PRIVATEBUILD 37 #ifdef PNG_CONFIGURE_LIBPNG 66 # pragma message("PNG_LIBPNG_SPECIALBUILD (and deprecated SPECIALBUILD)\ 67 are now LIBPNG reserved macros. Use PNG_USER_PRIVATEBUILD instead.") 71 # pragma message("PRIVATEBUILD is deprecated.\ 72 Use PNG_USER_PRIVATEBUILD instead.") 73 # define PNG_USER_PRIVATEBUILD PRIVATEBUILD 77 #ifndef PNG_VERSION_INFO_ONLY 83 #if !defined(PNG_NO_WARN_UNINITIALIZED_ROW) && \ 84 !defined(PNG_WARN_UNINITIALIZED_ROW) 85 # define PNG_WARN_UNINITIALIZED_ROW 1 97 # define PNG_UNUSED(param) (void)param; 114 #ifndef PNG_ZBUF_SIZE 115 # define PNG_ZBUF_SIZE 8192 120 #ifndef PNG_NO_READ_SUPPORTED 121 # define PNG_READ_SUPPORTED 126 #ifndef PNG_NO_WRITE_SUPPORTED 127 # define PNG_WRITE_SUPPORTED 131 #ifdef PNG_ALLOW_BENIGN_ERRORS 132 # define png_benign_error png_warning 133 # define png_chunk_benign_error png_chunk_warning 135 # ifndef PNG_BENIGN_ERRORS_SUPPORTED 136 # define png_benign_error png_error 137 # define png_chunk_benign_error png_chunk_error 142 #if !defined(PNG_NO_WARNINGS) && !defined(PNG_WARNINGS_SUPPORTED) 143 # define PNG_WARNINGS_SUPPORTED 146 #if !defined(PNG_NO_ERROR_TEXT) && !defined(PNG_ERROR_TEXT_SUPPORTED) 147 # define PNG_ERROR_TEXT_SUPPORTED 150 #if !defined(PNG_NO_CHECK_cHRM) && !defined(PNG_CHECK_cHRM_SUPPORTED) 151 # define PNG_CHECK_cHRM_SUPPORTED 157 #if !defined(PNG_1_0_X) && !defined(PNG_NO_MNG_FEATURES) 158 # ifndef PNG_MNG_FEATURES_SUPPORTED 159 # define PNG_MNG_FEATURES_SUPPORTED 163 #ifndef PNG_NO_FLOATING_POINT_SUPPORTED 164 # ifndef PNG_FLOATING_POINT_SUPPORTED 165 # define PNG_FLOATING_POINT_SUPPORTED 177 #if defined(MAXSEG_64K) && !defined(PNG_MAX_MALLOC_64K) 178 # define PNG_MAX_MALLOC_64K 216 # ifdef PNG_BUILD_DLL 217 # undef PNG_BUILD_DLL 229 # ifdef PNG_BUILD_DLL 272 #if !defined(PNG_NO_STDIO) && !defined(PNG_STDIO_SUPPORTED) 273 # define PNG_STDIO_SUPPORTED 277 # include <windows.h> 279 # define PNG_NO_CONSOLE_IO 281 # define PNG_ABORT() exit(-1) 288 # ifndef PNG_CONSOLE_IO_SUPPORTED 289 # ifndef PNG_NO_CONSOLE_IO 290 # define PNG_NO_CONSOLE_IO 296 # ifndef PNG_NO_CONSOLE_IO 297 # define PNG_NO_CONSOLE_IO 311 #if !(defined PNG_NO_CONSOLE_IO) && !defined(PNG_CONSOLE_IO_SUPPORTED) 312 # define PNG_CONSOLE_IO_SUPPORTED 325 # define PNGARG(arglist) OF(arglist) 329 # define PNGARG(arglist) () 330 # ifndef PNG_TYPECAST_NULL 331 # define PNG_TYPECAST_NULL 334 # define PNGARG(arglist) arglist 347 # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \ 348 defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC) 354 #if !defined(MACOS) && !defined(RISCOS) && !defined(_WIN32_WCE) 355 # include <sys/types.h> 358 #if !defined(PNG_SETJMP_NOT_SUPPORTED) && !defined(PNG_NO_SETJMP_SUPPORTED) 359 # define PNG_SETJMP_SUPPORTED 362 #ifdef PNG_SETJMP_SUPPORTED 373 # ifndef PNG_SKIP_SETJMP_CHECK 376 # define PNG_SAVE_BSD_SOURCE 383 __pngconf.h__
in libpng already includes setjmp.h;
384 __dont__ include it again.;
393 # ifdef PNG_SAVE_BSD_SOURCE 397 # undef PNG_SAVE_BSD_SOURCE 403 # include <strings.h> 426 #ifdef PNG_FLOATING_POINT_SUPPORTED 432 # if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__) 438 # if defined(_AMIGA) && defined(__SASC) && defined(_M68881) 447 #if (defined(__MWERKS__) && defined(WIN32)) || defined(__STDC__) 448 # define PNG_ALWAYS_EXTERN 452 #if defined(__TURBOC__) && defined(__MSDOS__) 458 #if defined(_MSC_VER) && (defined(WIN32) || defined(_Windows) || \ 459 defined(_WINDOWS) || defined(_WIN32) || defined(__WIN32__)) 467 #ifndef PNG_DITHER_RED_BITS 468 # define PNG_DITHER_RED_BITS 5 470 #ifndef PNG_DITHER_GREEN_BITS 471 # define PNG_DITHER_GREEN_BITS 5 473 #ifndef PNG_DITHER_BLUE_BITS 474 # define PNG_DITHER_BLUE_BITS 5 484 #ifndef PNG_MAX_GAMMA_8 485 # define PNG_MAX_GAMMA_8 11 491 #ifndef PNG_GAMMA_THRESHOLD 492 # define PNG_GAMMA_THRESHOLD 0.05 503 # define PNG_CONST const 541 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 542 # ifndef PNG_NO_iTXt_SUPPORTED 543 # define PNG_NO_iTXt_SUPPORTED 545 # ifndef PNG_NO_READ_iTXt 546 # define PNG_NO_READ_iTXt 548 # ifndef PNG_NO_WRITE_iTXt 549 # define PNG_NO_WRITE_iTXt 553 #if !defined(PNG_NO_iTXt_SUPPORTED) 554 # if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt) 555 # define PNG_READ_iTXt 557 # if !defined(PNG_WRITE_iTXt_SUPPORTED) && !defined(PNG_NO_WRITE_iTXt) 558 # define PNG_WRITE_iTXt 568 #ifdef PNG_LEGACY_SUPPORTED 569 # define PNG_NO_FREE_ME 570 # define PNG_NO_READ_UNKNOWN_CHUNKS 571 # define PNG_NO_WRITE_UNKNOWN_CHUNKS 572 # define PNG_NO_HANDLE_AS_UNKNOWN 573 # define PNG_NO_READ_USER_CHUNKS 574 # define PNG_NO_READ_iCCP 575 # define PNG_NO_WRITE_iCCP 576 # define PNG_NO_READ_iTXt 577 # define PNG_NO_WRITE_iTXt 578 # define PNG_NO_READ_sCAL 579 # define PNG_NO_WRITE_sCAL 580 # define PNG_NO_READ_sPLT 581 # define PNG_NO_WRITE_sPLT 582 # define PNG_NO_INFO_IMAGE 583 # define PNG_NO_READ_RGB_TO_GRAY 584 # define PNG_NO_READ_USER_TRANSFORM 585 # define PNG_NO_WRITE_USER_TRANSFORM 586 # define PNG_NO_USER_MEM 587 # define PNG_NO_READ_EMPTY_PLTE 588 # define PNG_NO_MNG_FEATURES 589 # define PNG_NO_FIXED_POINT_SUPPORTED 593 #if !defined(PNG_FLOATING_POINT_SUPPORTED) || \ 594 !defined(PNG_NO_FIXED_POINT_SUPPORTED) 595 # define PNG_FIXED_POINT_SUPPORTED 598 #ifndef PNG_NO_FREE_ME 599 # define PNG_FREE_ME_SUPPORTED 602 #ifdef PNG_READ_SUPPORTED 604 #if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \ 605 !defined(PNG_NO_READ_TRANSFORMS) 606 # define PNG_READ_TRANSFORMS_SUPPORTED 609 #ifdef PNG_READ_TRANSFORMS_SUPPORTED 610 # ifndef PNG_NO_READ_EXPAND 611 # define PNG_READ_EXPAND_SUPPORTED 613 # ifndef PNG_NO_READ_SHIFT 614 # define PNG_READ_SHIFT_SUPPORTED 616 # ifndef PNG_NO_READ_PACK 617 # define PNG_READ_PACK_SUPPORTED 619 # ifndef PNG_NO_READ_BGR 620 # define PNG_READ_BGR_SUPPORTED 622 # ifndef PNG_NO_READ_SWAP 623 # define PNG_READ_SWAP_SUPPORTED 625 # ifndef PNG_NO_READ_PACKSWAP 626 # define PNG_READ_PACKSWAP_SUPPORTED 628 # ifndef PNG_NO_READ_INVERT 629 # define PNG_READ_INVERT_SUPPORTED 631 # ifndef PNG_NO_READ_DITHER 632 # define PNG_READ_DITHER_SUPPORTED 634 # ifndef PNG_NO_READ_BACKGROUND 635 # define PNG_READ_BACKGROUND_SUPPORTED 637 # ifndef PNG_NO_READ_16_TO_8 638 # define PNG_READ_16_TO_8_SUPPORTED 640 # ifndef PNG_NO_READ_FILLER 641 # define PNG_READ_FILLER_SUPPORTED 643 # ifndef PNG_NO_READ_GAMMA 644 # define PNG_READ_GAMMA_SUPPORTED 646 # ifndef PNG_NO_READ_GRAY_TO_RGB 647 # define PNG_READ_GRAY_TO_RGB_SUPPORTED 649 # ifndef PNG_NO_READ_SWAP_ALPHA 650 # define PNG_READ_SWAP_ALPHA_SUPPORTED 652 # ifndef PNG_NO_READ_INVERT_ALPHA 653 # define PNG_READ_INVERT_ALPHA_SUPPORTED 655 # ifndef PNG_NO_READ_STRIP_ALPHA 656 # define PNG_READ_STRIP_ALPHA_SUPPORTED 658 # ifndef PNG_NO_READ_USER_TRANSFORM 659 # define PNG_READ_USER_TRANSFORM_SUPPORTED 661 # ifndef PNG_NO_READ_RGB_TO_GRAY 662 # define PNG_READ_RGB_TO_GRAY_SUPPORTED 667 #if !defined(PNG_NO_PROGRESSIVE_READ) && \ 668 !defined(PNG_PROGRESSIVE_READ_NOT_SUPPORTED) 669 # define PNG_PROGRESSIVE_READ_SUPPORTED 672 #define PNG_READ_INTERLACING_SUPPORTED 675 #if !defined(PNG_NO_SEQUENTIAL_READ) && \ 676 !defined(PNG_SEQUENTIAL_READ_SUPPORTED) && \ 677 !defined(PNG_NO_SEQUENTIAL_READ_SUPPORTED) 678 # define PNG_SEQUENTIAL_READ_SUPPORTED 681 #define PNG_READ_INTERLACING_SUPPORTED 683 #ifndef PNG_NO_READ_COMPOSITE_NODIV 684 # ifndef PNG_NO_READ_COMPOSITED_NODIV 685 # define PNG_READ_COMPOSITE_NODIV_SUPPORTED 689 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 692 #ifndef PNG_NO_READ_EMPTY_PLTE 693 # define PNG_READ_EMPTY_PLTE_SUPPORTED 699 #ifdef PNG_WRITE_SUPPORTED 701 # if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \ 702 !defined(PNG_NO_WRITE_TRANSFORMS) 703 # define PNG_WRITE_TRANSFORMS_SUPPORTED 706 #ifdef PNG_WRITE_TRANSFORMS_SUPPORTED 707 # ifndef PNG_NO_WRITE_SHIFT 708 # define PNG_WRITE_SHIFT_SUPPORTED 710 # ifndef PNG_NO_WRITE_PACK 711 # define PNG_WRITE_PACK_SUPPORTED 713 # ifndef PNG_NO_WRITE_BGR 714 # define PNG_WRITE_BGR_SUPPORTED 716 # ifndef PNG_NO_WRITE_SWAP 717 # define PNG_WRITE_SWAP_SUPPORTED 719 # ifndef PNG_NO_WRITE_PACKSWAP 720 # define PNG_WRITE_PACKSWAP_SUPPORTED 722 # ifndef PNG_NO_WRITE_INVERT 723 # define PNG_WRITE_INVERT_SUPPORTED 725 # ifndef PNG_NO_WRITE_FILLER 726 # define PNG_WRITE_FILLER_SUPPORTED 728 # ifndef PNG_NO_WRITE_SWAP_ALPHA 729 # define PNG_WRITE_SWAP_ALPHA_SUPPORTED 732 # ifndef PNG_NO_WRITE_INVERT_ALPHA 733 # define PNG_WRITE_INVERT_ALPHA_SUPPORTED 736 # ifndef PNG_NO_WRITE_USER_TRANSFORM 737 # define PNG_WRITE_USER_TRANSFORM_SUPPORTED 741 #if !defined(PNG_NO_WRITE_INTERLACING_SUPPORTED) && \ 742 !defined(PNG_WRITE_INTERLACING_SUPPORTED) 743 #define PNG_WRITE_INTERLACING_SUPPORTED 748 #if !defined(PNG_NO_WRITE_WEIGHTED_FILTER) && \ 749 !defined(PNG_WRITE_WEIGHTED_FILTER) && \ 750 defined(PNG_FLOATING_POINT_SUPPORTED) 751 # define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED 754 #ifndef PNG_NO_WRITE_FLUSH 755 # define PNG_WRITE_FLUSH_SUPPORTED 758 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 760 #ifndef PNG_NO_WRITE_EMPTY_PLTE 761 # define PNG_WRITE_EMPTY_PLTE_SUPPORTED 768 # ifndef PNG_NO_ERROR_NUMBERS 769 # define PNG_ERROR_NUMBERS_SUPPORTED 773 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 774 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) 775 # ifndef PNG_NO_USER_TRANSFORM_PTR 776 # define PNG_USER_TRANSFORM_PTR_SUPPORTED 781 # define PNG_TIME_RFC1123_SUPPORTED 800 #if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED) 801 # define PNG_EASY_ACCESS_SUPPORTED 809 #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE) 810 # ifndef PNG_OPTIMIZED_CODE_SUPPORTED 811 # define PNG_OPTIMIZED_CODE_SUPPORTED 815 #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_ASSEMBLER_CODE) 816 # ifndef PNG_ASSEMBLER_CODE_SUPPORTED 817 # define PNG_ASSEMBLER_CODE_SUPPORTED 820 # if defined(__GNUC__) && defined(__x86_64__) && (__GNUC__ < 4) 822 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 823 # define PNG_NO_MMX_CODE 828 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 829 # define PNG_NO_MMX_CODE 833 # if (defined(__MWERKS__) && ((__MWERKS__ < 0x0900) || macintosh)) 834 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 835 # define PNG_NO_MMX_CODE 839 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 840 # define PNG_MMX_CODE_SUPPORTED 848 #if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED) 849 # define PNG_USER_MEM_SUPPORTED 855 # ifndef PNG_SET_USER_LIMITS_SUPPORTED 856 # ifndef PNG_NO_SET_USER_LIMITS 857 # define PNG_SET_USER_LIMITS_SUPPORTED 863 #ifndef PNG_USER_LIMITS_SUPPORTED 864 # ifndef PNG_NO_USER_LIMITS 865 # define PNG_USER_LIMITS_SUPPORTED 872 #ifndef PNG_USER_WIDTH_MAX 873 # define PNG_USER_WIDTH_MAX 1000000L 875 #ifndef PNG_USER_HEIGHT_MAX 876 # define PNG_USER_HEIGHT_MAX 1000000L 882 #ifndef PNG_USER_CHUNK_CACHE_MAX 883 # define PNG_USER_CHUNK_CACHE_MAX 32765 887 #ifndef PNG_USER_CHUNK_MALLOC_MAX 888 # define PNG_USER_CHUNK_MALLOC_MAX 8000000 891 #ifndef PNG_LITERAL_SHARP 892 # define PNG_LITERAL_SHARP 0x23 894 #ifndef PNG_LITERAL_LEFT_SQUARE_BRACKET 895 # define PNG_LITERAL_LEFT_SQUARE_BRACKET 0x5b 897 #ifndef PNG_LITERAL_RIGHT_SQUARE_BRACKET 898 # define PNG_LITERAL_RIGHT_SQUARE_BRACKET 0x5d 902 #ifndef PNG_STRING_NEWLINE 903 #define PNG_STRING_NEWLINE "\n" 930 #if !defined(PNG_NO_POINTER_INDEXING) && \ 931 !defined(PNG_POINTER_INDEXING_SUPPORTED) 932 # define PNG_POINTER_INDEXING_SUPPORTED 947 #if defined(PNG_READ_SUPPORTED) && \ 948 !defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ 949 !defined(PNG_NO_READ_ANCILLARY_CHUNKS) 950 # define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED 953 #if defined(PNG_WRITE_SUPPORTED) && \ 954 !defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ 955 !defined(PNG_NO_WRITE_ANCILLARY_CHUNKS) 956 # define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED 959 #ifdef PNG_READ_ANCILLARY_CHUNKS_SUPPORTED 961 #ifdef PNG_NO_READ_TEXT 962 # define PNG_NO_READ_iTXt 963 # define PNG_NO_READ_tEXt 964 # define PNG_NO_READ_zTXt 966 #ifndef PNG_NO_READ_bKGD 967 # define PNG_READ_bKGD_SUPPORTED 968 # define PNG_bKGD_SUPPORTED 970 #ifndef PNG_NO_READ_cHRM 971 # define PNG_READ_cHRM_SUPPORTED 972 # define PNG_cHRM_SUPPORTED 974 #ifndef PNG_NO_READ_gAMA 975 # define PNG_READ_gAMA_SUPPORTED 976 # define PNG_gAMA_SUPPORTED 978 #ifndef PNG_NO_READ_hIST 979 # define PNG_READ_hIST_SUPPORTED 980 # define PNG_hIST_SUPPORTED 982 #ifndef PNG_NO_READ_iCCP 983 # define PNG_READ_iCCP_SUPPORTED 984 # define PNG_iCCP_SUPPORTED 986 #ifndef PNG_NO_READ_iTXt 987 # ifndef PNG_READ_iTXt_SUPPORTED 988 # define PNG_READ_iTXt_SUPPORTED 990 # ifndef PNG_iTXt_SUPPORTED 991 # define PNG_iTXt_SUPPORTED 994 #ifndef PNG_NO_READ_oFFs 995 # define PNG_READ_oFFs_SUPPORTED 996 # define PNG_oFFs_SUPPORTED 998 #ifndef PNG_NO_READ_pCAL 999 # define PNG_READ_pCAL_SUPPORTED 1000 # define PNG_pCAL_SUPPORTED 1002 #ifndef PNG_NO_READ_sCAL 1003 # define PNG_READ_sCAL_SUPPORTED 1004 # define PNG_sCAL_SUPPORTED 1006 #ifndef PNG_NO_READ_pHYs 1007 # define PNG_READ_pHYs_SUPPORTED 1008 # define PNG_pHYs_SUPPORTED 1010 #ifndef PNG_NO_READ_sBIT 1011 # define PNG_READ_sBIT_SUPPORTED 1012 # define PNG_sBIT_SUPPORTED 1014 #ifndef PNG_NO_READ_sPLT 1015 # define PNG_READ_sPLT_SUPPORTED 1016 # define PNG_sPLT_SUPPORTED 1018 #ifndef PNG_NO_READ_sRGB 1019 # define PNG_READ_sRGB_SUPPORTED 1020 # define PNG_sRGB_SUPPORTED 1022 #ifndef PNG_NO_READ_tEXt 1023 # define PNG_READ_tEXt_SUPPORTED 1024 # define PNG_tEXt_SUPPORTED 1026 #ifndef PNG_NO_READ_tIME 1027 # define PNG_READ_tIME_SUPPORTED 1028 # define PNG_tIME_SUPPORTED 1030 #ifndef PNG_NO_READ_tRNS 1031 # define PNG_READ_tRNS_SUPPORTED 1032 # define PNG_tRNS_SUPPORTED 1034 #ifndef PNG_NO_READ_zTXt 1035 # define PNG_READ_zTXt_SUPPORTED 1036 # define PNG_zTXt_SUPPORTED 1038 #ifndef PNG_NO_READ_OPT_PLTE 1039 # define PNG_READ_OPT_PLTE_SUPPORTED 1041 #if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \ 1042 defined(PNG_READ_zTXt_SUPPORTED) 1043 # define PNG_READ_TEXT_SUPPORTED 1044 # define PNG_TEXT_SUPPORTED 1049 #ifndef PNG_NO_READ_UNKNOWN_CHUNKS 1050 # define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED 1051 # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED 1052 # define PNG_UNKNOWN_CHUNKS_SUPPORTED 1055 #if !defined(PNG_NO_READ_USER_CHUNKS) && \ 1056 defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED) 1057 # define PNG_READ_USER_CHUNKS_SUPPORTED 1058 # define PNG_USER_CHUNKS_SUPPORTED 1059 # ifdef PNG_NO_READ_UNKNOWN_CHUNKS 1060 # undef PNG_NO_READ_UNKNOWN_CHUNKS 1062 # ifdef PNG_NO_HANDLE_AS_UNKNOWN 1063 # undef PNG_NO_HANDLE_AS_UNKNOWN 1067 #ifndef PNG_NO_HANDLE_AS_UNKNOWN 1068 # ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED 1069 # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED 1073 #ifdef PNG_WRITE_SUPPORTED 1074 #ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED 1076 #ifdef PNG_NO_WRITE_TEXT 1077 # define PNG_NO_WRITE_iTXt 1078 # define PNG_NO_WRITE_tEXt 1079 # define PNG_NO_WRITE_zTXt 1081 #ifndef PNG_NO_WRITE_bKGD 1082 # define PNG_WRITE_bKGD_SUPPORTED 1083 # ifndef PNG_bKGD_SUPPORTED 1084 # define PNG_bKGD_SUPPORTED 1087 #ifndef PNG_NO_WRITE_cHRM 1088 # define PNG_WRITE_cHRM_SUPPORTED 1089 # ifndef PNG_cHRM_SUPPORTED 1090 # define PNG_cHRM_SUPPORTED 1093 #ifndef PNG_NO_WRITE_gAMA 1094 # define PNG_WRITE_gAMA_SUPPORTED 1095 # ifndef PNG_gAMA_SUPPORTED 1096 # define PNG_gAMA_SUPPORTED 1099 #ifndef PNG_NO_WRITE_hIST 1100 # define PNG_WRITE_hIST_SUPPORTED 1101 # ifndef PNG_hIST_SUPPORTED 1102 # define PNG_hIST_SUPPORTED 1105 #ifndef PNG_NO_WRITE_iCCP 1106 # define PNG_WRITE_iCCP_SUPPORTED 1107 # ifndef PNG_iCCP_SUPPORTED 1108 # define PNG_iCCP_SUPPORTED 1111 #ifndef PNG_NO_WRITE_iTXt 1112 # ifndef PNG_WRITE_iTXt_SUPPORTED 1113 # define PNG_WRITE_iTXt_SUPPORTED 1115 # ifndef PNG_iTXt_SUPPORTED 1116 # define PNG_iTXt_SUPPORTED 1119 #ifndef PNG_NO_WRITE_oFFs 1120 # define PNG_WRITE_oFFs_SUPPORTED 1121 # ifndef PNG_oFFs_SUPPORTED 1122 # define PNG_oFFs_SUPPORTED 1125 #ifndef PNG_NO_WRITE_pCAL 1126 # define PNG_WRITE_pCAL_SUPPORTED 1127 # ifndef PNG_pCAL_SUPPORTED 1128 # define PNG_pCAL_SUPPORTED 1131 #ifndef PNG_NO_WRITE_sCAL 1132 # define PNG_WRITE_sCAL_SUPPORTED 1133 # ifndef PNG_sCAL_SUPPORTED 1134 # define PNG_sCAL_SUPPORTED 1137 #ifndef PNG_NO_WRITE_pHYs 1138 # define PNG_WRITE_pHYs_SUPPORTED 1139 # ifndef PNG_pHYs_SUPPORTED 1140 # define PNG_pHYs_SUPPORTED 1143 #ifndef PNG_NO_WRITE_sBIT 1144 # define PNG_WRITE_sBIT_SUPPORTED 1145 # ifndef PNG_sBIT_SUPPORTED 1146 # define PNG_sBIT_SUPPORTED 1149 #ifndef PNG_NO_WRITE_sPLT 1150 # define PNG_WRITE_sPLT_SUPPORTED 1151 # ifndef PNG_sPLT_SUPPORTED 1152 # define PNG_sPLT_SUPPORTED 1155 #ifndef PNG_NO_WRITE_sRGB 1156 # define PNG_WRITE_sRGB_SUPPORTED 1157 # ifndef PNG_sRGB_SUPPORTED 1158 # define PNG_sRGB_SUPPORTED 1161 #ifndef PNG_NO_WRITE_tEXt 1162 # define PNG_WRITE_tEXt_SUPPORTED 1163 # ifndef PNG_tEXt_SUPPORTED 1164 # define PNG_tEXt_SUPPORTED 1167 #ifndef PNG_NO_WRITE_tIME 1168 # define PNG_WRITE_tIME_SUPPORTED 1169 # ifndef PNG_tIME_SUPPORTED 1170 # define PNG_tIME_SUPPORTED 1173 #ifndef PNG_NO_WRITE_tRNS 1174 # define PNG_WRITE_tRNS_SUPPORTED 1175 # ifndef PNG_tRNS_SUPPORTED 1176 # define PNG_tRNS_SUPPORTED 1179 #ifndef PNG_NO_WRITE_zTXt 1180 # define PNG_WRITE_zTXt_SUPPORTED 1181 # ifndef PNG_zTXt_SUPPORTED 1182 # define PNG_zTXt_SUPPORTED 1185 #if defined(PNG_WRITE_iTXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \ 1186 defined(PNG_WRITE_zTXt_SUPPORTED) 1187 # define PNG_WRITE_TEXT_SUPPORTED 1188 # ifndef PNG_TEXT_SUPPORTED 1189 # define PNG_TEXT_SUPPORTED 1193 #ifdef PNG_WRITE_tIME_SUPPORTED 1194 # ifndef PNG_NO_CONVERT_tIME 1197 # ifndef PNG_CONVERT_tIME_SUPPORTED 1198 # define PNG_CONVERT_tIME_SUPPORTED 1206 #if !defined(PNG_NO_WRITE_FILTER) && !defined(PNG_WRITE_FILTER_SUPPORTED) 1207 # define PNG_WRITE_FILTER_SUPPORTED 1210 #ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS 1211 # define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED 1212 # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED 1213 # define PNG_UNKNOWN_CHUNKS_SUPPORTED 1217 #ifndef PNG_NO_HANDLE_AS_UNKNOWN 1218 # ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED 1219 # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED 1228 #ifndef PNG_NO_INFO_IMAGE 1229 # define PNG_INFO_IMAGE_SUPPORTED 1233 #ifdef PNG_CONVERT_tIME_SUPPORTED 1257 # define png_sizeof(x) png_convert_size(sizeof(x)) 1260 # define png_sizeof(x) sizeof(x) 1275 # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__) 1281 # if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__) 1282 # define PNG_MAX_MALLOC_64K 1287 # define USE_FAR_KEYWORD 1306 # define USE_FAR_KEYWORD 1307 # define FARDATA FAR 1337 #ifndef PNG_NO_STDIO 1345 #ifdef PNG_FLOATING_POINT_SUPPORTED 1358 #ifdef PNG_FLOATING_POINT_SUPPORTED 1365 #if defined(PNG_1_0_X) || defined(PNG_1_2_X) 1395 #if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL)) 1404 # ifdef PNG_USE_GLOBAL_ARRAYS 1405 # undef PNG_USE_GLOBAL_ARRAYS 1407 # ifndef PNG_USE_LOCAL_ARRAYS 1408 # define PNG_USE_LOCAL_ARRAYS 1411 # if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS) 1412 # ifdef PNG_USE_GLOBAL_ARRAYS 1413 # undef PNG_USE_GLOBAL_ARRAYS 1417 # if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS) 1418 # define PNG_USE_LOCAL_ARRAYS 1426 #if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS) 1427 # if defined(PNG_NO_GLOBAL_ARRAYS) || \ 1428 (defined(__GNUC__) && defined(PNG_DLL)) || defined(_MSC_VER) 1429 # define PNG_USE_LOCAL_ARRAYS 1431 # define PNG_USE_GLOBAL_ARRAYS 1437 # define PNGAPI __cdecl 1449 #if defined(__MINGW32__) && !defined(PNG_MODULEDEF) 1450 # ifndef PNG_NO_MODULEDEF 1451 # define PNG_NO_MODULEDEF 1455 #if !defined(PNG_IMPEXP) && defined(PNG_BUILD_DLL) && !defined(PNG_NO_MODULEDEF) 1459 #if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \ 1460 (( defined(_Windows) || defined(_WINDOWS) || \ 1461 defined(WIN32) || defined(_WIN32) || defined(__WIN32__) )) 1464 # if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800)) 1465 # define PNGAPI __cdecl 1467 # define PNGAPI _cdecl 1471 # if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \ 1478 # define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol 1479 # define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol 1482 # if defined(_MSC_VER) || defined(__BORLANDC__) 1483 # if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500) 1484 # define PNG_EXPORT PNG_EXPORT_TYPE1 1486 # define PNG_EXPORT PNG_EXPORT_TYPE2 1487 # ifdef PNG_BUILD_DLL 1488 # define PNG_IMPEXP __export 1498 # ifdef PNG_BUILD_DLL 1499 # define PNG_IMPEXP __declspec(dllexport) 1501 # define PNG_IMPEXP __declspec(dllimport) 1506 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__) 1508 # define PNGAPI _System 1523 #ifdef PNG_BUILDSYMS 1525 # define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END 1527 # ifdef PNG_USE_GLOBAL_ARRAYS 1528 # ifndef PNG_EXPORT_VAR 1529 # define PNG_EXPORT_VAR(type) PNG_DATA_EXPORT 1535 # define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol 1538 #ifdef PNG_USE_GLOBAL_ARRAYS 1539 # ifndef PNG_EXPORT_VAR 1540 # define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type 1544 #ifdef PNG_PEDANTIC_WARNINGS 1545 # ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED 1546 # define PNG_PEDANTIC_WARNINGS_SUPPORTED 1550 #ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED 1557 # ifndef PNG_USE_RESULT 1558 # define PNG_USE_RESULT __attribute__((__warn_unused_result__)) 1560 # ifndef PNG_NORETURN 1561 # define PNG_NORETURN __attribute__((__noreturn__)) 1563 # ifndef PNG_ALLOCATED 1564 # define PNG_ALLOCATED __attribute__((__malloc__)) 1571 # ifndef PNG_DEPRECATED 1572 # define PNG_DEPRECATED __attribute__((__deprecated__)) 1574 # ifndef PNG_DEPSTRUCT 1575 # define PNG_DEPSTRUCT __attribute__((__deprecated__)) 1577 # ifndef PNG_PRIVATE 1579 # define PNG_PRIVATE \ 1580 __attribute__((warning("This function is not exported by libpng."))) 1582 # define PNG_PRIVATE \ 1583 __attribute__((__deprecated__)) 1589 #ifndef PNG_DEPRECATED 1590 # define PNG_DEPRECATED 1592 #ifndef PNG_USE_RESULT 1593 # define PNG_USE_RESULT 1595 #ifndef PNG_NORETURN 1596 # define PNG_NORETURN 1598 #ifndef PNG_ALLOCATED 1599 # define PNG_ALLOCATED 1601 #ifndef PNG_DEPSTRUCT 1602 # define PNG_DEPSTRUCT 1605 # define PNG_PRIVATE 1613 # define PNG_ABORT() abort() 1616 #ifdef PNG_SETJMP_SUPPORTED 1617 # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf) 1619 # define png_jmpbuf(png_ptr) \ 1620 (LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED) 1623 #ifdef USE_FAR_KEYWORD 1627 # define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK)) 1628 # define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK)) 1629 # define png_snprintf _fsnprintf 1630 # define png_strlen _fstrlen 1631 # define png_memcmp _fmemcmp 1632 # define png_memcpy _fmemcpy 1633 # define png_memset _fmemset 1635 # define CVT_PTR(ptr) (ptr) 1636 # define CVT_PTR_NOCHECK(ptr) (ptr) 1637 # ifndef PNG_NO_SNPRINTF 1639 # define png_snprintf _snprintf 1640 # define png_snprintf2 _snprintf 1641 # define png_snprintf6 _snprintf 1643 # define png_snprintf snprintf 1644 # define png_snprintf2 snprintf 1645 # define png_snprintf6 snprintf 1654 # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1) 1655 # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2) 1656 # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \ 1657 sprintf(s1,fmt,x1,x2,x3,x4,x5,x6) 1659 # define png_strlen strlen 1660 # define png_memcmp memcmp 1661 # define png_memcpy memcpy 1662 # define png_memset memset 1669 #if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K) 1670 # undef PNG_ZBUF_SIZE 1671 # define PNG_ZBUF_SIZE 65536L
png_uint_32 FAR *FAR * png_uint_32pp
png_fixed_point FAR * png_fixed_point_p
PNG_CONST char FAR * png_const_charp
png_int_16 FAR *FAR * png_int_16pp
png_byte FAR *FAR * png_bytepp
png_int_32 FAR * png_int_32p
PNG_CONST char FAR *FAR * png_const_charpp
unsigned short png_uint_16
png_uint_16 FAR * png_uint_16p
png_fixed_point FAR *FAR * png_fixed_point_pp
png_int_32 FAR *FAR * png_int_32pp
png_uint_16 FAR *FAR * png_uint_16pp
double FAR *FAR * png_doublepp
png_int_32 png_fixed_point
char FAR *FAR * png_charpp
char FAR *FAR *FAR * png_charppp
png_uint_32 FAR * png_uint_32p
unsigned long png_uint_32
png_int_16 FAR * png_int_16p
z_stream FAR * png_zstreamp