26 #ifdef PNG_USER_CONFIG 27 # ifndef PNG_USER_PRIVATEBUILD 28 # define PNG_USER_PRIVATEBUILD 34 #ifdef PNG_CONFIGURE_LIBPNG 63 # pragma message("PNG_LIBPNG_SPECIALBUILD (and deprecated SPECIALBUILD)\ 64 are now LIBPNG reserved macros. Use PNG_USER_PRIVATEBUILD instead.") 68 # pragma message("PRIVATEBUILD is deprecated.\ 69 Use PNG_USER_PRIVATEBUILD instead.") 70 # define PNG_USER_PRIVATEBUILD PRIVATEBUILD 74 #ifndef PNG_VERSION_INFO_ONLY 80 #if !defined(PNG_NO_WARN_UNINITIALIZED_ROW) && \ 81 !defined(PNG_WARN_UNINITIALIZED_ROW) 82 # define PNG_WARN_UNINITIALIZED_ROW 1 100 # define PNG_ZBUF_SIZE 8192 105 #ifndef PNG_NO_READ_SUPPORTED 106 # define PNG_READ_SUPPORTED 111 #ifndef PNG_NO_WRITE_SUPPORTED 112 # define PNG_WRITE_SUPPORTED 117 #if !defined(PNG_1_0_X) && !defined(PNG_NO_MNG_FEATURES) 118 # ifndef PNG_MNG_FEATURES_SUPPORTED 119 # define PNG_MNG_FEATURES_SUPPORTED 123 #ifndef PNG_NO_FLOATING_POINT_SUPPORTED 124 # ifndef PNG_FLOATING_POINT_SUPPORTED 125 # define PNG_FLOATING_POINT_SUPPORTED 137 #if defined(MAXSEG_64K) && !defined(PNG_MAX_MALLOC_64K) 138 # define PNG_MAX_MALLOC_64K 174 #if defined(__CYGWIN__) 175 # if defined(ALL_STATIC) 176 # if defined(PNG_BUILD_DLL) 177 # undef PNG_BUILD_DLL 179 # if defined(PNG_USE_DLL) 182 # if defined(PNG_DLL) 185 # if !defined(PNG_STATIC) 189 # if defined (PNG_BUILD_DLL) 190 # if defined(PNG_STATIC) 193 # if defined(PNG_USE_DLL) 196 # if !defined(PNG_DLL) 200 # if defined(PNG_STATIC) 201 # if defined(PNG_USE_DLL) 204 # if defined(PNG_DLL) 208 # if !defined(PNG_USE_DLL) 211 # if !defined(PNG_DLL) 232 #if defined(_WIN32_WCE) 233 # include <windows.h> 235 # define PNG_NO_CONSOLE_IO 242 # ifndef PNG_CONSOLE_IO_SUPPORTED 243 # ifndef PNG_NO_CONSOLE_IO 244 # define PNG_NO_CONSOLE_IO 250 # ifndef PNG_NO_CONSOLE_IO 251 # define PNG_NO_CONSOLE_IO 259 # if !defined(_WIN32_WCE) 275 # define PNGARG(arglist) OF(arglist) 279 # define PNGARG(arglist) () 280 # ifndef PNG_TYPECAST_NULL 281 # define PNG_TYPECAST_NULL 284 # define PNGARG(arglist) arglist 297 # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \ 298 defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC) 304 #if !defined(MACOS) && !defined(RISCOS) && !defined(_WIN32_WCE) 305 # include <sys/types.h> 308 #if !defined(PNG_SETJMP_NOT_SUPPORTED) && !defined(PNG_NO_SETJMP_SUPPORTED) 309 # define PNG_SETJMP_SUPPORTED 312 #ifdef PNG_SETJMP_SUPPORTED 319 # define PNG_SAVE_BSD_SOURCE 326 __pngconf.h__ already
includes setjmp.h;
327 __dont__ include it again.;
335 # ifdef PNG_SAVE_BSD_SOURCE 339 # undef PNG_SAVE_BSD_SOURCE 345 # include <strings.h> 368 #if defined(PNG_FLOATING_POINT_SUPPORTED) 374 # if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__) 380 # if defined(_AMIGA) && defined(__SASC) && defined(_M68881) 389 #if (defined(__MWERKS__) && defined(WIN32)) || defined(__STDC__) 390 # define PNG_ALWAYS_EXTERN 394 #if defined(__TURBOC__) && defined(__MSDOS__) 400 #if defined(_MSC_VER) && (defined(WIN32) || defined(_Windows) || \ 401 defined(_WINDOWS) || defined(_WIN32) || defined(__WIN32__)) 409 #ifndef PNG_DITHER_RED_BITS 410 # define PNG_DITHER_RED_BITS 5 412 #ifndef PNG_DITHER_GREEN_BITS 413 # define PNG_DITHER_GREEN_BITS 5 415 #ifndef PNG_DITHER_BLUE_BITS 416 # define PNG_DITHER_BLUE_BITS 5 426 #ifndef PNG_MAX_GAMMA_8 427 # define PNG_MAX_GAMMA_8 11 433 #ifndef PNG_GAMMA_THRESHOLD 434 # define PNG_GAMMA_THRESHOLD 0.05 445 # define PNG_CONST const 483 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 484 # ifndef PNG_NO_iTXt_SUPPORTED 485 # define PNG_NO_iTXt_SUPPORTED 487 # ifndef PNG_NO_READ_iTXt 488 # define PNG_NO_READ_iTXt 490 # ifndef PNG_NO_WRITE_iTXt 491 # define PNG_NO_WRITE_iTXt 495 #if !defined(PNG_NO_iTXt_SUPPORTED) 496 # if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt) 497 # define PNG_READ_iTXt 499 # if !defined(PNG_WRITE_iTXt_SUPPORTED) && !defined(PNG_NO_WRITE_iTXt) 500 # define PNG_WRITE_iTXt 510 #ifdef PNG_LEGACY_SUPPORTED 511 # define PNG_NO_FREE_ME 512 # define PNG_NO_READ_UNKNOWN_CHUNKS 513 # define PNG_NO_WRITE_UNKNOWN_CHUNKS 514 # define PNG_NO_READ_USER_CHUNKS 515 # define PNG_NO_READ_iCCP 516 # define PNG_NO_WRITE_iCCP 517 # define PNG_NO_READ_iTXt 518 # define PNG_NO_WRITE_iTXt 519 # define PNG_NO_READ_sCAL 520 # define PNG_NO_WRITE_sCAL 521 # define PNG_NO_READ_sPLT 522 # define PNG_NO_WRITE_sPLT 523 # define PNG_NO_INFO_IMAGE 524 # define PNG_NO_READ_RGB_TO_GRAY 525 # define PNG_NO_READ_USER_TRANSFORM 526 # define PNG_NO_WRITE_USER_TRANSFORM 527 # define PNG_NO_USER_MEM 528 # define PNG_NO_READ_EMPTY_PLTE 529 # define PNG_NO_MNG_FEATURES 530 # define PNG_NO_FIXED_POINT_SUPPORTED 534 #if !defined(PNG_FLOATING_POINT_SUPPORTED) || \ 535 !defined(PNG_NO_FIXED_POINT_SUPPORTED) 536 # define PNG_FIXED_POINT_SUPPORTED 539 #ifndef PNG_NO_FREE_ME 540 # define PNG_FREE_ME_SUPPORTED 543 #if defined(PNG_READ_SUPPORTED) 545 #if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \ 546 !defined(PNG_NO_READ_TRANSFORMS) 547 # define PNG_READ_TRANSFORMS_SUPPORTED 550 #ifdef PNG_READ_TRANSFORMS_SUPPORTED 551 # ifndef PNG_NO_READ_EXPAND 552 # define PNG_READ_EXPAND_SUPPORTED 554 # ifndef PNG_NO_READ_SHIFT 555 # define PNG_READ_SHIFT_SUPPORTED 557 # ifndef PNG_NO_READ_PACK 558 # define PNG_READ_PACK_SUPPORTED 560 # ifndef PNG_NO_READ_BGR 561 # define PNG_READ_BGR_SUPPORTED 563 # ifndef PNG_NO_READ_SWAP 564 # define PNG_READ_SWAP_SUPPORTED 566 # ifndef PNG_NO_READ_PACKSWAP 567 # define PNG_READ_PACKSWAP_SUPPORTED 569 # ifndef PNG_NO_READ_INVERT 570 # define PNG_READ_INVERT_SUPPORTED 572 # ifndef PNG_NO_READ_DITHER 573 # define PNG_READ_DITHER_SUPPORTED 575 # ifndef PNG_NO_READ_BACKGROUND 576 # define PNG_READ_BACKGROUND_SUPPORTED 578 # ifndef PNG_NO_READ_16_TO_8 579 # define PNG_READ_16_TO_8_SUPPORTED 581 # ifndef PNG_NO_READ_FILLER 582 # define PNG_READ_FILLER_SUPPORTED 584 # ifndef PNG_NO_READ_GAMMA 585 # define PNG_READ_GAMMA_SUPPORTED 587 # ifndef PNG_NO_READ_GRAY_TO_RGB 588 # define PNG_READ_GRAY_TO_RGB_SUPPORTED 590 # ifndef PNG_NO_READ_SWAP_ALPHA 591 # define PNG_READ_SWAP_ALPHA_SUPPORTED 593 # ifndef PNG_NO_READ_INVERT_ALPHA 594 # define PNG_READ_INVERT_ALPHA_SUPPORTED 596 # ifndef PNG_NO_READ_STRIP_ALPHA 597 # define PNG_READ_STRIP_ALPHA_SUPPORTED 599 # ifndef PNG_NO_READ_USER_TRANSFORM 600 # define PNG_READ_USER_TRANSFORM_SUPPORTED 602 # ifndef PNG_NO_READ_RGB_TO_GRAY 603 # define PNG_READ_RGB_TO_GRAY_SUPPORTED 607 #if !defined(PNG_NO_PROGRESSIVE_READ) && \ 608 !defined(PNG_PROGRESSIVE_READ_SUPPORTED) 609 # define PNG_PROGRESSIVE_READ_SUPPORTED 613 #define PNG_READ_INTERLACING_SUPPORTED 615 #ifndef PNG_NO_READ_COMPOSITE_NODIV 616 # ifndef PNG_NO_READ_COMPOSITED_NODIV 617 # define PNG_READ_COMPOSITE_NODIV_SUPPORTED 621 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 624 #ifndef PNG_NO_READ_EMPTY_PLTE 625 # define PNG_READ_EMPTY_PLTE_SUPPORTED 631 #if defined(PNG_WRITE_SUPPORTED) 633 # if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \ 634 !defined(PNG_NO_WRITE_TRANSFORMS) 635 # define PNG_WRITE_TRANSFORMS_SUPPORTED 638 #ifdef PNG_WRITE_TRANSFORMS_SUPPORTED 639 # ifndef PNG_NO_WRITE_SHIFT 640 # define PNG_WRITE_SHIFT_SUPPORTED 642 # ifndef PNG_NO_WRITE_PACK 643 # define PNG_WRITE_PACK_SUPPORTED 645 # ifndef PNG_NO_WRITE_BGR 646 # define PNG_WRITE_BGR_SUPPORTED 648 # ifndef PNG_NO_WRITE_SWAP 649 # define PNG_WRITE_SWAP_SUPPORTED 651 # ifndef PNG_NO_WRITE_PACKSWAP 652 # define PNG_WRITE_PACKSWAP_SUPPORTED 654 # ifndef PNG_NO_WRITE_INVERT 655 # define PNG_WRITE_INVERT_SUPPORTED 657 # ifndef PNG_NO_WRITE_FILLER 658 # define PNG_WRITE_FILLER_SUPPORTED 660 # ifndef PNG_NO_WRITE_SWAP_ALPHA 661 # define PNG_WRITE_SWAP_ALPHA_SUPPORTED 663 # ifndef PNG_NO_WRITE_INVERT_ALPHA 664 # define PNG_WRITE_INVERT_ALPHA_SUPPORTED 666 # ifndef PNG_NO_WRITE_USER_TRANSFORM 667 # define PNG_WRITE_USER_TRANSFORM_SUPPORTED 671 #if !defined(PNG_NO_WRITE_INTERLACING_SUPPORTED) && \ 672 !defined(PNG_WRITE_INTERLACING_SUPPORTED) 673 #define PNG_WRITE_INTERLACING_SUPPORTED 678 #if !defined(PNG_NO_WRITE_WEIGHTED_FILTER) && \ 679 !defined(PNG_WRITE_WEIGHTED_FILTER) && \ 680 defined(PNG_FLOATING_POINT_SUPPORTED) 681 # define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED 684 #ifndef PNG_NO_WRITE_FLUSH 685 # define PNG_WRITE_FLUSH_SUPPORTED 688 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 690 #ifndef PNG_NO_WRITE_EMPTY_PLTE 691 # define PNG_WRITE_EMPTY_PLTE_SUPPORTED 698 # ifndef PNG_NO_ERROR_NUMBERS 699 # define PNG_ERROR_NUMBERS_SUPPORTED 703 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 704 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) 705 # ifndef PNG_NO_USER_TRANSFORM_PTR 706 # define PNG_USER_TRANSFORM_PTR_SUPPORTED 711 # define PNG_TIME_RFC1123_SUPPORTED 730 #if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED) 731 # define PNG_EASY_ACCESS_SUPPORTED 739 #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE) 740 # ifndef PNG_OPTIMIZED_CODE_SUPPORTED 741 # define PNG_OPTIMIZED_CODE_SUPPORTED 745 #if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_ASSEMBLER_CODE) 746 # ifndef PNG_ASSEMBLER_CODE_SUPPORTED 747 # define PNG_ASSEMBLER_CODE_SUPPORTED 750 # if defined(__GNUC__) && defined(__x86_64__) && (__GNUC__ < 4) 752 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 753 # define PNG_NO_MMX_CODE 757 # if defined(__APPLE__) 758 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 759 # define PNG_NO_MMX_CODE 763 # if (defined(__MWERKS__) && ((__MWERKS__ < 0x0900) || macintosh)) 764 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 765 # define PNG_NO_MMX_CODE 769 # if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE) 770 # define PNG_MMX_CODE_SUPPORTED 776 #if !defined(PNG_1_0_X) 777 #if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED) 778 # define PNG_USER_MEM_SUPPORTED 783 #if !defined(PNG_1_0_X) 784 #ifndef PNG_SET_USER_LIMITS_SUPPORTED 785 #if !defined(PNG_NO_SET_USER_LIMITS) && !defined(PNG_SET_USER_LIMITS_SUPPORTED) 786 # define PNG_SET_USER_LIMITS_SUPPORTED 794 #ifndef PNG_USER_WIDTH_MAX 795 # define PNG_USER_WIDTH_MAX 1000000L 797 #ifndef PNG_USER_HEIGHT_MAX 798 # define PNG_USER_HEIGHT_MAX 1000000L 837 #if defined(PNG_READ_SUPPORTED) && \ 838 !defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ 839 !defined(PNG_NO_READ_ANCILLARY_CHUNKS) 840 # define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED 843 #if defined(PNG_WRITE_SUPPORTED) && \ 844 !defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \ 845 !defined(PNG_NO_WRITE_ANCILLARY_CHUNKS) 846 # define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED 849 #ifdef PNG_READ_ANCILLARY_CHUNKS_SUPPORTED 851 #ifdef PNG_NO_READ_TEXT 852 # define PNG_NO_READ_iTXt 853 # define PNG_NO_READ_tEXt 854 # define PNG_NO_READ_zTXt 856 #ifndef PNG_NO_READ_bKGD 857 # define PNG_READ_bKGD_SUPPORTED 858 # define PNG_bKGD_SUPPORTED 860 #ifndef PNG_NO_READ_cHRM 861 # define PNG_READ_cHRM_SUPPORTED 862 # define PNG_cHRM_SUPPORTED 864 #ifndef PNG_NO_READ_gAMA 865 # define PNG_READ_gAMA_SUPPORTED 866 # define PNG_gAMA_SUPPORTED 868 #ifndef PNG_NO_READ_hIST 869 # define PNG_READ_hIST_SUPPORTED 870 # define PNG_hIST_SUPPORTED 872 #ifndef PNG_NO_READ_iCCP 873 # define PNG_READ_iCCP_SUPPORTED 874 # define PNG_iCCP_SUPPORTED 876 #ifndef PNG_NO_READ_iTXt 877 # ifndef PNG_READ_iTXt_SUPPORTED 878 # define PNG_READ_iTXt_SUPPORTED 880 # ifndef PNG_iTXt_SUPPORTED 881 # define PNG_iTXt_SUPPORTED 884 #ifndef PNG_NO_READ_oFFs 885 # define PNG_READ_oFFs_SUPPORTED 886 # define PNG_oFFs_SUPPORTED 888 #ifndef PNG_NO_READ_pCAL 889 # define PNG_READ_pCAL_SUPPORTED 890 # define PNG_pCAL_SUPPORTED 892 #ifndef PNG_NO_READ_sCAL 893 # define PNG_READ_sCAL_SUPPORTED 894 # define PNG_sCAL_SUPPORTED 896 #ifndef PNG_NO_READ_pHYs 897 # define PNG_READ_pHYs_SUPPORTED 898 # define PNG_pHYs_SUPPORTED 900 #ifndef PNG_NO_READ_sBIT 901 # define PNG_READ_sBIT_SUPPORTED 902 # define PNG_sBIT_SUPPORTED 904 #ifndef PNG_NO_READ_sPLT 905 # define PNG_READ_sPLT_SUPPORTED 906 # define PNG_sPLT_SUPPORTED 908 #ifndef PNG_NO_READ_sRGB 909 # define PNG_READ_sRGB_SUPPORTED 910 # define PNG_sRGB_SUPPORTED 912 #ifndef PNG_NO_READ_tEXt 913 # define PNG_READ_tEXt_SUPPORTED 914 # define PNG_tEXt_SUPPORTED 916 #ifndef PNG_NO_READ_tIME 917 # define PNG_READ_tIME_SUPPORTED 918 # define PNG_tIME_SUPPORTED 920 #ifndef PNG_NO_READ_tRNS 921 # define PNG_READ_tRNS_SUPPORTED 922 # define PNG_tRNS_SUPPORTED 924 #ifndef PNG_NO_READ_zTXt 925 # define PNG_READ_zTXt_SUPPORTED 926 # define PNG_zTXt_SUPPORTED 928 #ifndef PNG_NO_READ_UNKNOWN_CHUNKS 929 # define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED 930 # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED 931 # define PNG_UNKNOWN_CHUNKS_SUPPORTED 933 # ifndef PNG_NO_HANDLE_AS_UNKNOWN 934 # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED 937 #if !defined(PNG_NO_READ_USER_CHUNKS) && \ 938 defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED) 939 # define PNG_READ_USER_CHUNKS_SUPPORTED 940 # define PNG_USER_CHUNKS_SUPPORTED 941 # ifdef PNG_NO_READ_UNKNOWN_CHUNKS 942 # undef PNG_NO_READ_UNKNOWN_CHUNKS 944 # ifdef PNG_NO_HANDLE_AS_UNKNOWN 945 # undef PNG_NO_HANDLE_AS_UNKNOWN 948 #ifndef PNG_NO_READ_OPT_PLTE 949 # define PNG_READ_OPT_PLTE_SUPPORTED 951 #if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \ 952 defined(PNG_READ_zTXt_SUPPORTED) 953 # define PNG_READ_TEXT_SUPPORTED 954 # define PNG_TEXT_SUPPORTED 959 #ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED 961 #ifdef PNG_NO_WRITE_TEXT 962 # define PNG_NO_WRITE_iTXt 963 # define PNG_NO_WRITE_tEXt 964 # define PNG_NO_WRITE_zTXt 966 #ifndef PNG_NO_WRITE_bKGD 967 # define PNG_WRITE_bKGD_SUPPORTED 968 # ifndef PNG_bKGD_SUPPORTED 969 # define PNG_bKGD_SUPPORTED 972 #ifndef PNG_NO_WRITE_cHRM 973 # define PNG_WRITE_cHRM_SUPPORTED 974 # ifndef PNG_cHRM_SUPPORTED 975 # define PNG_cHRM_SUPPORTED 978 #ifndef PNG_NO_WRITE_gAMA 979 # define PNG_WRITE_gAMA_SUPPORTED 980 # ifndef PNG_gAMA_SUPPORTED 981 # define PNG_gAMA_SUPPORTED 984 #ifndef PNG_NO_WRITE_hIST 985 # define PNG_WRITE_hIST_SUPPORTED 986 # ifndef PNG_hIST_SUPPORTED 987 # define PNG_hIST_SUPPORTED 990 #ifndef PNG_NO_WRITE_iCCP 991 # define PNG_WRITE_iCCP_SUPPORTED 992 # ifndef PNG_iCCP_SUPPORTED 993 # define PNG_iCCP_SUPPORTED 996 #ifndef PNG_NO_WRITE_iTXt 997 # ifndef PNG_WRITE_iTXt_SUPPORTED 998 # define PNG_WRITE_iTXt_SUPPORTED 1000 # ifndef PNG_iTXt_SUPPORTED 1001 # define PNG_iTXt_SUPPORTED 1004 #ifndef PNG_NO_WRITE_oFFs 1005 # define PNG_WRITE_oFFs_SUPPORTED 1006 # ifndef PNG_oFFs_SUPPORTED 1007 # define PNG_oFFs_SUPPORTED 1010 #ifndef PNG_NO_WRITE_pCAL 1011 # define PNG_WRITE_pCAL_SUPPORTED 1012 # ifndef PNG_pCAL_SUPPORTED 1013 # define PNG_pCAL_SUPPORTED 1016 #ifndef PNG_NO_WRITE_sCAL 1017 # define PNG_WRITE_sCAL_SUPPORTED 1018 # ifndef PNG_sCAL_SUPPORTED 1019 # define PNG_sCAL_SUPPORTED 1022 #ifndef PNG_NO_WRITE_pHYs 1023 # define PNG_WRITE_pHYs_SUPPORTED 1024 # ifndef PNG_pHYs_SUPPORTED 1025 # define PNG_pHYs_SUPPORTED 1028 #ifndef PNG_NO_WRITE_sBIT 1029 # define PNG_WRITE_sBIT_SUPPORTED 1030 # ifndef PNG_sBIT_SUPPORTED 1031 # define PNG_sBIT_SUPPORTED 1034 #ifndef PNG_NO_WRITE_sPLT 1035 # define PNG_WRITE_sPLT_SUPPORTED 1036 # ifndef PNG_sPLT_SUPPORTED 1037 # define PNG_sPLT_SUPPORTED 1040 #ifndef PNG_NO_WRITE_sRGB 1041 # define PNG_WRITE_sRGB_SUPPORTED 1042 # ifndef PNG_sRGB_SUPPORTED 1043 # define PNG_sRGB_SUPPORTED 1046 #ifndef PNG_NO_WRITE_tEXt 1047 # define PNG_WRITE_tEXt_SUPPORTED 1048 # ifndef PNG_tEXt_SUPPORTED 1049 # define PNG_tEXt_SUPPORTED 1052 #ifndef PNG_NO_WRITE_tIME 1053 # define PNG_WRITE_tIME_SUPPORTED 1054 # ifndef PNG_tIME_SUPPORTED 1055 # define PNG_tIME_SUPPORTED 1058 #ifndef PNG_NO_WRITE_tRNS 1059 # define PNG_WRITE_tRNS_SUPPORTED 1060 # ifndef PNG_tRNS_SUPPORTED 1061 # define PNG_tRNS_SUPPORTED 1064 #ifndef PNG_NO_WRITE_zTXt 1065 # define PNG_WRITE_zTXt_SUPPORTED 1066 # ifndef PNG_zTXt_SUPPORTED 1067 # define PNG_zTXt_SUPPORTED 1070 #ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS 1071 # define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED 1072 # ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED 1073 # define PNG_UNKNOWN_CHUNKS_SUPPORTED 1075 # ifndef PNG_NO_HANDLE_AS_UNKNOWN 1076 # ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED 1077 # define PNG_HANDLE_AS_UNKNOWN_SUPPORTED 1081 #if defined(PNG_WRITE_iTXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \ 1082 defined(PNG_WRITE_zTXt_SUPPORTED) 1083 # define PNG_WRITE_TEXT_SUPPORTED 1084 # ifndef PNG_TEXT_SUPPORTED 1085 # define PNG_TEXT_SUPPORTED 1095 #ifndef PNG_NO_INFO_IMAGE 1096 # define PNG_INFO_IMAGE_SUPPORTED 1100 #if defined(PNG_tIME_SUPPORTED) 1101 # if !defined(_WIN32_WCE) 1126 # define png_sizeof(x) png_convert_size(sizeof(x)) 1129 # define png_sizeof(x) sizeof(x) 1144 # if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__) 1150 # if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__) 1151 # define PNG_MAX_MALLOC_64K 1156 # define USE_FAR_KEYWORD 1174 # if defined(M_I86MM) 1175 # define USE_FAR_KEYWORD 1176 # define FARDATA FAR 1206 #ifndef PNG_NO_STDIO 1207 #if defined(_WIN32_WCE) 1214 #ifdef PNG_FLOATING_POINT_SUPPORTED 1227 #ifdef PNG_FLOATING_POINT_SUPPORTED 1234 #if defined(PNG_1_0_X) || defined(PNG_1_2_X) 1264 #if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL)) 1271 #if defined(__CYGWIN__) 1272 # if !defined(PNG_STATIC) 1273 # if defined(PNG_USE_GLOBAL_ARRAYS) 1274 # undef PNG_USE_GLOBAL_ARRAYS 1276 # if !defined(PNG_USE_LOCAL_ARRAYS) 1277 # define PNG_USE_LOCAL_ARRAYS 1280 # if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS) 1281 # if defined(PNG_USE_GLOBAL_ARRAYS) 1282 # undef PNG_USE_GLOBAL_ARRAYS 1286 # if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS) 1287 # define PNG_USE_LOCAL_ARRAYS 1295 #if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS) 1296 # if defined(PNG_NO_GLOBAL_ARRAYS) || \ 1297 (defined(__GNUC__) && defined(PNG_DLL)) || defined(_MSC_VER) 1298 # define PNG_USE_LOCAL_ARRAYS 1300 # define PNG_USE_GLOBAL_ARRAYS 1304 #if defined(__CYGWIN__) 1306 # define PNGAPI __cdecl 1318 #if defined(__MINGW32__) && !defined(PNG_MODULEDEF) 1319 # ifndef PNG_NO_MODULEDEF 1320 # define PNG_NO_MODULEDEF 1324 #if !defined(PNG_IMPEXP) && defined(PNG_BUILD_DLL) && !defined(PNG_NO_MODULEDEF) 1328 #if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \ 1329 (( defined(_Windows) || defined(_WINDOWS) || \ 1330 defined(WIN32) || defined(_WIN32) || defined(__WIN32__) )) 1333 # if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800)) 1334 # define PNGAPI __cdecl 1336 # define PNGAPI _cdecl 1340 # if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \ 1345 # if !defined(PNG_IMPEXP) 1347 # define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol 1348 # define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol 1351 # if defined(_MSC_VER) || defined(__BORLANDC__) 1352 # if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500) 1353 # define PNG_EXPORT PNG_EXPORT_TYPE1 1355 # define PNG_EXPORT PNG_EXPORT_TYPE2 1356 # if defined(PNG_BUILD_DLL) 1357 # define PNG_IMPEXP __export 1366 # if !defined(PNG_IMPEXP) 1367 # if defined(PNG_BUILD_DLL) 1368 # define PNG_IMPEXP __declspec(dllexport) 1370 # define PNG_IMPEXP __declspec(dllimport) 1375 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__) 1377 # define PNGAPI _System 1392 #ifdef PNG_BUILDSYMS 1394 # define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END 1396 # ifdef PNG_USE_GLOBAL_ARRAYS 1397 # ifndef PNG_EXPORT_VAR 1398 # define PNG_EXPORT_VAR(type) PNG_DATA_EXPORT 1404 # define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol 1407 #ifdef PNG_USE_GLOBAL_ARRAYS 1408 # ifndef PNG_EXPORT_VAR 1409 # define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type 1418 # define PNG_ABORT() abort() 1421 #ifdef PNG_SETJMP_SUPPORTED 1422 # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf) 1424 # define png_jmpbuf(png_ptr) \ 1425 (LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED) 1428 #if defined(USE_FAR_KEYWORD) 1432 # define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK)) 1433 # define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK)) 1434 # define png_snprintf _fsnprintf 1435 # define png_strlen _fstrlen 1436 # define png_memcmp _fmemcmp 1437 # define png_memcpy _fmemcpy 1438 # define png_memset _fmemset 1440 # define CVT_PTR(ptr) (ptr) 1441 # define CVT_PTR_NOCHECK(ptr) (ptr) 1442 # ifndef PNG_NO_SNPRINTF 1444 # define png_snprintf _snprintf 1445 # define png_snprintf2 _snprintf 1446 # define png_snprintf6 _snprintf 1448 # define png_snprintf snprintf 1449 # define png_snprintf2 snprintf 1450 # define png_snprintf6 snprintf 1458 # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1) 1459 # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2) 1460 # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \ 1461 sprintf(s1,fmt,x1,x2,x3,x4,x5,x6) 1463 # define png_strlen strlen 1464 # define png_memcmp memcmp 1465 # define png_memcpy memcpy 1466 # define png_memset memset 1473 #if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K) 1474 # undef PNG_ZBUF_SIZE 1475 # 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
bool includes(const vstring &list, std::string value, bool ignore_case)
png_uint_32 FAR * png_uint_32p
unsigned long png_uint_32
png_int_16 FAR * png_int_16p
z_stream FAR * png_zstreamp