273 #define PNG_LIBPNG_VER_STRING "1.2.56" 274 #define PNG_HEADER_VERSION_STRING \ 275 " libpng version 1.2.56 - December 17, 2015\n" 277 #define PNG_LIBPNG_VER_SONUM 0 278 #define PNG_LIBPNG_VER_DLLNUM 13 281 #define PNG_LIBPNG_VER_MAJOR 1 282 #define PNG_LIBPNG_VER_MINOR 2 283 #define PNG_LIBPNG_VER_RELEASE 56 288 #define PNG_LIBPNG_VER_BUILD 0 291 #define PNG_LIBPNG_BUILD_ALPHA 1 292 #define PNG_LIBPNG_BUILD_BETA 2 293 #define PNG_LIBPNG_BUILD_RC 3 294 #define PNG_LIBPNG_BUILD_STABLE 4 295 #define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK 7 298 #define PNG_LIBPNG_BUILD_PATCH 8 300 #define PNG_LIBPNG_BUILD_PRIVATE 16 302 #define PNG_LIBPNG_BUILD_SPECIAL 32 305 #define PNG_LIBPNG_BUILD_BASE_TYPE PNG_LIBPNG_BUILD_STABLE 313 #define PNG_LIBPNG_VER 10256 315 #ifndef PNG_VERSION_INFO_ONLY 336 #ifdef PNG_USER_PRIVATEBUILD 337 # define PNG_LIBPNG_BUILD_TYPE \ 338 (PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_PRIVATE) 340 # ifdef PNG_LIBPNG_SPECIALBUILD 341 # define PNG_LIBPNG_BUILD_TYPE \ 342 (PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_SPECIAL) 344 # define PNG_LIBPNG_BUILD_TYPE (PNG_LIBPNG_BUILD_BASE_TYPE) 348 #ifndef PNG_VERSION_INFO_ONLY 361 #ifndef PNG_NO_TYPECAST_NULL 362 #define int_p_NULL (int *)NULL 363 #define png_bytep_NULL (png_bytep)NULL 364 #define png_bytepp_NULL (png_bytepp)NULL 365 #define png_doublep_NULL (png_doublep)NULL 366 #define png_error_ptr_NULL (png_error_ptr)NULL 367 #define png_flush_ptr_NULL (png_flush_ptr)NULL 368 #define png_free_ptr_NULL (png_free_ptr)NULL 369 #define png_infopp_NULL (png_infopp)NULL 370 #define png_malloc_ptr_NULL (png_malloc_ptr)NULL 371 #define png_read_status_ptr_NULL (png_read_status_ptr)NULL 372 #define png_rw_ptr_NULL (png_rw_ptr)NULL 373 #define png_structp_NULL (png_structp)NULL 374 #define png_uint_16p_NULL (png_uint_16p)NULL 375 #define png_voidp_NULL (png_voidp)NULL 376 #define png_write_status_ptr_NULL (png_write_status_ptr)NULL 378 #define int_p_NULL NULL 379 #define png_bytep_NULL NULL 380 #define png_bytepp_NULL NULL 381 #define png_doublep_NULL NULL 382 #define png_error_ptr_NULL NULL 383 #define png_flush_ptr_NULL NULL 384 #define png_free_ptr_NULL NULL 385 #define png_infopp_NULL NULL 386 #define png_malloc_ptr_NULL NULL 387 #define png_read_status_ptr_NULL NULL 388 #define png_rw_ptr_NULL NULL 389 #define png_structp_NULL NULL 390 #define png_uint_16p_NULL NULL 391 #define png_voidp_NULL NULL 392 #define png_write_status_ptr_NULL NULL 396 #if !defined(PNG_NO_EXTERN) || defined(PNG_ALWAYS_EXTERN) 400 #ifdef PNG_USE_GLOBAL_ARRAYS 404 #define png_libpng_ver png_get_header_ver(NULL) 407 #ifdef PNG_USE_GLOBAL_ARRAYS 488 #ifdef PNG_TEXT_SUPPORTED 508 #ifdef PNG_iTXt_SUPPORTED 523 #define PNG_TEXT_COMPRESSION_NONE_WR -3 524 #define PNG_TEXT_COMPRESSION_zTXt_WR -2 525 #define PNG_TEXT_COMPRESSION_NONE -1 526 #define PNG_TEXT_COMPRESSION_zTXt 0 527 #define PNG_ITXT_COMPRESSION_NONE 1 528 #define PNG_ITXT_COMPRESSION_zTXt 2 529 #define PNG_TEXT_COMPRESSION_LAST 3 549 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) || \ 550 defined(PNG_HANDLE_AS_UNKNOWN_SUPPORTED) 556 #define PNG_CHUNK_NAME_LENGTH 5 639 #if defined(PNG_gAMA_SUPPORTED) && defined(PNG_FLOATING_POINT_SUPPORTED) 647 #ifdef PNG_sRGB_SUPPORTED 653 #ifdef PNG_TEXT_SUPPORTED 667 #ifdef PNG_tIME_SUPPORTED 674 #ifdef PNG_sBIT_SUPPORTED 684 #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_EXPAND_SUPPORTED) || \ 685 defined(PNG_READ_BACKGROUND_SUPPORTED) 699 #if defined(PNG_bKGD_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 709 #ifdef PNG_oFFs_SUPPORTED 720 #ifdef PNG_pHYs_SUPPORTED 730 #ifdef PNG_hIST_SUPPORTED 740 #ifdef PNG_cHRM_SUPPORTED 747 #ifdef PNG_FLOATING_POINT_SUPPORTED 759 #ifdef PNG_pCAL_SUPPORTED 781 #ifdef PNG_FREE_ME_SUPPORTED 785 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) || \ 786 defined(PNG_HANDLE_AS_UNKNOWN_SUPPORTED) 792 #ifdef PNG_iCCP_SUPPORTED 801 #ifdef PNG_sPLT_SUPPORTED 807 #ifdef PNG_sCAL_SUPPORTED 816 #ifdef PNG_FLOATING_POINT_SUPPORTED 820 #ifdef PNG_FIXED_POINT_SUPPORTED 826 #ifdef PNG_INFO_IMAGE_SUPPORTED 832 #if defined(PNG_FIXED_POINT_SUPPORTED) && defined(PNG_gAMA_SUPPORTED) 836 #if defined(PNG_cHRM_SUPPORTED) && defined(PNG_FIXED_POINT_SUPPORTED) 853 #define PNG_UINT_31_MAX ((png_uint_32)0x7fffffffL) 854 #define PNG_UINT_32_MAX ((png_uint_32)(-1)) 855 #define PNG_SIZE_MAX ((png_size_t)(-1)) 856 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 858 #define PNG_MAX_UINT PNG_UINT_31_MAX 863 #define PNG_COLOR_MASK_PALETTE 1 864 #define PNG_COLOR_MASK_COLOR 2 865 #define PNG_COLOR_MASK_ALPHA 4 868 #define PNG_COLOR_TYPE_GRAY 0 869 #define PNG_COLOR_TYPE_PALETTE (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE) 870 #define PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR) 871 #define PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA) 872 #define PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA) 874 #define PNG_COLOR_TYPE_RGBA PNG_COLOR_TYPE_RGB_ALPHA 875 #define PNG_COLOR_TYPE_GA PNG_COLOR_TYPE_GRAY_ALPHA 878 #define PNG_COMPRESSION_TYPE_BASE 0 879 #define PNG_COMPRESSION_TYPE_DEFAULT PNG_COMPRESSION_TYPE_BASE 882 #define PNG_FILTER_TYPE_BASE 0 883 #define PNG_INTRAPIXEL_DIFFERENCING 64 884 #define PNG_FILTER_TYPE_DEFAULT PNG_FILTER_TYPE_BASE 887 #define PNG_INTERLACE_NONE 0 888 #define PNG_INTERLACE_ADAM7 1 889 #define PNG_INTERLACE_LAST 2 892 #define PNG_OFFSET_PIXEL 0 893 #define PNG_OFFSET_MICROMETER 1 894 #define PNG_OFFSET_LAST 2 897 #define PNG_EQUATION_LINEAR 0 898 #define PNG_EQUATION_BASE_E 1 899 #define PNG_EQUATION_ARBITRARY 2 900 #define PNG_EQUATION_HYPERBOLIC 3 901 #define PNG_EQUATION_LAST 4 904 #define PNG_SCALE_UNKNOWN 0 905 #define PNG_SCALE_METER 1 906 #define PNG_SCALE_RADIAN 2 907 #define PNG_SCALE_LAST 3 910 #define PNG_RESOLUTION_UNKNOWN 0 911 #define PNG_RESOLUTION_METER 1 912 #define PNG_RESOLUTION_LAST 2 915 #define PNG_sRGB_INTENT_PERCEPTUAL 0 916 #define PNG_sRGB_INTENT_RELATIVE 1 917 #define PNG_sRGB_INTENT_SATURATION 2 918 #define PNG_sRGB_INTENT_ABSOLUTE 3 919 #define PNG_sRGB_INTENT_LAST 4 922 #define PNG_KEYWORD_MAX_LENGTH 79 925 #define PNG_MAX_PALETTE_LENGTH 256 932 #define PNG_INFO_gAMA 0x0001 933 #define PNG_INFO_sBIT 0x0002 934 #define PNG_INFO_cHRM 0x0004 935 #define PNG_INFO_PLTE 0x0008 936 #define PNG_INFO_tRNS 0x0010 937 #define PNG_INFO_bKGD 0x0020 938 #define PNG_INFO_hIST 0x0040 939 #define PNG_INFO_pHYs 0x0080 940 #define PNG_INFO_oFFs 0x0100 941 #define PNG_INFO_tIME 0x0200 942 #define PNG_INFO_pCAL 0x0400 943 #define PNG_INFO_sRGB 0x0800 944 #define PNG_INFO_iCCP 0x1000 945 #define PNG_INFO_sPLT 0x2000 946 #define PNG_INFO_sCAL 0x4000 947 #define PNG_INFO_IDAT 0x8000L 983 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 984 typedef void (
PNGAPI *png_progressive_info_ptr)
PNGARG((png_structp, png_infop));
985 typedef void (
PNGAPI *png_progressive_end_ptr)
PNGARG((png_structp, png_infop));
990 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 991 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) || \ 992 defined(PNG_LEGACY_SUPPORTED) 997 #ifdef PNG_USER_CHUNKS_SUPPORTED 998 typedef int (
PNGAPI *png_user_chunk_ptr)
PNGARG((png_structp, png_unknown_chunkp));
1000 #ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED 1005 #define PNG_TRANSFORM_IDENTITY 0x0000 1006 #define PNG_TRANSFORM_STRIP_16 0x0001 1007 #define PNG_TRANSFORM_STRIP_ALPHA 0x0002 1008 #define PNG_TRANSFORM_PACKING 0x0004 1009 #define PNG_TRANSFORM_PACKSWAP 0x0008 1010 #define PNG_TRANSFORM_EXPAND 0x0010 1011 #define PNG_TRANSFORM_INVERT_MONO 0x0020 1012 #define PNG_TRANSFORM_SHIFT 0x0040 1013 #define PNG_TRANSFORM_BGR 0x0080 1014 #define PNG_TRANSFORM_SWAP_ALPHA 0x0100 1015 #define PNG_TRANSFORM_SWAP_ENDIAN 0x0200 1016 #define PNG_TRANSFORM_INVERT_ALPHA 0x0400 1017 #define PNG_TRANSFORM_STRIP_FILLER 0x0800 1019 #define PNG_TRANSFORM_STRIP_FILLER_BEFORE 0x0800 1020 #define PNG_TRANSFORM_STRIP_FILLER_AFTER 0x1000 1022 #define PNG_TRANSFORM_GRAY_TO_RGB 0x2000 1025 #define PNG_FLAG_MNG_EMPTY_PLTE 0x01 1026 #define PNG_FLAG_MNG_FILTER_64 0x04 1027 #define PNG_ALL_MNG_FEATURES 0x05 1041 #ifdef PNG_SETJMP_SUPPORTED 1051 #ifdef PNG_READ_USER_TRANSFORM_SUPPORTED 1055 #ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTED 1060 #ifdef PNG_USER_TRANSFORM_PTR_SUPPORTED 1061 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 1062 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) 1091 #ifdef PNG_USER_LIMITS_SUPPORTED 1101 #ifndef PNG_NO_WRITE_FILTER 1128 #if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED) 1129 #ifdef PNG_LEGACY_SUPPORTED 1136 #ifdef PNG_bKGD_SUPPORTED 1138 # ifdef PNG_FLOATING_POINT_SUPPORTED 1142 #ifdef PNG_READ_GAMMA_SUPPORTED 1147 #ifdef PNG_WRITE_FLUSH_SUPPORTED 1153 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1155 #ifdef PNG_FLOATING_POINT_SUPPORTED 1161 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1170 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_sBIT_SUPPORTED) 1174 #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED) 1178 #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) \ 1179 || defined(PNG_READ_EXPAND_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1186 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 1203 # ifdef PNG_TEXT_SUPPORTED 1211 #if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__) 1220 #ifdef PNG_READ_DITHER_SUPPORTED 1225 #if defined(PNG_READ_DITHER_SUPPORTED) || defined(PNG_hIST_SUPPORTED) 1229 #ifdef PNG_TIME_RFC1123_SUPPORTED 1235 #ifdef PNG_FREE_ME_SUPPORTED 1239 #ifdef PNG_USER_CHUNKS_SUPPORTED 1244 #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED 1250 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED 1259 #if defined(PNG_MNG_FEATURES_SUPPORTED) || \ 1260 defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \ 1261 defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED) 1271 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1276 #ifdef PNG_MNG_FEATURES_SUPPORTED 1286 #ifdef PNG_ASSEMBLER_CODE_SUPPORTED 1288 # ifdef PNG_MMX_CODE_SUPPORTED 1297 #ifdef PNG_USER_MEM_SUPPORTED 1306 #ifdef PNG_READ_DITHER_SUPPORTED 1318 #ifdef PNG_USER_LIMITS_SUPPORTED 1324 #ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED 1383 png_error_ptr error_fn, png_error_ptr
warn_fn)) PNG_ALLOCATED;
1385 #ifdef PNG_WRITE_SUPPORTED 1387 PNGARG((png_structp png_ptr));
1390 #ifdef PNG_WRITE_SUPPORTED 1399 #ifdef PNG_USER_MEM_SUPPORTED 1406 png_error_ptr error_fn, png_error_ptr warn_fn,
png_voidp mem_ptr,
1407 png_malloc_ptr malloc_fn, png_free_ptr
free_fn)) PNG_ALLOCATED;
1429 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 1433 #undef png_info_init 1434 #define png_info_init(info_ptr) png_info_init_3(&info_ptr,\ 1435 png_sizeof(png_info)); 1447 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 1453 #ifdef PNG_TIME_RFC1123_SUPPORTED 1458 #ifdef PNG_CONVERT_tIME_SUPPORTED 1468 #ifdef PNG_READ_EXPAND_SUPPORTED 1477 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 1484 #if defined(PNG_READ_BGR_SUPPORTED) || defined(PNG_WRITE_BGR_SUPPORTED) 1489 #ifdef PNG_READ_GRAY_TO_RGB_SUPPORTED 1494 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED 1496 #ifdef PNG_FLOATING_POINT_SUPPORTED 1509 #ifdef PNG_READ_STRIP_ALPHA_SUPPORTED 1513 #if defined(PNG_READ_SWAP_ALPHA_SUPPORTED) || \ 1514 defined(PNG_WRITE_SWAP_ALPHA_SUPPORTED) 1518 #if defined(PNG_READ_INVERT_ALPHA_SUPPORTED) || \ 1519 defined(PNG_WRITE_INVERT_ALPHA_SUPPORTED) 1523 #if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED) 1528 #define PNG_FILLER_BEFORE 0 1529 #define PNG_FILLER_AFTER 1 1537 #if defined(PNG_READ_SWAP_SUPPORTED) || defined(PNG_WRITE_SWAP_SUPPORTED) 1542 #if defined(PNG_READ_PACK_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED) 1547 #if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPORTED) 1552 #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED) 1558 #if defined(PNG_READ_INTERLACING_SUPPORTED) || \ 1559 defined(PNG_WRITE_INTERLACING_SUPPORTED) 1564 #if defined(PNG_READ_INVERT_SUPPORTED) || defined(PNG_WRITE_INVERT_SUPPORTED) 1569 #ifdef PNG_READ_BACKGROUND_SUPPORTED 1571 #ifdef PNG_FLOATING_POINT_SUPPORTED 1576 #define PNG_BACKGROUND_GAMMA_UNKNOWN 0 1577 #define PNG_BACKGROUND_GAMMA_SCREEN 1 1578 #define PNG_BACKGROUND_GAMMA_FILE 2 1579 #define PNG_BACKGROUND_GAMMA_UNIQUE 3 1582 #ifdef PNG_READ_16_TO_8_SUPPORTED 1587 #ifdef PNG_READ_DITHER_SUPPORTED 1594 #ifdef PNG_READ_GAMMA_SUPPORTED 1596 #ifdef PNG_FLOATING_POINT_SUPPORTED 1602 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 1603 #if defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \ 1604 defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED) 1612 #ifdef PNG_WRITE_FLUSH_SUPPORTED 1626 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1632 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1639 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1661 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1699 #define PNG_CRC_DEFAULT 0 1700 #define PNG_CRC_ERROR_QUIT 1 1701 #define PNG_CRC_WARN_DISCARD 2 1702 #define PNG_CRC_WARN_USE 3 1703 #define PNG_CRC_QUIET_USE 4 1704 #define PNG_CRC_NO_CHANGE 5 1725 #define PNG_NO_FILTERS 0x00 1726 #define PNG_FILTER_NONE 0x08 1727 #define PNG_FILTER_SUB 0x10 1728 #define PNG_FILTER_UP 0x20 1729 #define PNG_FILTER_AVG 0x40 1730 #define PNG_FILTER_PAETH 0x80 1731 #define PNG_ALL_FILTERS (PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP | \ 1732 PNG_FILTER_AVG | PNG_FILTER_PAETH) 1737 #define PNG_FILTER_VALUE_NONE 0 1738 #define PNG_FILTER_VALUE_SUB 1 1739 #define PNG_FILTER_VALUE_UP 2 1740 #define PNG_FILTER_VALUE_AVG 3 1741 #define PNG_FILTER_VALUE_PAETH 4 1742 #define PNG_FILTER_VALUE_LAST 5 1744 #if defined(PNG_WRITE_WEIGHTED_FILTER_SUPPORTED) 1745 #ifdef PNG_FLOATING_POINT_SUPPORTED 1753 #define PNG_FILTER_HEURISTIC_DEFAULT 0 1754 #define PNG_FILTER_HEURISTIC_UNWEIGHTED 1 1755 #define PNG_FILTER_HEURISTIC_WEIGHTED 2 1756 #define PNG_FILTER_HEURISTIC_LAST 3 1789 #ifdef PNG_STDIO_SUPPORTED 1834 #ifdef PNG_USER_MEM_SUPPORTED 1842 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 1843 defined(PNG_LEGACY_SUPPORTED) 1848 #if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) || \ 1849 defined(PNG_LEGACY_SUPPORTED) 1854 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 1855 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) || \ 1856 defined(PNG_LEGACY_SUPPORTED) 1862 PNGARG((png_structp png_ptr));
1865 #ifdef PNG_USER_CHUNKS_SUPPORTED 1872 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 1878 png_progressive_info_ptr
info_fn, png_progressive_row_ptr
row_fn,
1879 png_progressive_end_ptr
end_fn));
1883 PNGARG((png_structp png_ptr));
1900 # define png_malloc_warn png_malloc 1922 #ifdef PNG_FREE_ME_SUPPORTED 1930 #define PNG_DESTROY_WILL_FREE_DATA 1 1931 #define PNG_SET_WILL_FREE_DATA 1 1932 #define PNG_USER_WILL_FREE_DATA 2 1934 #define PNG_FREE_HIST 0x0008 1935 #define PNG_FREE_ICCP 0x0010 1936 #define PNG_FREE_SPLT 0x0020 1937 #define PNG_FREE_ROWS 0x0040 1938 #define PNG_FREE_PCAL 0x0080 1939 #define PNG_FREE_SCAL 0x0100 1940 #define PNG_FREE_UNKN 0x0200 1941 #define PNG_FREE_LIST 0x0400 1942 #define PNG_FREE_PLTE 0x1000 1943 #define PNG_FREE_TRNS 0x2000 1944 #define PNG_FREE_TEXT 0x4000 1945 #define PNG_FREE_ALL 0x7fff 1946 #define PNG_FREE_MUL 0x4220 1948 #ifdef PNG_USER_MEM_SUPPORTED 1961 #if defined(USE_FAR_KEYWORD) 1966 #ifndef PNG_NO_ERROR_TEXT 1979 #ifndef PNG_NO_WARNINGS 1984 #ifdef PNG_READ_SUPPORTED 2011 #ifdef PNG_INFO_IMAGE_SUPPORTED 2028 #ifdef PNG_EASY_ACCESS_SUPPORTED 2066 #ifdef PNG_FLOATING_POINT_SUPPORTED 2087 #ifdef PNG_bKGD_SUPPORTED 2092 #ifdef PNG_bKGD_SUPPORTED 2097 #ifdef PNG_cHRM_SUPPORTED 2098 #ifdef PNG_FLOATING_POINT_SUPPORTED 2104 #ifdef PNG_FIXED_POINT_SUPPORTED 2113 #ifdef PNG_cHRM_SUPPORTED 2114 #ifdef PNG_FLOATING_POINT_SUPPORTED 2119 #ifdef PNG_FIXED_POINT_SUPPORTED 2128 #ifdef PNG_gAMA_SUPPORTED 2129 #ifdef PNG_FLOATING_POINT_SUPPORTED 2137 #ifdef PNG_gAMA_SUPPORTED 2138 #ifdef PNG_FLOATING_POINT_SUPPORTED 2146 #ifdef PNG_hIST_SUPPORTED 2151 #ifdef PNG_hIST_SUPPORTED 2166 #ifdef PNG_oFFs_SUPPORTED 2172 #ifdef PNG_oFFs_SUPPORTED 2178 #ifdef PNG_pCAL_SUPPORTED 2184 #ifdef PNG_pCAL_SUPPORTED 2190 #ifdef PNG_pHYs_SUPPORTED 2195 #ifdef PNG_pHYs_SUPPORTED 2206 #ifdef PNG_sBIT_SUPPORTED 2211 #ifdef PNG_sBIT_SUPPORTED 2216 #ifdef PNG_sRGB_SUPPORTED 2221 #ifdef PNG_sRGB_SUPPORTED 2228 #ifdef PNG_iCCP_SUPPORTED 2235 #ifdef PNG_iCCP_SUPPORTED 2242 #ifdef PNG_sPLT_SUPPORTED 2247 #ifdef PNG_sPLT_SUPPORTED 2252 #ifdef PNG_TEXT_SUPPORTED 2266 #ifdef PNG_TEXT_SUPPORTED 2271 #ifdef PNG_tIME_SUPPORTED 2276 #ifdef PNG_tIME_SUPPORTED 2281 #ifdef PNG_tRNS_SUPPORTED 2287 #ifdef PNG_tRNS_SUPPORTED 2293 #ifdef PNG_tRNS_SUPPORTED 2296 #ifdef PNG_sCAL_SUPPORTED 2297 #ifdef PNG_FLOATING_POINT_SUPPORTED 2301 #ifdef PNG_FIXED_POINT_SUPPORTED 2308 #ifdef PNG_sCAL_SUPPORTED 2309 #ifdef PNG_FLOATING_POINT_SUPPORTED 2313 #ifdef PNG_FIXED_POINT_SUPPORTED 2320 #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED 2335 #ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED 2341 png_ptr, png_infop info_ptr, png_unknown_chunkpp
entries));
2349 png_infop info_ptr,
int mask));
2351 #ifdef PNG_INFO_IMAGE_SUPPORTED 2370 #if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER) 2377 #define png_debug(l,m) _RPT0(_CRT_WARN,m PNG_STRING_NEWLINE) 2380 #define png_debug1(l,m,p1) _RPT1(_CRT_WARN,m PNG_STRING_NEWLINE,p1) 2383 #define png_debug2(l,m,p1,p2) _RPT2(_CRT_WARN,m PNG_STRING_NEWLINE,p1,p2) 2387 #ifndef PNG_DEBUG_FILE 2388 #define PNG_DEBUG_FILE stderr 2397 # define png_debug(l,m) \ 2400 fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ 2401 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":"")))); \ 2405 # define png_debug1(l,m,p1) \ 2408 fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ 2409 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1); \ 2413 # define png_debug2(l,m,p1,p2) \ 2416 fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \ 2417 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1,p2); \ 2422 # define png_debug(l,m) \ 2426 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \ 2427 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))), \ 2428 m,PNG_STRING_NEWLINE); \ 2429 fprintf(PNG_DEBUG_FILE,format); \ 2433 # define png_debug1(l,m,p1) \ 2437 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \ 2438 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))), \ 2439 m,PNG_STRING_NEWLINE); \ 2440 fprintf(PNG_DEBUG_FILE,format,p1); \ 2444 # define png_debug2(l,m,p1,p2) \ 2448 snprintf(format,256,"%s%s%s",(num_tabs==1 ? "\t" : \ 2449 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))), \ 2450 m,PNG_STRING_NEWLINE); \ 2451 fprintf(PNG_DEBUG_FILE,format,p1,p2); \ 2461 #define png_debug(l, m) 2464 #define png_debug1(l, m, p1) 2467 #define png_debug2(l, m, p1, p2) 2475 #ifdef PNG_MNG_FEATURES_SUPPORTED 2481 #define PNG_HANDLE_CHUNK_AS_DEFAULT 0 2482 #define PNG_HANDLE_CHUNK_NEVER 1 2483 #define PNG_HANDLE_CHUNK_IF_SAFE 2 2484 #define PNG_HANDLE_CHUNK_ALWAYS 3 2487 #ifdef PNG_ASSEMBLER_CODE_SUPPORTED 2488 #ifdef PNG_MMX_CODE_SUPPORTED 2489 #define PNG_ASM_FLAG_MMX_SUPPORT_COMPILED 0x01 2490 #define PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU 0x02 2491 #define PNG_ASM_FLAG_MMX_READ_COMBINE_ROW 0x04 2492 #define PNG_ASM_FLAG_MMX_READ_INTERLACE 0x08 2493 #define PNG_ASM_FLAG_MMX_READ_FILTER_SUB 0x10 2494 #define PNG_ASM_FLAG_MMX_READ_FILTER_UP 0x20 2495 #define PNG_ASM_FLAG_MMX_READ_FILTER_AVG 0x40 2496 #define PNG_ASM_FLAG_MMX_READ_FILTER_PAETH 0x80 2497 #define PNG_ASM_FLAGS_INITIALIZED 0x80000000 2499 #define PNG_MMX_READ_FLAGS ( PNG_ASM_FLAG_MMX_READ_COMBINE_ROW \ 2500 | PNG_ASM_FLAG_MMX_READ_INTERLACE \ 2501 | PNG_ASM_FLAG_MMX_READ_FILTER_SUB \ 2502 | PNG_ASM_FLAG_MMX_READ_FILTER_UP \ 2503 | PNG_ASM_FLAG_MMX_READ_FILTER_AVG \ 2504 | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ) 2505 #define PNG_MMX_WRITE_FLAGS ( 0 ) 2507 #define PNG_MMX_FLAGS ( PNG_ASM_FLAG_MMX_SUPPORT_COMPILED \ 2508 | PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU \ 2509 | PNG_MMX_READ_FLAGS \ 2510 | PNG_MMX_WRITE_FLAGS ) 2512 #define PNG_SELECT_READ 1 2513 #define PNG_SELECT_WRITE 2 2523 PNGARG((
int flag_select));
2527 PNGARG((png_structp png_ptr));
2531 PNGARG((png_structp png_ptr));
2535 PNGARG((png_structp png_ptr));
2557 #ifdef PNG_ERROR_NUMBERS_SUPPORTED 2563 #ifdef PNG_SET_USER_LIMITS_SUPPORTED 2575 #ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED 2590 # define png_composite(composite, fg, alpha, bg) \ 2591 { png_uint_16 temp = (png_uint_16)((png_uint_16)(fg) * (png_uint_16)(alpha) \ 2592 + (png_uint_16)(bg)*(png_uint_16)(255 - \ 2593 (png_uint_16)(alpha)) + (png_uint_16)128); \ 2594 (composite) = (png_byte)((temp + (temp >> 8)) >> 8); } 2596 # define png_composite_16(composite, fg, alpha, bg) \ 2597 { png_uint_32 temp = (png_uint_32)((png_uint_32)(fg) * (png_uint_32)(alpha) \ 2598 + (png_uint_32)(bg)*(png_uint_32)(65535L - \ 2599 (png_uint_32)(alpha)) + (png_uint_32)32768L); \ 2600 (composite) = (png_uint_16)((temp + (temp >> 16)) >> 16); } 2604 # define png_composite(composite, fg, alpha, bg) \ 2605 (composite) = (png_byte)(((png_uint_16)(fg) * (png_uint_16)(alpha) + \ 2606 (png_uint_16)(bg) * (png_uint_16)(255 - (png_uint_16)(alpha)) + \ 2607 (png_uint_16)127) / 255) 2609 # define png_composite_16(composite, fg, alpha, bg) \ 2610 (composite) = (png_uint_16)(((png_uint_32)(fg) * (png_uint_32)(alpha) + \ 2611 (png_uint_32)(bg)*(png_uint_32)(65535L - (png_uint_32)(alpha)) + \ 2612 (png_uint_32)32767) / (png_uint_32)65535L) 2624 #ifdef PNG_READ_BIG_ENDIAN_SUPPORTED 2625 # define png_get_uint_32(buf) ( *((png_uint_32p) (buf))) 2626 # define png_get_uint_16(buf) ( *((png_uint_16p) (buf))) 2627 # define png_get_int_32(buf) ( *((png_int_32p) (buf))) 2664 #define PNG_HAVE_IHDR 0x01 2665 #define PNG_HAVE_PLTE 0x02 2666 #define PNG_HAVE_IDAT 0x04 2667 #define PNG_AFTER_IDAT 0x08 2668 #define PNG_HAVE_IEND 0x10 2675 #define PNG_HAVE_gAMA 0x20 2676 #define PNG_HAVE_cHRM 0x40 2677 #define PNG_HAVE_sRGB 0x80 2678 #define PNG_HAVE_CHUNK_HEADER 0x100 2679 #define PNG_WROTE_tIME 0x200 2680 #define PNG_WROTE_INFO_BEFORE_PLTE 0x400 2681 #define PNG_BACKGROUND_IS_GRAY 0x800 2682 #define PNG_HAVE_PNG_SIGNATURE 0x1000 2683 #define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 2686 #define PNG_BGR 0x0001 2687 #define PNG_INTERLACE 0x0002 2688 #define PNG_PACK 0x0004 2689 #define PNG_SHIFT 0x0008 2690 #define PNG_SWAP_BYTES 0x0010 2691 #define PNG_INVERT_MONO 0x0020 2692 #define PNG_DITHER 0x0040 2693 #define PNG_BACKGROUND 0x0080 2694 #define PNG_BACKGROUND_EXPAND 0x0100 2696 #define PNG_16_TO_8 0x0400 2697 #define PNG_RGBA 0x0800 2698 #define PNG_EXPAND 0x1000 2699 #define PNG_GAMMA 0x2000 2700 #define PNG_GRAY_TO_RGB 0x4000 2701 #define PNG_FILLER 0x8000L 2702 #define PNG_PACKSWAP 0x10000L 2703 #define PNG_SWAP_ALPHA 0x20000L 2704 #define PNG_STRIP_ALPHA 0x40000L 2705 #define PNG_INVERT_ALPHA 0x80000L 2706 #define PNG_USER_TRANSFORM 0x100000L 2707 #define PNG_RGB_TO_GRAY_ERR 0x200000L 2708 #define PNG_RGB_TO_GRAY_WARN 0x400000L 2709 #define PNG_RGB_TO_GRAY 0x600000L 2711 #define PNG_ADD_ALPHA 0x1000000L 2712 #define PNG_EXPAND_tRNS 0x2000000L 2713 #define PNG_PREMULTIPLY_ALPHA 0x4000000L 2721 #define PNG_STRUCT_PNG 0x0001 2722 #define PNG_STRUCT_INFO 0x0002 2725 #define PNG_WEIGHT_SHIFT 8 2726 #define PNG_WEIGHT_FACTOR (1<<(PNG_WEIGHT_SHIFT)) 2727 #define PNG_COST_SHIFT 3 2728 #define PNG_COST_FACTOR (1<<(PNG_COST_SHIFT)) 2731 #define PNG_FLAG_ZLIB_CUSTOM_STRATEGY 0x0001 2732 #define PNG_FLAG_ZLIB_CUSTOM_LEVEL 0x0002 2733 #define PNG_FLAG_ZLIB_CUSTOM_MEM_LEVEL 0x0004 2734 #define PNG_FLAG_ZLIB_CUSTOM_WINDOW_BITS 0x0008 2735 #define PNG_FLAG_ZLIB_CUSTOM_METHOD 0x0010 2736 #define PNG_FLAG_ZLIB_FINISHED 0x0020 2737 #define PNG_FLAG_ROW_INIT 0x0040 2738 #define PNG_FLAG_FILLER_AFTER 0x0080 2739 #define PNG_FLAG_CRC_ANCILLARY_USE 0x0100 2740 #define PNG_FLAG_CRC_ANCILLARY_NOWARN 0x0200 2741 #define PNG_FLAG_CRC_CRITICAL_USE 0x0400 2742 #define PNG_FLAG_CRC_CRITICAL_IGNORE 0x0800 2743 #define PNG_FLAG_FREE_PLTE 0x1000 2744 #define PNG_FLAG_FREE_TRNS 0x2000 2745 #define PNG_FLAG_FREE_HIST 0x4000 2746 #define PNG_FLAG_KEEP_UNKNOWN_CHUNKS 0x8000L 2747 #define PNG_FLAG_KEEP_UNSAFE_CHUNKS 0x10000L 2748 #define PNG_FLAG_LIBRARY_MISMATCH 0x20000L 2749 #define PNG_FLAG_STRIP_ERROR_NUMBERS 0x40000L 2750 #define PNG_FLAG_STRIP_ERROR_TEXT 0x80000L 2751 #define PNG_FLAG_MALLOC_NULL_MEM_OK 0x100000L 2752 #define PNG_FLAG_ADD_ALPHA 0x200000L 2753 #define PNG_FLAG_STRIP_ALPHA 0x400000L 2763 #define PNG_FLAG_CRC_ANCILLARY_MASK (PNG_FLAG_CRC_ANCILLARY_USE | \ 2764 PNG_FLAG_CRC_ANCILLARY_NOWARN) 2766 #define PNG_FLAG_CRC_CRITICAL_MASK (PNG_FLAG_CRC_CRITICAL_USE | \ 2767 PNG_FLAG_CRC_CRITICAL_IGNORE) 2769 #define PNG_FLAG_CRC_MASK (PNG_FLAG_CRC_ANCILLARY_MASK | \ 2770 PNG_FLAG_CRC_CRITICAL_MASK) 2774 #define PNG_COLOR_DIST(c1, c2) (abs((int)((c1).red) - (int)((c2).red)) + \ 2775 abs((int)((c1).green) - (int)((c2).green)) + \ 2776 abs((int)((c1).blue) - (int)((c2).blue))) 2779 #define PNG_ROWBYTES(pixel_bits, width) \ 2780 ((pixel_bits) >= 8 ? \ 2781 ((width) * (((png_uint_32)(pixel_bits)) >> 3)) : \ 2782 (( ((width) * ((png_uint_32)(pixel_bits))) + 7) >> 3) ) 2789 #define PNG_OUT_OF_RANGE(value, ideal, delta) \ 2790 ( (value) < (ideal)-(delta) || (value) > (ideal)+(delta) ) 2793 #if !defined(PNG_NO_EXTERN) || defined(PNG_ALWAYS_EXTERN) 2795 #ifdef PNG_USE_GLOBAL_ARRAYS 2805 #define PNG_IHDR png_byte png_IHDR[5] = { 73, 72, 68, 82, '\0'} 2806 #define PNG_IDAT png_byte png_IDAT[5] = { 73, 68, 65, 84, '\0'} 2807 #define PNG_IEND png_byte png_IEND[5] = { 73, 69, 78, 68, '\0'} 2808 #define PNG_PLTE png_byte png_PLTE[5] = { 80, 76, 84, 69, '\0'} 2809 #define PNG_bKGD png_byte png_bKGD[5] = { 98, 75, 71, 68, '\0'} 2810 #define PNG_cHRM png_byte png_cHRM[5] = { 99, 72, 82, 77, '\0'} 2811 #define PNG_gAMA png_byte png_gAMA[5] = {103, 65, 77, 65, '\0'} 2812 #define PNG_hIST png_byte png_hIST[5] = {104, 73, 83, 84, '\0'} 2813 #define PNG_iCCP png_byte png_iCCP[5] = {105, 67, 67, 80, '\0'} 2814 #define PNG_iTXt png_byte png_iTXt[5] = {105, 84, 88, 116, '\0'} 2815 #define PNG_oFFs png_byte png_oFFs[5] = {111, 70, 70, 115, '\0'} 2816 #define PNG_pCAL png_byte png_pCAL[5] = {112, 67, 65, 76, '\0'} 2817 #define PNG_sCAL png_byte png_sCAL[5] = {115, 67, 65, 76, '\0'} 2818 #define PNG_pHYs png_byte png_pHYs[5] = {112, 72, 89, 115, '\0'} 2819 #define PNG_sBIT png_byte png_sBIT[5] = {115, 66, 73, 84, '\0'} 2820 #define PNG_sPLT png_byte png_sPLT[5] = {115, 80, 76, 84, '\0'} 2821 #define PNG_sRGB png_byte png_sRGB[5] = {115, 82, 71, 66, '\0'} 2822 #define PNG_tEXt png_byte png_tEXt[5] = {116, 69, 88, 116, '\0'} 2823 #define PNG_tIME png_byte png_tIME[5] = {116, 73, 77, 69, '\0'} 2824 #define PNG_tRNS png_byte png_tRNS[5] = {116, 82, 78, 83, '\0'} 2825 #define PNG_zTXt png_byte png_zTXt[5] = {122, 84, 88, 116, '\0'} 2827 #ifdef PNG_USE_GLOBAL_ARRAYS 2851 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 2857 #undef png_read_init 2858 #define png_read_init(png_ptr) png_read_init_3(&png_ptr, \ 2859 PNG_LIBPNG_VER_STRING, png_sizeof(png_struct)); 2864 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 2870 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 2876 #undef png_write_init 2877 #define png_write_init(png_ptr) png_write_init_3(&png_ptr, \ 2878 PNG_LIBPNG_VER_STRING, png_sizeof(png_struct)); 2923 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 2931 #ifdef PNG_WRITE_FLUSH_SUPPORTED 2932 #ifdef PNG_STDIO_SUPPORTED 2938 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 2960 #if defined(PNG_zTXt_SUPPORTED) || defined(PNG_iTXt_SUPPORTED) || \ 2961 defined(PNG_iCCP_SUPPORTED) || defined(PNG_sPLT_SUPPORTED) 2981 #ifdef PNG_WRITE_FLUSH_SUPPORTED 3006 #ifdef PNG_WRITE_gAMA_SUPPORTED 3007 #ifdef PNG_FLOATING_POINT_SUPPORTED 3011 #ifdef PNG_FIXED_POINT_SUPPORTED 3017 #ifdef PNG_WRITE_sBIT_SUPPORTED 3022 #ifdef PNG_WRITE_cHRM_SUPPORTED 3023 #ifdef PNG_FLOATING_POINT_SUPPORTED 3029 #ifdef PNG_FIXED_POINT_SUPPORTED 3038 #ifdef PNG_WRITE_sRGB_SUPPORTED 3043 #ifdef PNG_WRITE_iCCP_SUPPORTED 3050 #ifdef PNG_WRITE_sPLT_SUPPORTED 3055 #ifdef PNG_WRITE_tRNS_SUPPORTED 3060 #ifdef PNG_WRITE_bKGD_SUPPORTED 3065 #ifdef PNG_WRITE_hIST_SUPPORTED 3070 #if defined(PNG_WRITE_TEXT_SUPPORTED) || defined(PNG_WRITE_pCAL_SUPPORTED) || \ 3071 defined(PNG_WRITE_iCCP_SUPPORTED) || defined(PNG_WRITE_sPLT_SUPPORTED) 3076 #ifdef PNG_WRITE_tEXt_SUPPORTED 3081 #ifdef PNG_WRITE_zTXt_SUPPORTED 3086 #ifdef PNG_WRITE_iTXt_SUPPORTED 3087 PNG_EXTERN
void png_write_iTXt
PNGARG((png_structp png_ptr,
3092 #ifdef PNG_TEXT_SUPPORTED 3097 #ifdef PNG_WRITE_oFFs_SUPPORTED 3102 #ifdef PNG_WRITE_pCAL_SUPPORTED 3108 #ifdef PNG_WRITE_pHYs_SUPPORTED 3110 png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit,
3114 #ifdef PNG_WRITE_tIME_SUPPORTED 3119 #ifdef PNG_WRITE_sCAL_SUPPORTED 3120 #if defined(PNG_FLOATING_POINT_SUPPORTED) && !defined(PNG_NO_STDIO) 3124 #ifdef PNG_FIXED_POINT_SUPPORTED 3125 PNG_EXTERN
void png_write_sCAL_s
PNGARG((png_structp png_ptr,
3137 #ifdef PNG_READ_GAMMA_SUPPORTED 3145 #ifdef PNG_READ_INTERLACING_SUPPORTED 3156 #ifdef PNG_WRITE_INTERLACING_SUPPORTED 3184 #ifdef PNG_READ_FILLER_SUPPORTED 3189 #ifdef PNG_READ_SWAP_ALPHA_SUPPORTED 3194 #ifdef PNG_WRITE_SWAP_ALPHA_SUPPORTED 3199 #ifdef PNG_READ_INVERT_ALPHA_SUPPORTED 3204 #ifdef PNG_WRITE_INVERT_ALPHA_SUPPORTED 3209 #if defined(PNG_WRITE_FILLER_SUPPORTED) || \ 3210 defined(PNG_READ_STRIP_ALPHA_SUPPORTED) 3215 #if defined(PNG_READ_SWAP_SUPPORTED) || defined(PNG_WRITE_SWAP_SUPPORTED) 3220 #if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPORTED) 3225 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED 3230 #ifdef PNG_READ_GRAY_TO_RGB_SUPPORTED 3235 #ifdef PNG_READ_PACK_SUPPORTED 3240 #ifdef PNG_READ_SHIFT_SUPPORTED 3245 #if defined(PNG_READ_INVERT_SUPPORTED) || defined(PNG_WRITE_INVERT_SUPPORTED) 3250 #ifdef PNG_READ_16_TO_8_SUPPORTED 3255 #ifdef PNG_READ_DITHER_SUPPORTED 3260 # ifdef PNG_CORRECT_PALETTE_SUPPORTED 3261 PNG_EXTERN
void png_correct_palette
PNGARG((png_structp png_ptr,
3266 #if defined(PNG_READ_BGR_SUPPORTED) || defined(PNG_WRITE_BGR_SUPPORTED) 3271 #ifdef PNG_WRITE_PACK_SUPPORTED 3276 #ifdef PNG_WRITE_SHIFT_SUPPORTED 3281 #ifdef PNG_READ_BACKGROUND_SUPPORTED 3282 #ifdef PNG_READ_GAMMA_SUPPORTED 3285 png_color_16p background_1,
3295 #ifdef PNG_READ_GAMMA_SUPPORTED 3301 #ifdef PNG_READ_EXPAND_SUPPORTED 3321 #ifdef PNG_READ_bKGD_SUPPORTED 3326 #ifdef PNG_READ_cHRM_SUPPORTED 3331 #ifdef PNG_READ_gAMA_SUPPORTED 3336 #ifdef PNG_READ_hIST_SUPPORTED 3341 #ifdef PNG_READ_iCCP_SUPPORTED 3346 #ifdef PNG_READ_iTXt_SUPPORTED 3347 PNG_EXTERN
void png_handle_iTXt
PNGARG((png_structp png_ptr, png_infop info_ptr,
3351 #ifdef PNG_READ_oFFs_SUPPORTED 3356 #ifdef PNG_READ_pCAL_SUPPORTED 3361 #ifdef PNG_READ_pHYs_SUPPORTED 3366 #ifdef PNG_READ_sBIT_SUPPORTED 3371 #ifdef PNG_READ_sCAL_SUPPORTED 3376 #ifdef PNG_READ_sPLT_SUPPORTED 3381 #ifdef PNG_READ_sRGB_SUPPORTED 3386 #ifdef PNG_READ_tEXt_SUPPORTED 3391 #ifdef PNG_READ_tIME_SUPPORTED 3396 #ifdef PNG_READ_tRNS_SUPPORTED 3401 #ifdef PNG_READ_zTXt_SUPPORTED 3421 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 3437 PNG_EXTERN
void png_push_handle_unknown
PNGARG((png_structp png_ptr,
3445 PNG_EXTERN
void png_push_read_end
PNGARG((png_structp png_ptr,
3451 #ifdef PNG_READ_tEXt_SUPPORTED 3452 PNG_EXTERN
void png_push_handle_tEXt
PNGARG((png_structp png_ptr,
3454 PNG_EXTERN
void png_push_read_tEXt
PNGARG((png_structp png_ptr,
3457 #ifdef PNG_READ_zTXt_SUPPORTED 3458 PNG_EXTERN
void png_push_handle_zTXt
PNGARG((png_structp png_ptr,
3460 PNG_EXTERN
void png_push_read_zTXt
PNGARG((png_structp png_ptr,
3463 #ifdef PNG_READ_iTXt_SUPPORTED 3464 PNG_EXTERN
void png_push_handle_iTXt
PNGARG((png_structp png_ptr,
3466 PNG_EXTERN
void png_push_read_iTXt
PNGARG((png_structp png_ptr,
3472 #ifdef PNG_MNG_FEATURES_SUPPORTED 3479 #ifdef PNG_ASSEMBLER_CODE_SUPPORTED 3480 #ifdef PNG_MMX_CODE_SUPPORTED 3488 #if defined(PNG_INCH_CONVERSIONS) && defined(PNG_FLOATING_POINT_SUPPORTED) 3489 PNG_EXTERN png_uint_32 png_get_pixels_per_inch
PNGARG((png_structp png_ptr,
3490 png_infop info_ptr));
3492 PNG_EXTERN png_uint_32 png_get_x_pixels_per_inch
PNGARG((png_structp png_ptr,
3493 png_infop info_ptr));
3495 PNG_EXTERN png_uint_32 png_get_y_pixels_per_inch
PNGARG((png_structp png_ptr,
3496 png_infop info_ptr));
3498 PNG_EXTERN
float png_get_x_offset_inches
PNGARG((png_structp png_ptr,
3499 png_infop info_ptr));
3501 PNG_EXTERN
float png_get_y_offset_inches
PNGARG((png_structp png_ptr,
3502 png_infop info_ptr));
3504 #ifdef PNG_pHYs_SUPPORTED 3505 PNG_EXTERN png_uint_32 png_get_pHYs_dpi
PNGARG((png_structp png_ptr,
3515 #ifdef PNG_cHRM_SUPPORTED 3523 #ifdef PNG_cHRM_SUPPORTED 3524 #ifdef PNG_CHECK_cHRM_SUPPORTED 3527 unsigned long *hi_product,
unsigned long *lo_product))
PNG_PRIVATE;
png_bytep gamma_from_1 PNG_DEPSTRUCT
png_color_16 background PNG_DEPSTRUCT
png_uint_32 mng_features_permitted
void png_do_read_intrapixel(png_row_infop row_info, png_bytep row)
void png_write_sCAL(png_structp png_ptr, int unit, double width, double height)
GLenum GLuint GLenum GLsizei length
void png_do_write_intrapixel(png_row_infop row_info, png_bytep row)
png_int_32 PNGAPI png_get_y_offset_microns(png_structp png_ptr, png_infop info_ptr)
png_color_8 shift PNG_DEPSTRUCT
void png_push_read_IDAT(png_structp png_ptr)
void PNGAPI png_set_iCCP(png_structp png_ptr, png_infop info_ptr, png_charp name, int compression_type, png_charp profile, png_uint_32 proflen)
png_bytep sub_row PNG_DEPSTRUCT
png_infop png_charpp int png_charpp profile
png_uint_32 PNGAPI png_get_image_width(png_structp png_ptr, png_infop info_ptr)
png_size_t buffer_size PNG_DEPSTRUCT
GLint GLint GLsizei GLsizei height
void PNGAPI png_write_chunk(png_structp png_ptr, png_bytep chunk_name, png_bytep data, png_size_t length)
png_infop png_charpp int png_charpp png_uint_32 * proflen
void PNGAPI png_set_packing(png_structp png_ptr)
void PNGAPI png_set_add_alpha(png_structp png_ptr, png_uint_32 filler, int filler_loc)
PNG_CONST char png_libpng_ver[18]
void png_do_packswap(png_row_infop row_info, png_bytep row)
void PNGAPI png_set_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type)
png_infop png_uint_32 * res_x
void PNGAPI png_set_filter_heuristics(png_structp png_ptr, int heuristic_method, int num_weights, png_doublep filter_weights, png_doublep filter_costs)
float y_red PNG_DEPSTRUCT
png_unknown_chunk FAR * png_unknown_chunkp
png_uint_32 PNGAPI png_get_tRNS(png_structp png_ptr, png_infop info_ptr, png_bytep *trans, int *num_trans, png_color_16p *trans_values)
PNG_CONST int FARDATA png_pass_start[]
void png_write_start_row(png_structp png_ptr)
int gamma_shift PNG_DEPSTRUCT
png_voidp png_error_ptr png_error_ptr png_voidp png_malloc_ptr malloc_fn
void png_zfree(voidpf png_ptr, voidpf ptr)
void PNGAPI png_set_rgb_to_gray_fixed(png_structp png_ptr, int error_action, png_fixed_point red, png_fixed_point green)
struct png_time_struct png_time
png_color_16p int int double background_gamma
void PNGAPI png_set_bKGD(png_structp png_ptr, png_infop info_ptr, png_color_16p background)
void PNGAPI png_free_data(png_structp png_ptr, png_infop info_ptr, png_uint_32 mask, int num)
png_progressive_info_ptr info_fn PNG_DEPSTRUCT
void PNGAPI png_write_image(png_structp png_ptr, png_bytepp image)
png_uint_32 width PNG_DEPSTRUCT
void PNGAPI png_set_cHRM_fixed(png_structp png_ptr, png_infop info_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y)
png_voidp png_create_struct(int type)
png_colorp int int png_uint_16p int full_dither
void PNGAPI png_write_png(png_structp png_ptr, png_infop info_ptr, int transforms, voidp params)
png_color FAR *FAR * png_colorpp
float background_gamma PNG_DEPSTRUCT
png_bytep png_bytep new_row
png_size_t zbuf_size PNG_DEPSTRUCT
void png_push_have_row(png_structp png_ptr, png_bytep row)
void PNGAPI png_set_expand_gray_1_2_4_to_8(png_structp png_ptr)
void png_do_background(png_row_infop row_info, png_bytep row, png_color_16p trans_values, png_color_16p background, png_color_16p background_1, png_bytep gamma_table, png_bytep gamma_from_1, png_bytep gamma_to_1, png_uint_16pp gamma_16, png_uint_16pp gamma_16_from_1, png_uint_16pp gamma_16_to_1, int gamma_shift)
png_infop png_uint_32 png_uint_32 int int int * interlace_method
png_fixed_point int_y_green PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_hIST(png_structp png_ptr, png_infop info_ptr, png_uint_16p *hist)
void png_write_hIST(png_structp png_ptr, png_uint_16p hist, int num_hist)
void PNGAPI png_set_hIST(png_structp png_ptr, png_infop info_ptr, png_uint_16p hist)
png_voidp png_malloc_ptr PNGARG((png_structp, png_size_t))
void png_handle_IEND(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
void png_do_gamma(png_row_infop row_info, png_bytep row, png_bytep gamma_table, png_uint_16pp gamma_16_table, int gamma_shift)
void PNGAPI png_set_flush(png_structp png_ptr, int nrows)
png_uint_32 PNGAPI png_get_oFFs(png_structp png_ptr, png_infop info_ptr, png_int_32 *offset_x, png_int_32 *offset_y, int *unit_type)
png_color_8 sig_bit PNG_DEPSTRUCT
png_uint_16pp gamma_16_from_1 PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_cHRM(png_structp png_ptr, png_infop info_ptr, double *white_x, double *white_y, double *red_x, double *red_y, double *green_x, double *green_y, double *blue_x, double *blue_y)
struct png_sPLT_entry_struct png_sPLT_entry
png_bytep PNGAPI png_get_signature(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_pHYs(png_structp png_ptr, png_infop info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
png_uint_32 mng_features_permitted PNG_DEPSTRUCT
GLfloat GLfloat GLfloat v2
png_charp iccp_profile PNG_DEPSTRUCT
png_byte user_transform_channels PNG_DEPSTRUCT
void PNGAPI png_set_asm_flags(png_structp png_ptr, png_uint_32 asm_flags)
void PNGAPI png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
void PNGAPI png_process_data(png_structp png_ptr, png_infop info_ptr, png_bytep buffer, png_size_t buffer_size)
void png_do_invert(png_row_infop row_info, png_bytep row)
png_infop png_uint_32 png_uint_32 * res_y
png_uint_32 PNGAPI png_get_unknown_chunks(png_structp png_ptr, png_infop info_ptr, png_unknown_chunkpp unknowns)
png_infop PNGAPI png_create_info_struct(png_structp png_ptr)
png_voidp int int user_transform_channels
void PNGAPI png_set_compression_level(png_structp png_ptr, int level)
png_byte usr_bit_depth PNG_DEPSTRUCT
void png_do_expand(png_row_infop row_info, png_bytep row, png_color_16p trans_value)
png_infop double double double double double double double double * blue_y
int int png_doublep filter_weights
void PNGAPI png_set_strip_error_numbers(png_structp png_ptr, png_uint_32 strip_mode)
void png_do_read_filler(png_row_infop row_info, png_bytep row, png_uint_32 filler, png_uint_32 flags)
void PNGAPI png_set_read_status_fn(png_structp png_ptr, png_read_status_ptr read_row_fn)
png_byte channels PNG_DEPSTRUCT
void PNGAPI png_set_mmx_thresholds(png_structp png_ptr, png_byte mmx_bitdepth_threshold, png_uint_32 mmx_rowbytes_threshold)
png_error_ptr warning_fn PNG_DEPSTRUCT
png_infop png_textp * text_ptr
png_colorp int num_palette
png_uint_32 iccp_proflen PNG_DEPSTRUCT
png_infop double double double double double double double * blue_x
png_uint_32 width PNG_DEPSTRUCT
png_byte bit_depth PNG_DEPSTRUCT
void PNGAPI png_save_int_32(png_bytep buf, png_int_32 i)
struct png_info_struct png_info
png_bytep dither_sort PNG_DEPSTRUCT
void png_push_read_sig(png_structp png_ptr, png_infop info_ptr)
float x_blue PNG_DEPSTRUCT
png_voidp png_rw_ptr write_data_fn
png_sPLT_tp splt_palettes PNG_DEPSTRUCT
png_byte background_gamma_type PNG_DEPSTRUCT
png_bytep palette_to_index PNG_DEPSTRUCT
png_uint_16 filler PNG_DEPSTRUCT
png_voidp png_calloc(png_structp png_ptr, png_uint_32 size)
png_voidp user_transform_ptr
png_voidp png_malloc_ptr png_free_ptr free_fn
png_int_32 pcal_X0 PNG_DEPSTRUCT
void PNGAPI png_set_rows(png_structp png_ptr, png_infop info_ptr, png_bytepp row_pointers)
void PNGAPI png_set_palette_to_rgb(png_structp png_ptr)
png_user_transform_ptr write_user_transform_fn
png_uint_32 PNGAPI png_get_valid(png_structp png_ptr, png_infop info_ptr, png_uint_32 flag)
png_fixed_point int_y_blue PNG_DEPSTRUCT
png_color_16 FAR * png_color_16p
png_color_8 FAR *FAR * png_color_8pp
void PNGAPI png_set_mem_fn(png_structp png_ptr, png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn)
int zlib_level PNG_DEPSTRUCT
void png_push_have_end(png_structp png_ptr, png_infop info_ptr)
png_uint_32 height PNG_DEPSTRUCT
void PNGAPI png_chunk_warning(png_structp png_ptr, png_const_charp warning_message)
void png_build_gamma_table(png_structp png_ptr)
png_byte compression PNG_DEPSTRUCT
void PNGAPI png_set_invert_alpha(png_structp png_ptr)
png_voidp PNGAPI png_get_error_ptr(png_structp png_ptr)
png_infop png_fixed_point png_fixed_point png_fixed_point * int_red_x
png_uint_32 free_me PNG_DEPSTRUCT
png_bytep index_to_palette PNG_DEPSTRUCT
png_voidp progressive_ptr
GLenum GLsizei GLenum GLenum const GLvoid * image
void png_write_gAMA_fixed(png_structp png_ptr, png_fixed_point file_gamma)
void PNGAPI png_set_unknown_chunks(png_structp png_ptr, png_infop info_ptr, png_unknown_chunkp unknowns, int num_unknowns)
png_infop png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_blue_y
void PNGAPI png_write_rows(png_structp png_ptr, png_bytepp row, png_uint_32 num_rows)
png_infop png_color_16p * background
float y_green PNG_DEPSTRUCT
void png_do_strip_filler(png_row_infop row_info, png_bytep row, png_uint_32 flags)
png_byte interlaced PNG_DEPSTRUCT
void png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
void png_write_sig(png_structp png_ptr)
png_bytep chunk_list PNG_DEPSTRUCT
void png_handle_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_colorp int int png_uint_16p histogram
void PNGAPI png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr, int intent)
void PNGAPI png_set_dither(png_structp png_ptr, png_colorp palette, int num_palette, int maximum_colors, png_uint_16p histogram, int full_dither)
PNG_CONST int FARDATA png_pass_yinc[]
png_uint_32 PNGAPI png_get_gAMA(png_structp png_ptr, png_infop info_ptr, double *file_gamma)
png_byte filter_type PNG_DEPSTRUCT
void png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_infop png_charp png_int_32 png_int_32 * X1
png_byte channels PNG_DEPSTRUCT
void PNGAPI png_set_background(png_structp png_ptr, png_color_16p background_color, int background_gamma_code, int need_expand, double background_gamma)
void PNGAPI png_read_rows(png_structp png_ptr, png_bytepp row, png_bytepp display_row, png_uint_32 num_rows)
void png_do_read_invert_alpha(png_row_infop row_info, png_bytep row)
png_size_t png_size_t num_to_check
void PNGAPI png_set_user_limits(png_structp png_ptr, png_uint_32 user_width_max, png_uint_32 user_height_max)
float x_white PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_uint_32(png_bytep buf)
int PNGAPI png_check_sig(png_bytep sig, int num)
void PNGAPI png_set_tIME(png_structp png_ptr, png_infop info_ptr, png_timep mod_time)
void PNGAPI png_progressive_combine_row(png_structp png_ptr, png_bytep old_row, png_bytep new_row)
png_user_chunk_ptr read_user_chunk_fn PNG_DEPSTRUCT
png_charp PNGAPI png_get_libpng_ver(png_structp png_ptr)
png_voidp png_progressive_info_ptr png_progressive_row_ptr row_fn
double scal_pixel_width PNG_DEPSTRUCT
GLint GLint GLsizei width
png_uint_32 skip_length PNG_DEPSTRUCT
png_structp version_1_2_56
void PNGAPI png_set_sig_bytes(png_structp png_ptr, int num_bytes)
png_charp pcal_units PNG_DEPSTRUCT
png_uint_32 height PNG_DEPSTRUCT
png_infop png_int_32 png_int_32 * offset_y
png_infop png_unknown_chunkp int num_unknowns
png_uint_32 asm_flags PNG_DEPSTRUCT
png_bytep up_row PNG_DEPSTRUCT
png_uint_32 old_prev_row_size PNG_DEPSTRUCT
png_bytep big_row_buf PNG_DEPSTRUCT
void png_do_read_transformations(png_structp png_ptr)
png_infop png_int_32 * offset_x
png_fixed_point int_x_white PNG_DEPSTRUCT
void png_write_sBIT(png_structp png_ptr, png_color_8p sbit, int color_type)
int PNGAPI png_handle_as_unknown(png_structp png_ptr, png_bytep chunk_name)
void png_do_write_transformations(png_structp png_ptr)
png_color_16p int int need_expand
png_row_info row_info PNG_DEPSTRUCT
PNG_CONST char FAR * png_const_charp
float PNGAPI png_get_pixel_aspect_ratio(png_structp png_ptr, png_infop info_ptr)
png_byte pcal_type PNG_DEPSTRUCT
void PNGAPI png_set_compression_strategy(png_structp png_ptr, int strategy)
double double default_file_gamma
png_uint_16 PNGAPI png_get_uint_16(png_bytep buf)
png_charp chunkdata PNG_DEPSTRUCT
png_malloc_ptr malloc_fn PNG_DEPSTRUCT
void png_write_oFFs(png_structp png_ptr, png_int_32 x_offset, png_int_32 y_offset, int unit_type)
png_uint_16 num_trans PNG_DEPSTRUCT
int process_mode PNG_DEPSTRUCT
void PNGAPI png_set_strip_16(png_structp png_ptr)
void png_crc_read(png_structp png_ptr, png_bytep buf, png_size_t length)
PNG_CONST int FARDATA png_pass_ystart[]
png_charp time_buffer PNG_DEPSTRUCT
png_infopp png_infopp end_info_ptr_ptr
void png_write_IDAT(png_structp png_ptr, png_bytep data, png_size_t length)
png_size_t current_text_size PNG_DEPSTRUCT
png_charp scal_s_width PNG_DEPSTRUCT
png_voidp error_ptr PNG_DEPSTRUCT
png_uint_32 rowbytes PNG_DEPSTRUCT
void PNGAPI png_set_write_fn(png_structp png_ptr, png_voidp io_ptr, png_rw_ptr write_data_fn, png_flush_ptr output_flush_fn)
png_voidp png_progressive_info_ptr info_fn
void png_do_chop(png_row_infop row_info, png_bytep row)
png_color_8 sig_bit PNG_DEPSTRUCT
void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
void png_read_destroy(png_structp png_ptr, png_infop info_ptr, png_infop end_info_ptr)
void png_handle_sCAL(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_voidp png_error_ptr png_error_ptr warning_fn
void PNGAPI png_set_sCAL(png_structp png_ptr, png_infop info_ptr, int unit, double width, double height)
png_voidp user_transform_ptr PNG_DEPSTRUCT
png_row_info FAR *FAR * png_row_infopp
png_free_ptr free_fn PNG_DEPSTRUCT
void PNGAPI png_set_unknown_chunk_location(png_structp png_ptr, png_infop info_ptr, int chunk, int location)
void png_write_iCCP(png_structp png_ptr, png_charp name, int compression_type, png_charp profile, int profile_len)
png_voidp int user_transform_depth
png_infop double double double double * red_y
png_uint_32 x_pixels_per_unit PNG_DEPSTRUCT
png_uint_16 rgb_to_gray_green_coeff PNG_DEPSTRUCT
int png_do_rgb_to_gray(png_structp png_ptr, png_row_infop row_info, png_bytep row)
png_bytep trans PNG_DEPSTRUCT
png_struct FAR *FAR * png_structpp
png_fixed_point int_gamma PNG_DEPSTRUCT
void PNGAPI png_set_gAMA(png_structp png_ptr, png_infop info_ptr, double file_gamma)
png_uint_32 PNGAPI png_permit_mng_features(png_structp png_ptr, png_uint_32 mng_features)
void PNGAPI png_info_init_3(png_infopp ptr_ptr, png_size_t png_info_struct_size)
GLenum GLuint GLenum GLsizei const GLchar * buf
void PNGAPI png_set_oFFs(png_structp png_ptr, png_infop info_ptr, png_int_32 offset_x, png_int_32 offset_y, int unit_type)
png_user_transform_ptr read_user_transform_fn PNG_DEPSTRUCT
png_voidp PNGAPI png_get_progressive_ptr(png_structp png_ptr)
png_infop png_bytep * trans
void PNGAPI png_set_sBIT(png_structp png_ptr, png_infop info_ptr, png_color_8p sig_bit)
png_charp current_text PNG_DEPSTRUCT
png_infop png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_x
png_unknown_chunk FAR *FAR * png_unknown_chunkpp
void PNGAPI png_destroy_info_struct(png_structp png_ptr, png_infopp info_ptr_ptr)
void png_read_finish_row(png_structp png_ptr)
voidpf png_zalloc(voidpf png_ptr, uInt items, uInt size)
void png_push_read_chunk(png_structp png_ptr, png_infop info_ptr)
void PNGAPI png_set_sPLT(png_structp png_ptr, png_infop info_ptr, png_sPLT_tp entries, int nentries)
png_infop png_charp png_int_32 * X0
void PNGAPI png_set_user_transform_info(png_structp png_ptr, png_voidp user_transform_ptr, int user_transform_depth, int user_transform_channels)
void png_flush(png_structp png_ptr)
int int png_doublep png_doublep filter_costs
void PNGAPI png_set_gray_1_2_4_to_8(png_structp png_ptr)
png_write_status_ptr write_row_fn
png_uint_32 PNGAPI png_get_mmx_flagmask(int flag_select, int *compilerID)
void png_write_tEXt(png_structp png_ptr, png_charp key, png_charp text, png_size_t text_len)
png_uint_32 PNGAPI png_get_gAMA_fixed(png_structp png_ptr, png_infop info_ptr, png_fixed_point *int_file_gamma)
void png_write_pHYs(png_structp png_ptr, png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit, int unit_type)
void png_calculate_crc(png_structp png_ptr, png_bytep ptr, png_size_t length)
png_byte sig_bytes PNG_DEPSTRUCT
float gamma PNG_DEPSTRUCT
void png_handle_zTXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
GLenum GLenum GLvoid * row
png_uint_32 PNGAPI png_get_text(png_structp png_ptr, png_infop info_ptr, png_textp *text_ptr, int *num_text)
png_size_t current_buffer_size PNG_DEPSTRUCT
void PNGAPI png_default_flush(png_structp png_ptr)
#define png_info_init(info_ptr)
png_uint_32 PNGAPI png_get_sCAL(png_structp png_ptr, png_infop info_ptr, int *unit, double *width, double *height)
png_infop png_bytep int png_color_16p * trans_values
void png_do_gray_to_rgb(png_row_infop row_info, png_bytep row)
png_uint_32 flags PNG_DEPSTRUCT
png_charp current_text_ptr PNG_DEPSTRUCT
void PNGAPI png_read_row(png_structp png_ptr, png_bytep row, png_bytep dsp_row)
int cur_palette PNG_DEPSTRUCT
void PNGAPI png_set_bgr(png_structp png_ptr)
void png_init_read_transformations(png_structp png_ptr)
png_byte PNGAPI png_get_mmx_bitdepth_threshold(png_structp png_ptr)
float gamma PNG_DEPSTRUCT
png_byte FAR *FAR * png_bytepp
png_infop png_charpp int * compression_type
png_uint_32 PNGAPI png_get_user_height_max(png_structp png_ptr)
void PNGAPI png_set_write_user_transform_fn(png_structp png_ptr, png_user_transform_ptr write_user_transform_fn)
png_infop png_fixed_point * int_white_x
void png_handle_cHRM(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_infop png_uint_16p * hist
struct png_color_8_struct png_color_8
png_int_32 y_offset PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_compression_buffer_size(png_structp png_ptr)
png_size_t save_buffer_max PNG_DEPSTRUCT
png_byte compression_type PNG_DEPSTRUCT
png_bytepp png_bytepp display_row
void png_handle_hIST(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
void png_do_dither(png_row_infop row_info, png_bytep row, png_bytep palette_lookup, png_bytep dither_lookup)
void png_push_save_buffer(png_structp png_ptr)
void png_write_sPLT(png_structp png_ptr, png_sPLT_tp spalette)
png_infop png_bytepp row_pointers
png_charp iccp_name PNG_DEPSTRUCT
png_byte offset_unit_type PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_sBIT(png_structp png_ptr, png_infop info_ptr, png_color_8p *sig_bit)
png_time mod_time PNG_DEPSTRUCT
png_bytep prev_row PNG_DEPSTRUCT
png_uint_32 rowbytes PNG_DEPSTRUCT
void PNGAPI png_build_grayscale_palette(int bit_depth, png_colorp palette)
png_fixed_point int_x_green PNG_DEPSTRUCT
void png_read_transform_info(png_structp png_ptr, png_infop info_ptr)
png_bytep dither_index PNG_DEPSTRUCT
png_byte PNGAPI png_get_interlace_type(png_structp png_ptr, png_infop info_ptr)
void png_check_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type)
png_uint_32 user_width_max PNG_DEPSTRUCT
png_struct FAR * png_structp
void png_read_start_row(png_structp png_ptr)
void PNGAPI png_write_info(png_structp png_ptr, png_infop info_ptr)
#define png_error(s1, s2)
void PNGAPI png_read_end(png_structp png_ptr, png_infop info_ptr)
png_voidp PNGAPI png_get_user_transform_ptr(png_structp png_ptr)
void PNGAPI png_set_filler(png_structp png_ptr, png_uint_32 filler, int filler_loc)
void png_write_cHRM_fixed(png_structp png_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y)
png_uint_32 y_pixels_per_unit PNG_DEPSTRUCT
png_uint_16 num_palette PNG_DEPSTRUCT
png_voidp io_ptr PNG_DEPSTRUCT
png_read_status_ptr read_row_fn
void png_info_destroy(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_PLTE(png_structp png_ptr, png_infop info_ptr, png_colorp *palette, int *num_palette)
png_int_32 x_offset PNG_DEPSTRUCT
PNG_EXPORT(png_uint_32, png_access_version_number) PNGARG((void))
void PNGAPI png_set_packswap(png_structp png_ptr)
float x_green PNG_DEPSTRUCT
void png_handle_tEXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
struct png_text_struct png_text
png_uint_32 PNGAPI png_get_cHRM_fixed(png_structp png_ptr, png_infop info_ptr, png_fixed_point *white_x, png_fixed_point *white_y, png_fixed_point *red_x, png_fixed_point *red_y, png_fixed_point *green_x, png_fixed_point *green_y, png_fixed_point *blue_x, png_fixed_point *blue_y)
void png_destroy_struct(png_voidp struct_ptr)
void png_do_read_swap_alpha(png_row_infop row_info, png_bytep row)
png_infop png_uint_32 png_uint_32 int int int int int * filter_method
png_uint_32 PNGAPI png_get_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
png_uint_32 iwidth PNG_DEPSTRUCT
png_infop png_uint_32 free_me
png_uint_32 PNGAPI png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type)
void PNGAPI png_set_swap(png_structp png_ptr)
void PNGAPI png_write_flush(png_structp png_ptr)
png_byte bit_depth PNG_DEPSTRUCT
void png_write_find_filter(png_structp png_ptr, png_row_infop row_info)
png_uint_32 flush_rows PNG_DEPSTRUCT
void png_push_crc_finish(png_structp png_ptr)
png_bytep save_buffer_ptr PNG_DEPSTRUCT
png_voidp png_error_ptr error_fn
png_byte png_uint_32 mmx_rowbytes_threshold
png_int_32 PNGAPI png_get_int_32(png_bytep buf)
png_voidp png_rw_ptr png_flush_ptr output_flush_fn
png_byte PNGAPI png_get_rgb_to_gray_status(png_structp png_ptr)
unsigned short png_uint_16
GLsizei GLsizei GLenum GLenum const GLvoid * data
void PNGAPI png_set_cHRM(png_structp png_ptr, png_infop info_ptr, double white_x, double white_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y)
png_byte pass PNG_DEPSTRUCT
png_voidp png_error_ptr png_error_ptr warn_fn PNG_ALLOCATED
void png_handle_pCAL(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
void png_do_read_interlace(png_structp png_ptr)
void PNGAPI png_set_pCAL(png_structp png_ptr, png_infop info_ptr, png_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_charp units, png_charpp params)
void PNGAPI png_set_compression_mem_level(png_structp png_ptr, int mem_level)
struct png_sPLT_struct png_sPLT_t
png_bytepp row_pointers PNG_DEPSTRUCT
void png_write_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_type, int filter_type, int interlace_type)
void png_write_tRNS(png_structp png_ptr, png_bytep trans, png_color_16p tran, int num_trans, int color_type)
png_byte mmx_bitdepth_threshold
png_infop png_bytep int * num_trans
png_byte iccp_compression PNG_DEPSTRUCT
void png_write_filtered_row(png_structp png_ptr, png_bytep filtered_row)
void PNGAPI png_write_init_2(png_structp png_ptr, png_const_charp user_png_ver, png_size_t png_struct_size, png_size_t png_info_size)
png_sPLT_entry FAR * png_sPLT_entryp
void PNGAPI png_warning(png_structp png_ptr, png_const_charp warning_message)
png_byte interlace_type PNG_DEPSTRUCT
png_infop png_fixed_point * int_file_gamma
void png_combine_row(png_structp png_ptr, png_bytep row, int mask)
#define PNG_CHUNK_NAME_LENGTH
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
png_byte user_transform_depth PNG_DEPSTRUCT
int png_check_cHRM_fixed(png_structp png_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y)
png_voidp PNGAPI png_get_io_ptr(png_structp png_ptr)
png_byte do_filter PNG_DEPSTRUCT
PNG_CONST int FARDATA png_pass_dsp_mask[]
png_byte pixel_depth PNG_DEPSTRUCT
png_size_t save_buffer_size PNG_DEPSTRUCT
void PNGAPI png_set_write_status_fn(png_structp png_ptr, png_write_status_ptr write_row_fn)
png_color_16 background_1 PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_user_width_max(png_structp png_ptr)
struct png_color_16_struct png_color_16
void png_write_pCAL(png_structp png_ptr, png_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_charp units, png_charpp params)
void png_do_bgr(png_row_infop row_info, png_bytep row)
png_voidp mem_ptr PNG_DEPSTRUCT
void png_write_gAMA(png_structp png_ptr, double file_gamma)
png_byte pixel_depth PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_mmx_rowbytes_threshold(png_structp png_ptr)
png_uint_16 FAR * png_uint_16p
void PNGAPI png_convert_from_struct_tm(png_timep ptime, struct tm FAR *ttime)
png_structp PNGAPI png_create_write_struct_2(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn, png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn)
void PNGAPI png_write_end(png_structp png_ptr, png_infop info_ptr)
png_progressive_row_ptr row_fn PNG_DEPSTRUCT
png_colorp palette PNG_DEPSTRUCT
png_uint_32 row_number PNG_DEPSTRUCT
png_uint_16 rgb_to_gray_red_coeff PNG_DEPSTRUCT
void PNGAPI png_set_PLTE(png_structp png_ptr, png_infop info_ptr, png_colorp palette, int num_palette)
png_uint_32 png_uint_32 user_height_max
void png_push_crc_skip(png_structp png_ptr, png_uint_32 skip)
void PNGAPI png_set_gamma(png_structp png_ptr, double scrn_gamma, double file_gamma)
void png_process_IDAT_data(png_structp png_ptr, png_bytep buffer, png_size_t buffer_length)
void png_read_push_finish_row(png_structp png_ptr)
png_byte filter_type PNG_DEPSTRUCT
png_uint_32 splt_palettes_num PNG_DEPSTRUCT
png_voidp png_progressive_info_ptr png_progressive_row_ptr png_progressive_end_ptr end_fn
png_bytep zbuf PNG_DEPSTRUCT
int max_text PNG_DEPSTRUCT
png_uint_32 push_length PNG_DEPSTRUCT
void png_handle_unknown(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
int zlib_strategy PNG_DEPSTRUCT
int PNGAPI png_sig_cmp(png_bytep sig, png_size_t start, png_size_t num_to_check)
int num_text PNG_DEPSTRUCT
png_bytep palette_lookup PNG_DEPSTRUCT
png_byte srgb_intent PNG_DEPSTRUCT
png_uint_16p hist PNG_DEPSTRUCT
png_infop png_fixed_point png_fixed_point * int_white_y
png_textp text PNG_DEPSTRUCT
png_uint_16pp gamma_16_table PNG_DEPSTRUCT
png_fixed_point int_y_white PNG_DEPSTRUCT
png_charpp pcal_params PNG_DEPSTRUCT
png_bytep current_buffer PNG_DEPSTRUCT
png_charp scal_s_height PNG_DEPSTRUCT
GLsizei const GLfloat * value
png_uint_32 flush_dist PNG_DEPSTRUCT
png_read_status_ptr read_row_fn PNG_DEPSTRUCT
void PNGAPI png_set_strip_alpha(png_structp png_ptr)
png_uint_32 crc PNG_DEPSTRUCT
void PNGAPI png_set_compression_window_bits(png_structp png_ptr, int window_bits)
png_voidp user_chunk_ptr PNG_DEPSTRUCT
int png_crc_finish(png_structp png_ptr, png_uint_32 skip)
png_uint_32 free_me PNG_DEPSTRUCT
void PNGAPI png_read_info(png_structp png_ptr, png_infop info_ptr)
void PNGAPI png_chunk_error(png_structp png_ptr, png_const_charp error_message)
void PNGAPI png_set_read_fn(png_structp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn)
float y_white PNG_DEPSTRUCT
void PNGAPI png_save_uint_32(png_bytep buf, png_uint_32 i)
GLboolean GLenum GLenum GLvoid * values
void PNGAPI png_set_invert_mono(png_structp png_ptr)
local void skip(file *in, unsigned n)
z_stream zstream PNG_DEPSTRUCT
png_byte scal_unit PNG_DEPSTRUCT
png_sPLT_entry FAR *FAR * png_sPLT_entrypp
void png_do_expand_palette(png_row_infop row_info, png_bytep row, png_colorp palette, png_bytep trans, int num_trans)
void PNGAPI png_start_read_image(png_structp png_ptr)
png_infop png_uint_32 png_uint_32 int * bit_depth
png_uint_32 old_big_row_buf_size PNG_DEPSTRUCT
png_voidp PNGAPI png_malloc_default(png_structp png_ptr, png_uint_32 size)
png_infop png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_red_y
png_size_t unknown_chunks_num PNG_DEPSTRUCT
png_infop double * file_gamma
png_uint_32 PNGAPI png_get_y_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_iCCP(png_structp png_ptr, png_infop info_ptr, png_charpp name, int *compression_type, png_charpp profile, png_uint_32 *proflen)
png_charp PNGAPI png_get_header_ver(png_structp png_ptr)
void PNGAPI png_read_init(png_structp png_ptr)
int png_set_text_2(png_structp png_ptr, png_infop info_ptr, png_textp text_ptr, int num_text)
float y_blue PNG_DEPSTRUCT
png_uint_32 mode PNG_DEPSTRUCT
GLuint const GLchar * name
png_uint_32 PNGAPI png_get_x_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
void png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth)
png_bytep trans PNG_DEPSTRUCT
void PNGAPI png_set_compression_buffer_size(png_structp png_ptr, png_uint_32 size)
png_uint_32 PNGAPI png_get_uint_31(png_structp png_ptr, png_bytep buf)
png_bytepp png_bytepp png_uint_32 num_rows
png_uint_32 PNGAPI png_get_pCAL(png_structp png_ptr, png_infop info_ptr, png_charp *purpose, png_int_32 *X0, png_int_32 *X1, int *type, int *nparams, png_charp *units, png_charpp *params)
png_uint_32 idat_size PNG_DEPSTRUCT
png_infop png_textp int * num_text
png_voidp PNGAPI png_get_mem_ptr(png_structp png_ptr)
void PNGAPI png_write_chunk_end(png_structp png_ptr)
void png_handle_tRNS(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_infop png_sPLT_tpp entries
png_color_16 trans_values PNG_DEPSTRUCT
void png_push_restore_buffer(png_structp png_ptr, png_bytep buffer, png_size_t buffer_length)
void png_do_unpack(png_row_infop row_info, png_bytep row)
void png_handle_sRGB(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_byte PNGAPI png_get_bit_depth(png_structp png_ptr, png_infop info_ptr)
void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
void png_write_destroy(png_structp png_ptr)
void png_write_tIME(png_structp png_ptr, png_timep mod_time)
png_uint_16 FAR *FAR * png_uint_16pp
PNG_CONST int FARDATA png_pass_inc[]
png_structp PNGAPI png_create_read_struct_2(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn, png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
PNG_CONST png_byte FARDATA png_sig[8]
png_color_16 FAR *FAR * png_color_16pp
GLenum const GLfloat * params
png_uint_32 user_height_max PNG_DEPSTRUCT
png_voidp png_create_struct_2(int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr)
int png_bytep int num_chunks
PNG_CONST int FARDATA png_pass_mask[]
png_uint_32 PNGAPI png_get_asm_flags(png_structp png_ptr)
void png_read_filter_row(png_structp png_ptr, png_row_infop row_info, png_bytep row, png_bytep prev_row, int filter)
png_uint_16 num_trans PNG_DEPSTRUCT
png_structp PNGAPI png_create_read_struct(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)
void PNGAPI png_data_freer(png_structp png_ptr, png_infop info_ptr, int freer, png_uint_32 mask)
png_bytep row_buf PNG_DEPSTRUCT
png_infop png_charp * purpose
void PNGAPI png_free_default(png_structp png_ptr, png_voidp ptr)
void png_write_PLTE(png_structp png_ptr, png_colorp palette, png_uint_32 num_pal)
png_voidp png_user_chunk_ptr read_user_chunk_fn
void png_64bit_product(long v1, long v2, unsigned long *hi_product, unsigned long *lo_product)
png_error_ptr error_fn PNG_DEPSTRUCT
png_color_16 trans_values PNG_DEPSTRUCT
void png_write_sRGB(png_structp png_ptr, int srgb_intent)
void png_do_swap(png_row_infop row_info, png_bytep row)
int zlib_mem_level PNG_DEPSTRUCT
png_charp PNGAPI png_convert_to_rfc1123(png_structp png_ptr, png_timep ptime)
void PNGAPI png_write_info_before_PLTE(png_structp png_ptr, png_infop info_ptr)
png_int_32 PNGAPI png_get_x_offset_pixels(png_structp png_ptr, png_infop info_ptr)
png_infop png_uint_32 png_uint_32 int int * color_type
png_voidp png_error_ptr png_error_ptr warn_fn
png_voidp png_rw_ptr read_data_fn
png_voidp PNGAPI png_memcpy_check(png_structp png_ptr, png_voidp s1, png_voidp s2, png_uint_32 length)
void PNGAPI png_convert_from_time_t(png_timep ptime, time_t ttime)
png_byte usr_channels PNG_DEPSTRUCT
png_infop double double double double double double * green_y
png_sPLT_t FAR * png_sPLT_tp
png_infop double double * white_y
png_const_charp warning_message
png_int_32 PNGAPI png_get_y_offset_pixels(png_structp png_ptr, png_infop info_ptr)
void PNGAPI png_write_chunk_data(png_structp png_ptr, png_bytep data, png_size_t length)
png_size_t png_info_struct_size
png_infop png_bytep png_size_t buffer_size
png_byte PNGAPI png_get_compression_type(png_structp png_ptr, png_infop info_ptr)
void PNGAPI png_set_expand(png_structp png_ptr)
struct png_unknown_chunk_t png_unknown_chunk
png_uint_32 PNGAPI png_get_bKGD(png_structp png_ptr, png_infop info_ptr, png_color_16p *background)
png_infop png_charp png_int_32 png_int_32 int int * nparams
void PNGAPI png_destroy_write_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr)
png_fixed_point int_y_red PNG_DEPSTRUCT
png_byte signature [8] PNG_DEPSTRUCT
png_color_8 FAR * png_color_8p
png_uint_32 PNGAPI png_get_asm_flagmask(int flag_select)
void png_handle_tIME(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
int PNGAPI png_set_interlace_handling(png_structp png_ptr)
void png_handle_oFFs(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_uint_16pp gamma_16_to_1 PNG_DEPSTRUCT
png_rw_ptr write_data_fn PNG_DEPSTRUCT
png_text FAR *FAR * png_textpp
void PNGAPI png_set_crc_action(png_structp png_ptr, int crit_action, int ancil_action)
png_bytep paeth_row PNG_DEPSTRUCT
png_infop png_sPLT_tp int nentries
void png_process_some_data(png_structp png_ptr, png_infop info_ptr)
png_fixed_point int_x_red PNG_DEPSTRUCT
png_uint_32 user_width_max
png_size_t png_check_keyword(png_structp png_ptr, png_charp key, png_charpp new_key)
void PNGAPI png_set_tRNS_to_alpha(png_structp png_ptr)
png_fixed_point int_gamma PNG_DEPSTRUCT
void png_write_IEND(png_structp png_ptr)
void PNGAPI png_write_row(png_structp png_ptr, png_bytep row)
void PNGAPI png_read_png(png_structp png_ptr, png_infop info_ptr, int transforms, voidp params)
png_int_32 png_fixed_point
png_uint_16p hist PNG_DEPSTRUCT
int zlib_method PNG_DEPSTRUCT
png_infop double double double * red_x
png_rw_ptr read_data_fn PNG_DEPSTRUCT
void PNGAPI png_set_shift(png_structp png_ptr, png_color_8p true_bits)
char FAR *FAR * png_charpp
png_charp pcal_purpose PNG_DEPSTRUCT
png_bytep gamma_table PNG_DEPSTRUCT
void PNGAPI png_push_fill_buffer(png_structp png_ptr, png_bytep buffer, png_size_t length)
void png_handle_bKGD(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
void png_write_bKGD(png_structp png_ptr, png_color_16p back, int color_type)
png_color_16p background_color
png_byte rgb_to_gray_status PNG_DEPSTRUCT
png_flush_ptr output_flush_fn PNG_DEPSTRUCT
double scal_pixel_height PNG_DEPSTRUCT
void png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn, png_voidp mem_ptr)
png_voidp PNGAPI png_memset_check(png_structp png_ptr, png_voidp s1, int value, png_uint_32 length)
void PNGAPI png_read_image(png_structp png_ptr, png_bytepp image)
png_structp PNGAPI png_create_write_struct(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)
float screen_gamma PNG_DEPSTRUCT
int PNGAPI png_mmx_support(void)
void png_handle_gAMA(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_uint_32 PNGAPI png_get_sPLT(png_structp png_ptr, png_infop info_ptr, png_sPLT_tpp spalettes)
int png_crc_error(png_structp png_ptr)
void PNGAPI png_write_init(png_structp png_ptr)
png_infop png_int_32 png_int_32 int * unit_type
void png_handle_sBIT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
void PNGAPI png_save_uint_16(png_bytep buf, unsigned int i)
void png_push_process_row(png_structp png_ptr)
void PNGAPI png_set_invalid(png_structp png_ptr, png_infop info_ptr, int mask)
png_unknown_chunkp unknown_chunks PNG_DEPSTRUCT
png_bytep save_buffer PNG_DEPSTRUCT
png_colorp palette PNG_DEPSTRUCT
void PNGAPI png_set_compression_method(png_structp png_ptr, int method)
void PNGAPI png_set_text(png_structp png_ptr, png_infop info_ptr, png_textp text_ptr, int num_text)
png_bytep avg_row PNG_DEPSTRUCT
void PNGAPI png_set_read_user_chunk_fn(png_structp png_ptr, png_voidp user_chunk_ptr, png_user_chunk_ptr read_user_chunk_fn)
png_byte phys_unit_type PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_image_height(png_structp png_ptr, png_infop info_ptr)
png_progressive_end_ptr end_fn PNG_DEPSTRUCT
struct png_row_info_struct png_row_info
png_sPLT_t FAR *FAR * png_sPLT_tpp
png_colorp int int maximum_colors
png_byte color_type PNG_DEPSTRUCT
png_byte PNGAPI png_get_filter_type(png_structp png_ptr, png_infop info_ptr)
png_const_charp error_message PNG_NORETURN
png_uint_32 user_chunk_cache_max PNG_DEPSTRUCT
void png_decompress_chunk(png_structp png_ptr, int comp_type, png_size_t chunklength, png_size_t prefix_size, png_size_t *newlength)
void PNGAPI png_permit_empty_plte(png_structp png_ptr, int empty_plte_permitted)
void png_handle_iCCP(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
void PNGAPI png_set_tRNS(png_structp png_ptr, png_infop info_ptr, png_bytep trans, int num_trans, png_color_16p trans_values)
png_uint_32 usr_width PNG_DEPSTRUCT
void PNGAPI png_set_read_user_transform_fn(png_structp png_ptr, png_user_transform_ptr read_user_transform_fn)
int zlib_window_bits PNG_DEPSTRUCT
void PNGAPI png_set_progressive_read_fn(png_structp png_ptr, png_voidp progressive_ptr, png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn, png_progressive_end_ptr end_fn)
void png_write_finish_row(png_structp png_ptr)
void PNGAPI png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
void PNGAPI png_write_chunk_start(png_structp png_ptr, png_bytep chunk_name, png_uint_32 length)
png_infop double double double double double * green_x
void PNGAPI png_set_pHYs(png_structp png_ptr, png_infop info_ptr, png_uint_32 res_x, png_uint_32 res_y, int unit_type)
unsigned long png_uint_32
png_row_info FAR * png_row_infop
png_bytep current_buffer_ptr PNG_DEPSTRUCT
void PNGAPI png_read_init_2(png_structp png_ptr, png_const_charp user_png_ver, png_size_t png_struct_size, png_size_t png_info_size)
png_size_t current_text_left PNG_DEPSTRUCT
png_charp PNGAPI png_get_header_version(png_structp png_ptr)
png_bytep gamma_to_1 PNG_DEPSTRUCT
png_int_32 PNGAPI png_get_x_offset_microns(png_structp png_ptr, png_infop info_ptr)
png_write_status_ptr write_row_fn PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_tIME(png_structp png_ptr, png_infop info_ptr, png_timep *mod_time)
png_uint_32 valid PNG_DEPSTRUCT
void png_handle_PLTE(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
void png_write_zTXt(png_structp png_ptr, png_charp key, png_charp text, png_size_t text_len, int compression)
png_charp PNGAPI png_get_copyright(png_structp png_ptr)
png_voidp png_error_ptr png_error_ptr png_voidp mem_ptr
void png_do_unshift(png_row_infop row_info, png_bytep row, png_color_8p sig_bits)
png_bytepp PNGAPI png_get_rows(png_structp png_ptr, png_infop info_ptr)
png_infop png_uint_32 flag
png_uint_16 rgb_to_gray_blue_coeff PNG_DEPSTRUCT
png_info FAR *FAR * png_infopp
void PNGAPI png_free(png_structp png_ptr, png_voidp ptr)
int PNGAPI png_reset_zstream(png_structp png_ptr)
png_color_16p int background_gamma_code
void PNGAPI png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red, double green)
png_uint_32 PNGAPI png_get_rowbytes(png_structp png_ptr, png_infop info_ptr)
void PNGAPI png_set_swap_alpha(png_structp png_ptr)
png_byte spare_byte PNG_DEPSTRUCT
void PNGAPI png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
png_voidp PNGAPI png_get_user_chunk_ptr(png_structp png_ptr)
png_int_32 pcal_X1 PNG_DEPSTRUCT
png_uint_32 transformations PNG_DEPSTRUCT
png_fixed_point int_x_blue PNG_DEPSTRUCT
png_infop double * white_x
png_infop png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_y
void PNGAPI png_set_filter(png_structp png_ptr, int method, int filters)
void PNGAPI png_read_init_3(png_structpp ptr_ptr, png_const_charp user_png_ver, png_size_t png_struct_size)
void png_push_have_info(png_structp png_ptr, png_infop info_ptr)
png_unknown_chunk unknown_chunk PNG_DEPSTRUCT
png_infop png_timep * mod_time
void png_handle_pHYs(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_byte PNGAPI png_get_color_type(png_structp png_ptr, png_infop info_ptr)
void png_do_write_interlace(png_row_infop row_info, png_bytep row, int pass)
void PNGAPI png_set_error_fn(png_structp png_ptr, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warning_fn)
png_byte mmx_bitdepth_threshold PNG_DEPSTRUCT
void PNGAPI png_read_update_info(png_structp png_ptr, png_infop info_ptr)
png_user_transform_ptr write_user_transform_fn PNG_DEPSTRUCT
png_byte color_type PNG_DEPSTRUCT
png_uint_32 PNGAPI png_get_sRGB(png_structp png_ptr, png_infop info_ptr, int *file_srgb_intent)
png_byte filter PNG_DEPSTRUCT
void PNGAPI png_init_io(png_structp png_ptr, png_FILE_p fp)
void png_check_chunk_name(png_structp png_ptr, png_bytep chunk_name)
png_color_16 background PNG_DEPSTRUCT
PNG_EXPORT_VAR(PNG_CONST char) png_libpng_ver[18]
png_time FAR *FAR * png_timepp
png_byte pcal_nparams PNG_DEPSTRUCT
png_uint_32 num_rows PNG_DEPSTRUCT
void PNGAPI png_set_keep_unknown_chunks(png_structp png_ptr, int keep, png_bytep chunk_list, int num_chunks)
int num_chunk_list PNG_DEPSTRUCT
png_uint_16 num_palette PNG_DEPSTRUCT
png_infop png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_blue_x
png_infop png_uint_32 png_uint_32 int int int int * compression_method
png_voidp PNGAPI png_malloc(png_structp png_ptr, png_uint_32 size)
void png_reset_crc(png_structp png_ptr)
png_voidp PNGAPI png_malloc_warn(png_structp png_ptr, png_uint_32 size)
void PNGAPI png_set_sRGB(png_structp png_ptr, png_infop info_ptr, int intent)
png_byte PNGAPI png_get_channels(png_structp png_ptr, png_infop info_ptr)
png_byte compression_type PNG_DEPSTRUCT
float x_red PNG_DEPSTRUCT
png_uint_32 mmx_rowbytes_threshold PNG_DEPSTRUCT
void png_write_cHRM(png_structp png_ptr, double white_x, double white_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y)
void PNGAPI png_set_gray_to_rgb(png_structp png_ptr)
png_infop png_unknown_chunkp unknowns
struct png_color_struct png_color
png_uint_32 png_read_chunk_header(png_structp png_ptr)
png_byte chunk_name [5] PNG_DEPSTRUCT
png_user_transform_ptr read_user_transform_fn
void png_do_write_swap_alpha(png_row_infop row_info, png_bytep row)
void PNGAPI png_write_init_3(png_structpp ptr_ptr, png_const_charp user_png_ver, png_size_t png_struct_size)
void PNGAPI png_set_gAMA_fixed(png_structp png_ptr, png_infop info_ptr, png_fixed_point int_gamma)
void png_do_write_invert_alpha(png_row_infop row_info, png_bytep row)
png_infop png_color_8p * sig_bit
png_uint_32 PNGAPI png_access_version_number(void)
png_color FAR * png_colorp