413 #define PNG_LIBPNG_VER_STRING "1.2.32" 414 #define PNG_HEADER_VERSION_STRING \ 415 " libpng version 1.2.32 - September 18, 2008\n" 417 #define PNG_LIBPNG_VER_SONUM 0 418 #define PNG_LIBPNG_VER_DLLNUM 13 421 #define PNG_LIBPNG_VER_MAJOR 1 422 #define PNG_LIBPNG_VER_MINOR 2 423 #define PNG_LIBPNG_VER_RELEASE 32 427 #define PNG_LIBPNG_VER_BUILD 0 430 #define PNG_LIBPNG_BUILD_ALPHA 1 431 #define PNG_LIBPNG_BUILD_BETA 2 432 #define PNG_LIBPNG_BUILD_RC 3 433 #define PNG_LIBPNG_BUILD_STABLE 4 434 #define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK 7 437 #define PNG_LIBPNG_BUILD_PATCH 8 439 #define PNG_LIBPNG_BUILD_PRIVATE 16 441 #define PNG_LIBPNG_BUILD_SPECIAL 32 444 #define PNG_LIBPNG_BUILD_BASE_TYPE PNG_LIBPNG_BUILD_STABLE 451 #define PNG_LIBPNG_VER 10232 453 #ifndef PNG_VERSION_INFO_ONLY 474 #if defined(PNG_USER_PRIVATEBUILD) 475 # define PNG_LIBPNG_BUILD_TYPE \ 476 (PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_PRIVATE) 478 # if defined(PNG_LIBPNG_SPECIALBUILD) 479 # define PNG_LIBPNG_BUILD_TYPE \ 480 (PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_SPECIAL) 482 # define PNG_LIBPNG_BUILD_TYPE (PNG_LIBPNG_BUILD_BASE_TYPE) 486 #ifndef PNG_VERSION_INFO_ONLY 499 #ifndef PNG_NO_TYPECAST_NULL 500 #define int_p_NULL (int *)NULL 501 #define png_bytep_NULL (png_bytep)NULL 502 #define png_bytepp_NULL (png_bytepp)NULL 503 #define png_doublep_NULL (png_doublep)NULL 504 #define png_error_ptr_NULL (png_error_ptr)NULL 505 #define png_flush_ptr_NULL (png_flush_ptr)NULL 506 #define png_free_ptr_NULL (png_free_ptr)NULL 507 #define png_infopp_NULL (png_infopp)NULL 508 #define png_malloc_ptr_NULL (png_malloc_ptr)NULL 509 #define png_read_status_ptr_NULL (png_read_status_ptr)NULL 510 #define png_rw_ptr_NULL (png_rw_ptr)NULL 511 #define png_structp_NULL (png_structp)NULL 512 #define png_uint_16p_NULL (png_uint_16p)NULL 513 #define png_voidp_NULL (png_voidp)NULL 514 #define png_write_status_ptr_NULL (png_write_status_ptr)NULL 516 #define int_p_NULL NULL 517 #define png_bytep_NULL NULL 518 #define png_bytepp_NULL NULL 519 #define png_doublep_NULL NULL 520 #define png_error_ptr_NULL NULL 521 #define png_flush_ptr_NULL NULL 522 #define png_free_ptr_NULL NULL 523 #define png_infopp_NULL NULL 524 #define png_malloc_ptr_NULL NULL 525 #define png_read_status_ptr_NULL NULL 526 #define png_rw_ptr_NULL NULL 527 #define png_structp_NULL NULL 528 #define png_uint_16p_NULL NULL 529 #define png_voidp_NULL NULL 530 #define png_write_status_ptr_NULL NULL 534 #if !defined(PNG_NO_EXTERN) || defined(PNG_ALWAYS_EXTERN) 538 #ifdef PNG_USE_GLOBAL_ARRAYS 542 #define png_libpng_ver png_get_header_ver(NULL) 545 #ifdef PNG_USE_GLOBAL_ARRAYS 626 #ifdef PNG_TEXT_SUPPORTED 646 #ifdef PNG_iTXt_SUPPORTED 660 #define PNG_TEXT_COMPRESSION_NONE_WR -3 661 #define PNG_TEXT_COMPRESSION_zTXt_WR -2 662 #define PNG_TEXT_COMPRESSION_NONE -1 663 #define PNG_TEXT_COMPRESSION_zTXt 0 664 #define PNG_ITXT_COMPRESSION_NONE 1 665 #define PNG_ITXT_COMPRESSION_zTXt 2 666 #define PNG_TEXT_COMPRESSION_LAST 3 686 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) 692 #define PNG_CHUNK_NAME_LENGTH 5 775 #if defined(PNG_gAMA_SUPPORTED) && defined(PNG_FLOATING_POINT_SUPPORTED) 783 #if defined(PNG_sRGB_SUPPORTED) 789 #if defined(PNG_TEXT_SUPPORTED) 803 #if defined(PNG_tIME_SUPPORTED) 810 #if defined(PNG_sBIT_SUPPORTED) 820 #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_EXPAND_SUPPORTED) || \ 821 defined(PNG_READ_BACKGROUND_SUPPORTED) 835 #if defined(PNG_bKGD_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 845 #if defined(PNG_oFFs_SUPPORTED) 856 #if defined(PNG_pHYs_SUPPORTED) 866 #if defined(PNG_hIST_SUPPORTED) 876 #ifdef PNG_cHRM_SUPPORTED 883 #ifdef PNG_FLOATING_POINT_SUPPORTED 895 #if defined(PNG_pCAL_SUPPORTED) 917 #ifdef PNG_FREE_ME_SUPPORTED 921 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) 927 #if defined(PNG_iCCP_SUPPORTED) 936 #if defined(PNG_sPLT_SUPPORTED) 942 #if defined(PNG_sCAL_SUPPORTED) 951 #ifdef PNG_FLOATING_POINT_SUPPORTED 955 #ifdef PNG_FIXED_POINT_SUPPORTED 961 #if defined(PNG_INFO_IMAGE_SUPPORTED) 967 #if defined(PNG_FIXED_POINT_SUPPORTED) && defined(PNG_gAMA_SUPPORTED) 971 #if defined(PNG_cHRM_SUPPORTED) && defined(PNG_FIXED_POINT_SUPPORTED) 988 #define PNG_UINT_31_MAX ((png_uint_32)0x7fffffffL) 989 #define PNG_UINT_32_MAX ((png_uint_32)(-1)) 990 #define PNG_SIZE_MAX ((png_size_t)(-1)) 991 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 993 #define PNG_MAX_UINT PNG_UINT_31_MAX 998 #define PNG_COLOR_MASK_PALETTE 1 999 #define PNG_COLOR_MASK_COLOR 2 1000 #define PNG_COLOR_MASK_ALPHA 4 1003 #define PNG_COLOR_TYPE_GRAY 0 1004 #define PNG_COLOR_TYPE_PALETTE (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE) 1005 #define PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR) 1006 #define PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA) 1007 #define PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA) 1009 #define PNG_COLOR_TYPE_RGBA PNG_COLOR_TYPE_RGB_ALPHA 1010 #define PNG_COLOR_TYPE_GA PNG_COLOR_TYPE_GRAY_ALPHA 1013 #define PNG_COMPRESSION_TYPE_BASE 0 1014 #define PNG_COMPRESSION_TYPE_DEFAULT PNG_COMPRESSION_TYPE_BASE 1017 #define PNG_FILTER_TYPE_BASE 0 1018 #define PNG_INTRAPIXEL_DIFFERENCING 64 1019 #define PNG_FILTER_TYPE_DEFAULT PNG_FILTER_TYPE_BASE 1022 #define PNG_INTERLACE_NONE 0 1023 #define PNG_INTERLACE_ADAM7 1 1024 #define PNG_INTERLACE_LAST 2 1027 #define PNG_OFFSET_PIXEL 0 1028 #define PNG_OFFSET_MICROMETER 1 1029 #define PNG_OFFSET_LAST 2 1032 #define PNG_EQUATION_LINEAR 0 1033 #define PNG_EQUATION_BASE_E 1 1034 #define PNG_EQUATION_ARBITRARY 2 1035 #define PNG_EQUATION_HYPERBOLIC 3 1036 #define PNG_EQUATION_LAST 4 1039 #define PNG_SCALE_UNKNOWN 0 1040 #define PNG_SCALE_METER 1 1041 #define PNG_SCALE_RADIAN 2 1042 #define PNG_SCALE_LAST 3 1045 #define PNG_RESOLUTION_UNKNOWN 0 1046 #define PNG_RESOLUTION_METER 1 1047 #define PNG_RESOLUTION_LAST 2 1050 #define PNG_sRGB_INTENT_PERCEPTUAL 0 1051 #define PNG_sRGB_INTENT_RELATIVE 1 1052 #define PNG_sRGB_INTENT_SATURATION 2 1053 #define PNG_sRGB_INTENT_ABSOLUTE 3 1054 #define PNG_sRGB_INTENT_LAST 4 1057 #define PNG_KEYWORD_MAX_LENGTH 79 1060 #define PNG_MAX_PALETTE_LENGTH 256 1067 #define PNG_INFO_gAMA 0x0001 1068 #define PNG_INFO_sBIT 0x0002 1069 #define PNG_INFO_cHRM 0x0004 1070 #define PNG_INFO_PLTE 0x0008 1071 #define PNG_INFO_tRNS 0x0010 1072 #define PNG_INFO_bKGD 0x0020 1073 #define PNG_INFO_hIST 0x0040 1074 #define PNG_INFO_pHYs 0x0080 1075 #define PNG_INFO_oFFs 0x0100 1076 #define PNG_INFO_tIME 0x0200 1077 #define PNG_INFO_pCAL 0x0400 1078 #define PNG_INFO_sRGB 0x0800 1079 #define PNG_INFO_iCCP 0x1000 1080 #define PNG_INFO_sPLT 0x2000 1081 #define PNG_INFO_sCAL 0x4000 1082 #define PNG_INFO_IDAT 0x8000L 1118 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 1119 typedef void (
PNGAPI *png_progressive_info_ptr)
PNGARG((png_structp, png_infop));
1120 typedef void (
PNGAPI *png_progressive_end_ptr)
PNGARG((png_structp, png_infop));
1125 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 1126 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) || \ 1127 defined(PNG_LEGACY_SUPPORTED) 1132 #if defined(PNG_USER_CHUNKS_SUPPORTED) 1133 typedef int (
PNGAPI *png_user_chunk_ptr)
PNGARG((png_structp, png_unknown_chunkp));
1135 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) 1140 #define PNG_TRANSFORM_IDENTITY 0x0000 1141 #define PNG_TRANSFORM_STRIP_16 0x0001 1142 #define PNG_TRANSFORM_STRIP_ALPHA 0x0002 1143 #define PNG_TRANSFORM_PACKING 0x0004 1144 #define PNG_TRANSFORM_PACKSWAP 0x0008 1145 #define PNG_TRANSFORM_EXPAND 0x0010 1146 #define PNG_TRANSFORM_INVERT_MONO 0x0020 1147 #define PNG_TRANSFORM_SHIFT 0x0040 1148 #define PNG_TRANSFORM_BGR 0x0080 1149 #define PNG_TRANSFORM_SWAP_ALPHA 0x0100 1150 #define PNG_TRANSFORM_SWAP_ENDIAN 0x0200 1151 #define PNG_TRANSFORM_INVERT_ALPHA 0x0400 1152 #define PNG_TRANSFORM_STRIP_FILLER 0x0800 1155 #define PNG_FLAG_MNG_EMPTY_PLTE 0x01 1156 #define PNG_FLAG_MNG_FILTER_64 0x04 1157 #define PNG_ALL_MNG_FEATURES 0x05 1171 #ifdef PNG_SETJMP_SUPPORTED 1181 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) 1185 #if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) 1190 #if defined(PNG_USER_TRANSFORM_PTR_SUPPORTED) 1191 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 1192 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) 1222 #ifndef PNG_NO_WRITE_FILTER 1249 #if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED) 1250 #ifdef PNG_LEGACY_SUPPORTED 1257 #if defined(PNG_bKGD_SUPPORTED) 1259 # ifdef PNG_FLOATING_POINT_SUPPORTED 1263 #if defined(PNG_READ_GAMMA_SUPPORTED) 1268 #if defined(PNG_WRITE_FLUSH_SUPPORTED) 1274 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1276 #ifdef PNG_FLOATING_POINT_SUPPORTED 1282 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1291 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_sBIT_SUPPORTED) 1295 #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED) 1299 #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) \ 1300 || defined(PNG_READ_EXPAND_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1307 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 1324 # if defined(PNG_TEXT_SUPPORTED) 1332 #if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__) 1341 #if defined(PNG_READ_DITHER_SUPPORTED) 1346 #if defined(PNG_READ_DITHER_SUPPORTED) || defined(PNG_hIST_SUPPORTED) 1350 #if defined(PNG_WRITE_WEIGHTED_FILTER_SUPPORTED) 1360 #if defined(PNG_TIME_RFC1123_SUPPORTED) 1366 #ifdef PNG_FREE_ME_SUPPORTED 1370 #if defined(PNG_USER_CHUNKS_SUPPORTED) 1375 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) 1381 #if defined(PNG_READ_RGB_TO_GRAY_SUPPORTED) 1390 #if defined(PNG_MNG_FEATURES_SUPPORTED) || \ 1391 defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \ 1392 defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED) 1402 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) 1407 #if defined(PNG_MNG_FEATURES_SUPPORTED) 1411 #if defined(PNG_1_0_X) 1417 #if defined(PNG_ASSEMBLER_CODE_SUPPORTED) 1418 # if !defined(PNG_1_0_X) 1419 # if defined(PNG_MMX_CODE_SUPPORTED) 1428 #ifdef PNG_USER_MEM_SUPPORTED 1437 #if defined(PNG_READ_DITHER_SUPPORTED) 1449 #ifdef PNG_SET_USER_LIMITS_SUPPORTED 1455 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) 1512 png_error_ptr error_fn, png_error_ptr warn_fn));
1514 #ifdef PNG_WRITE_SUPPORTED 1516 PNGARG((png_structp png_ptr));
1519 #ifdef PNG_WRITE_SUPPORTED 1528 #ifdef PNG_USER_MEM_SUPPORTED 1535 png_error_ptr error_fn, png_error_ptr warn_fn,
png_voidp mem_ptr,
1536 png_malloc_ptr malloc_fn, png_free_ptr free_fn));
1556 PNGARG((png_structp png_ptr));
1558 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 1561 #undef png_info_init 1562 #define png_info_init(info_ptr) png_info_init_3(&info_ptr,\ 1563 png_sizeof(png_info)); 1571 png_infop info_ptr));
1573 png_infop info_ptr));
1575 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1578 png_infop info_ptr));
1581 #if defined(PNG_TIME_RFC1123_SUPPORTED) 1586 #if !defined(_WIN32_WCE) 1588 #if defined(PNG_WRITE_tIME_SUPPORTED) 1599 #if defined(PNG_READ_EXPAND_SUPPORTED) 1602 #if !defined(PNG_1_0_X) 1608 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 1614 #if defined(PNG_READ_BGR_SUPPORTED) || defined(PNG_WRITE_BGR_SUPPORTED) 1619 #if defined(PNG_READ_GRAY_TO_RGB_SUPPORTED) 1624 #if defined(PNG_READ_RGB_TO_GRAY_SUPPORTED) 1626 #ifdef PNG_FLOATING_POINT_SUPPORTED 1639 #if defined(PNG_READ_STRIP_ALPHA_SUPPORTED) 1643 #if defined(PNG_READ_SWAP_ALPHA_SUPPORTED) || \ 1644 defined(PNG_WRITE_SWAP_ALPHA_SUPPORTED) 1648 #if defined(PNG_READ_INVERT_ALPHA_SUPPORTED) || \ 1649 defined(PNG_WRITE_INVERT_ALPHA_SUPPORTED) 1653 #if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED) 1658 #define PNG_FILLER_BEFORE 0 1659 #define PNG_FILLER_AFTER 1 1661 #if !defined(PNG_1_0_X) 1667 #if defined(PNG_READ_SWAP_SUPPORTED) || defined(PNG_WRITE_SWAP_SUPPORTED) 1672 #if defined(PNG_READ_PACK_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED) 1677 #if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPORTED) 1682 #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED) 1688 #if defined(PNG_READ_INTERLACING_SUPPORTED) || \ 1689 defined(PNG_WRITE_INTERLACING_SUPPORTED) 1694 #if defined(PNG_READ_INVERT_SUPPORTED) || defined(PNG_WRITE_INVERT_SUPPORTED) 1699 #if defined(PNG_READ_BACKGROUND_SUPPORTED) 1701 #ifdef PNG_FLOATING_POINT_SUPPORTED 1706 #define PNG_BACKGROUND_GAMMA_UNKNOWN 0 1707 #define PNG_BACKGROUND_GAMMA_SCREEN 1 1708 #define PNG_BACKGROUND_GAMMA_FILE 2 1709 #define PNG_BACKGROUND_GAMMA_UNIQUE 3 1712 #if defined(PNG_READ_16_TO_8_SUPPORTED) 1717 #if defined(PNG_READ_DITHER_SUPPORTED) 1724 #if defined(PNG_READ_GAMMA_SUPPORTED) 1726 #ifdef PNG_FLOATING_POINT_SUPPORTED 1732 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 1733 #if defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \ 1734 defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED) 1742 #if defined(PNG_WRITE_FLUSH_SUPPORTED) 1754 png_infop info_ptr));
1756 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1762 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1769 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1789 png_infop info_ptr));
1791 #ifndef PNG_NO_SEQUENTIAL_READ_SUPPORTED 1794 png_infop info_ptr));
1807 png_infop end_info_ptr));
1811 PNGARG((png_structpp png_ptr_ptr, png_infopp info_ptr_ptr));
1829 #define PNG_CRC_DEFAULT 0 1830 #define PNG_CRC_ERROR_QUIT 1 1831 #define PNG_CRC_WARN_DISCARD 2 1832 #define PNG_CRC_WARN_USE 3 1833 #define PNG_CRC_QUIET_USE 4 1834 #define PNG_CRC_NO_CHANGE 5 1855 #define PNG_NO_FILTERS 0x00 1856 #define PNG_FILTER_NONE 0x08 1857 #define PNG_FILTER_SUB 0x10 1858 #define PNG_FILTER_UP 0x20 1859 #define PNG_FILTER_AVG 0x40 1860 #define PNG_FILTER_PAETH 0x80 1861 #define PNG_ALL_FILTERS (PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP | \ 1862 PNG_FILTER_AVG | PNG_FILTER_PAETH) 1867 #define PNG_FILTER_VALUE_NONE 0 1868 #define PNG_FILTER_VALUE_SUB 1 1869 #define PNG_FILTER_VALUE_UP 2 1870 #define PNG_FILTER_VALUE_AVG 3 1871 #define PNG_FILTER_VALUE_PAETH 4 1872 #define PNG_FILTER_VALUE_LAST 5 1874 #if defined(PNG_WRITE_WEIGHTED_FILTER_SUPPORTED) 1903 #ifdef PNG_FLOATING_POINT_SUPPORTED 1913 #define PNG_FILTER_HEURISTIC_DEFAULT 0 1914 #define PNG_FILTER_HEURISTIC_UNWEIGHTED 1 1915 #define PNG_FILTER_HEURISTIC_WEIGHTED 2 1916 #define PNG_FILTER_HEURISTIC_LAST 3 1949 #if !defined(PNG_NO_STDIO) 1989 #ifdef PNG_USER_MEM_SUPPORTED 1992 png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn));
1997 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 1998 defined(PNG_LEGACY_SUPPORTED) 2003 #if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) || \ 2004 defined(PNG_LEGACY_SUPPORTED) 2009 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 2010 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) || \ 2011 defined(PNG_LEGACY_SUPPORTED) 2017 PNGARG((png_structp png_ptr));
2020 #ifdef PNG_USER_CHUNKS_SUPPORTED 2027 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 2033 png_progressive_info_ptr
info_fn, png_progressive_row_ptr
row_fn,
2034 png_progressive_end_ptr
end_fn));
2038 PNGARG((png_structp png_ptr));
2054 #if defined(PNG_1_0_X) 2055 # define png_malloc_warn png_malloc 2065 #if defined(PNG_1_0_X) 2077 #ifdef PNG_FREE_ME_SUPPORTED 2084 #define PNG_DESTROY_WILL_FREE_DATA 1 2085 #define PNG_SET_WILL_FREE_DATA 1 2086 #define PNG_USER_WILL_FREE_DATA 2 2088 #define PNG_FREE_HIST 0x0008 2089 #define PNG_FREE_ICCP 0x0010 2090 #define PNG_FREE_SPLT 0x0020 2091 #define PNG_FREE_ROWS 0x0040 2092 #define PNG_FREE_PCAL 0x0080 2093 #define PNG_FREE_SCAL 0x0100 2094 #define PNG_FREE_UNKN 0x0200 2095 #define PNG_FREE_LIST 0x0400 2096 #define PNG_FREE_PLTE 0x1000 2097 #define PNG_FREE_TRNS 0x2000 2098 #define PNG_FREE_TEXT 0x4000 2099 #define PNG_FREE_ALL 0x7fff 2100 #define PNG_FREE_MUL 0x4220 2102 #ifdef PNG_USER_MEM_SUPPORTED 2115 #if defined(USE_FAR_KEYWORD) 2116 extern void *png_far_to_near
PNGARG((png_structp png_ptr,png_voidp ptr,
2120 #ifndef PNG_NO_ERROR_TEXT 2133 #ifndef PNG_NO_WARNINGS 2138 #ifdef PNG_READ_SUPPORTED 2163 png_infop info_ptr));
2165 #if defined(PNG_INFO_IMAGE_SUPPORTED) 2169 png_infop info_ptr));
2178 png_infop info_ptr));
2180 #ifdef PNG_EASY_ACCESS_SUPPORTED 2183 png_ptr, png_infop info_ptr));
2187 png_ptr, png_infop info_ptr));
2191 png_ptr, png_infop info_ptr));
2195 png_ptr, png_infop info_ptr));
2199 png_ptr, png_infop info_ptr));
2203 png_ptr, png_infop info_ptr));
2207 png_ptr, png_infop info_ptr));
2211 png_ptr, png_infop info_ptr));
2213 png_ptr, png_infop info_ptr));
2215 png_ptr, png_infop info_ptr));
2218 #ifdef PNG_FLOATING_POINT_SUPPORTED 2220 png_ptr, png_infop info_ptr));
2225 png_ptr, png_infop info_ptr));
2227 png_ptr, png_infop info_ptr));
2229 png_ptr, png_infop info_ptr));
2231 png_ptr, png_infop info_ptr));
2237 png_infop info_ptr));
2239 #if defined(PNG_bKGD_SUPPORTED) 2244 #if defined(PNG_bKGD_SUPPORTED) 2246 png_infop info_ptr, png_color_16p background));
2249 #if defined(PNG_cHRM_SUPPORTED) 2250 #ifdef PNG_FLOATING_POINT_SUPPORTED 2256 #ifdef PNG_FIXED_POINT_SUPPORTED 2265 #if defined(PNG_cHRM_SUPPORTED) 2266 #ifdef PNG_FLOATING_POINT_SUPPORTED 2268 png_infop info_ptr,
double white_x,
double white_y,
double red_x,
2269 double red_y,
double green_x,
double green_y,
double blue_x,
double blue_y));
2271 #ifdef PNG_FIXED_POINT_SUPPORTED 2280 #if defined(PNG_gAMA_SUPPORTED) 2281 #ifdef PNG_FLOATING_POINT_SUPPORTED 2289 #if defined(PNG_gAMA_SUPPORTED) 2290 #ifdef PNG_FLOATING_POINT_SUPPORTED 2292 png_infop info_ptr,
double file_gamma));
2298 #if defined(PNG_hIST_SUPPORTED) 2303 #if defined(PNG_hIST_SUPPORTED) 2314 png_infop info_ptr, png_uint_32 width, png_uint_32 height,
int bit_depth,
2315 int color_type,
int interlace_method,
int compression_method,
2316 int filter_method));
2318 #if defined(PNG_oFFs_SUPPORTED) 2324 #if defined(PNG_oFFs_SUPPORTED) 2326 png_infop info_ptr, png_int_32 offset_x, png_int_32 offset_y,
2330 #if defined(PNG_pCAL_SUPPORTED) 2336 #if defined(PNG_pCAL_SUPPORTED) 2338 png_infop info_ptr,
png_charp purpose, png_int_32 X0, png_int_32 X1,
2342 #if defined(PNG_pHYs_SUPPORTED) 2344 png_infop info_ptr, png_uint_32 *
res_x, png_uint_32 *
res_y,
int *unit_type));
2347 #if defined(PNG_pHYs_SUPPORTED) 2349 png_infop info_ptr, png_uint_32 res_x, png_uint_32 res_y,
int unit_type));
2353 png_infop info_ptr, png_colorp *palette,
int *num_palette));
2356 png_infop info_ptr, png_colorp palette,
int num_palette));
2358 #if defined(PNG_sBIT_SUPPORTED) 2363 #if defined(PNG_sBIT_SUPPORTED) 2365 png_infop info_ptr, png_color_8p sig_bit));
2368 #if defined(PNG_sRGB_SUPPORTED) 2373 #if defined(PNG_sRGB_SUPPORTED) 2375 png_infop info_ptr,
int intent));
2377 png_infop info_ptr,
int intent));
2380 #if defined(PNG_iCCP_SUPPORTED) 2387 #if defined(PNG_iCCP_SUPPORTED) 2389 png_infop info_ptr,
png_charp name,
int compression_type,
2390 png_charp profile, png_uint_32 proflen));
2394 #if defined(PNG_sPLT_SUPPORTED) 2399 #if defined(PNG_sPLT_SUPPORTED) 2401 png_infop info_ptr, png_sPLT_tp entries,
int nentries));
2404 #if defined(PNG_TEXT_SUPPORTED) 2418 #if defined(PNG_TEXT_SUPPORTED) 2420 png_infop info_ptr, png_textp text_ptr,
int num_text));
2423 #if defined(PNG_tIME_SUPPORTED) 2428 #if defined(PNG_tIME_SUPPORTED) 2430 png_infop info_ptr, png_timep mod_time));
2433 #if defined(PNG_tRNS_SUPPORTED) 2439 #if defined(PNG_tRNS_SUPPORTED) 2441 png_infop info_ptr,
png_bytep trans,
int num_trans,
2442 png_color_16p trans_values));
2445 #if defined(PNG_tRNS_SUPPORTED) 2448 #if defined(PNG_sCAL_SUPPORTED) 2449 #ifdef PNG_FLOATING_POINT_SUPPORTED 2451 png_infop info_ptr,
int *
unit,
double *width,
double *height));
2453 #ifdef PNG_FIXED_POINT_SUPPORTED 2460 #if defined(PNG_sCAL_SUPPORTED) 2461 #ifdef PNG_FLOATING_POINT_SUPPORTED 2463 png_infop info_ptr,
int unit,
double width,
double height));
2465 #ifdef PNG_FIXED_POINT_SUPPORTED 2472 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) 2489 png_ptr, png_infop info_ptr, png_unknown_chunkpp entries));
2491 #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED 2500 png_infop info_ptr,
int mask));
2502 #if defined(PNG_INFO_IMAGE_SUPPORTED) 2521 #if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER) 2524 #define png_debug(l,m) _RPT0(_CRT_WARN,m) 2525 #define png_debug1(l,m,p1) _RPT1(_CRT_WARN,m,p1) 2526 #define png_debug2(l,m,p1,p2) _RPT2(_CRT_WARN,m,p1,p2) 2529 #ifndef PNG_DEBUG_FILE 2530 #define PNG_DEBUG_FILE stderr 2533 #define png_debug(l,m) \ 2536 fprintf(PNG_DEBUG_FILE,"%s"m,(num_tabs==1 ? "\t" : \ 2537 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":"")))); \ 2539 #define png_debug1(l,m,p1) \ 2542 fprintf(PNG_DEBUG_FILE,"%s"m,(num_tabs==1 ? "\t" : \ 2543 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1); \ 2545 #define png_debug2(l,m,p1,p2) \ 2548 fprintf(PNG_DEBUG_FILE,"%s"m,(num_tabs==1 ? "\t" : \ 2549 (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1,p2); \ 2556 #define png_debug(l, m) 2559 #define png_debug1(l, m, p1) 2562 #define png_debug2(l, m, p1, p2) 2570 #ifdef PNG_MNG_FEATURES_SUPPORTED 2576 #define PNG_HANDLE_CHUNK_AS_DEFAULT 0 2577 #define PNG_HANDLE_CHUNK_NEVER 1 2578 #define PNG_HANDLE_CHUNK_IF_SAFE 2 2579 #define PNG_HANDLE_CHUNK_ALWAYS 3 2582 #if defined(PNG_ASSEMBLER_CODE_SUPPORTED) 2583 #if defined(PNG_MMX_CODE_SUPPORTED) 2584 #define PNG_ASM_FLAG_MMX_SUPPORT_COMPILED 0x01 2585 #define PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU 0x02 2586 #define PNG_ASM_FLAG_MMX_READ_COMBINE_ROW 0x04 2587 #define PNG_ASM_FLAG_MMX_READ_INTERLACE 0x08 2588 #define PNG_ASM_FLAG_MMX_READ_FILTER_SUB 0x10 2589 #define PNG_ASM_FLAG_MMX_READ_FILTER_UP 0x20 2590 #define PNG_ASM_FLAG_MMX_READ_FILTER_AVG 0x40 2591 #define PNG_ASM_FLAG_MMX_READ_FILTER_PAETH 0x80 2592 #define PNG_ASM_FLAGS_INITIALIZED 0x80000000 2594 #define PNG_MMX_READ_FLAGS ( PNG_ASM_FLAG_MMX_READ_COMBINE_ROW \ 2595 | PNG_ASM_FLAG_MMX_READ_INTERLACE \ 2596 | PNG_ASM_FLAG_MMX_READ_FILTER_SUB \ 2597 | PNG_ASM_FLAG_MMX_READ_FILTER_UP \ 2598 | PNG_ASM_FLAG_MMX_READ_FILTER_AVG \ 2599 | PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ) 2600 #define PNG_MMX_WRITE_FLAGS ( 0 ) 2602 #define PNG_MMX_FLAGS ( PNG_ASM_FLAG_MMX_SUPPORT_COMPILED \ 2603 | PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU \ 2604 | PNG_MMX_READ_FLAGS \ 2605 | PNG_MMX_WRITE_FLAGS ) 2607 #define PNG_SELECT_READ 1 2608 #define PNG_SELECT_WRITE 2 2611 #if !defined(PNG_1_0_X) 2618 PNGARG((
int flag_select));
2622 PNGARG((png_structp png_ptr));
2626 PNGARG((png_structp png_ptr));
2630 PNGARG((png_structp png_ptr));
2643 #if !defined(PNG_1_0_X) 2650 #ifdef PNG_ERROR_NUMBERS_SUPPORTED 2658 #ifdef PNG_SET_USER_LIMITS_SUPPORTED 2670 #ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED 2685 # define png_composite(composite, fg, alpha, bg) \ 2686 { png_uint_16 temp = (png_uint_16)((png_uint_16)(fg) * (png_uint_16)(alpha) \ 2687 + (png_uint_16)(bg)*(png_uint_16)(255 - \ 2688 (png_uint_16)(alpha)) + (png_uint_16)128); \ 2689 (composite) = (png_byte)((temp + (temp >> 8)) >> 8); } 2691 # define png_composite_16(composite, fg, alpha, bg) \ 2692 { png_uint_32 temp = (png_uint_32)((png_uint_32)(fg) * (png_uint_32)(alpha) \ 2693 + (png_uint_32)(bg)*(png_uint_32)(65535L - \ 2694 (png_uint_32)(alpha)) + (png_uint_32)32768L); \ 2695 (composite) = (png_uint_16)((temp + (temp >> 16)) >> 16); } 2699 # define png_composite(composite, fg, alpha, bg) \ 2700 (composite) = (png_byte)(((png_uint_16)(fg) * (png_uint_16)(alpha) + \ 2701 (png_uint_16)(bg) * (png_uint_16)(255 - (png_uint_16)(alpha)) + \ 2702 (png_uint_16)127) / 255) 2704 # define png_composite_16(composite, fg, alpha, bg) \ 2705 (composite) = (png_uint_16)(((png_uint_32)(fg) * (png_uint_32)(alpha) + \ 2706 (png_uint_32)(bg)*(png_uint_32)(65535L - (png_uint_32)(alpha)) + \ 2707 (png_uint_32)32767) / (png_uint_32)65535L) 2719 #if defined(PNG_READ_BIG_ENDIAN_SUPPORTED) 2720 # define png_get_uint_32(buf) ( *((png_uint_32p) (buf))) 2721 # define png_get_uint_16(buf) ( *((png_uint_16p) (buf))) 2722 # define png_get_int_32(buf) ( *((png_int_32p) (buf))) 2759 #define PNG_HAVE_IHDR 0x01 2760 #define PNG_HAVE_PLTE 0x02 2761 #define PNG_HAVE_IDAT 0x04 2762 #define PNG_AFTER_IDAT 0x08 2763 #define PNG_HAVE_IEND 0x10 2765 #if defined(PNG_INTERNAL) 2770 #define PNG_HAVE_gAMA 0x20 2771 #define PNG_HAVE_cHRM 0x40 2772 #define PNG_HAVE_sRGB 0x80 2773 #define PNG_HAVE_CHUNK_HEADER 0x100 2774 #define PNG_WROTE_tIME 0x200 2775 #define PNG_WROTE_INFO_BEFORE_PLTE 0x400 2776 #define PNG_BACKGROUND_IS_GRAY 0x800 2777 #define PNG_HAVE_PNG_SIGNATURE 0x1000 2778 #define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 2781 #define PNG_BGR 0x0001 2782 #define PNG_INTERLACE 0x0002 2783 #define PNG_PACK 0x0004 2784 #define PNG_SHIFT 0x0008 2785 #define PNG_SWAP_BYTES 0x0010 2786 #define PNG_INVERT_MONO 0x0020 2787 #define PNG_DITHER 0x0040 2788 #define PNG_BACKGROUND 0x0080 2789 #define PNG_BACKGROUND_EXPAND 0x0100 2791 #define PNG_16_TO_8 0x0400 2792 #define PNG_RGBA 0x0800 2793 #define PNG_EXPAND 0x1000 2794 #define PNG_GAMMA 0x2000 2795 #define PNG_GRAY_TO_RGB 0x4000 2796 #define PNG_FILLER 0x8000L 2797 #define PNG_PACKSWAP 0x10000L 2798 #define PNG_SWAP_ALPHA 0x20000L 2799 #define PNG_STRIP_ALPHA 0x40000L 2800 #define PNG_INVERT_ALPHA 0x80000L 2801 #define PNG_USER_TRANSFORM 0x100000L 2802 #define PNG_RGB_TO_GRAY_ERR 0x200000L 2803 #define PNG_RGB_TO_GRAY_WARN 0x400000L 2804 #define PNG_RGB_TO_GRAY 0x600000L 2806 #define PNG_ADD_ALPHA 0x1000000L 2807 #define PNG_EXPAND_tRNS 0x2000000L 2815 #define PNG_STRUCT_PNG 0x0001 2816 #define PNG_STRUCT_INFO 0x0002 2819 #define PNG_WEIGHT_SHIFT 8 2820 #define PNG_WEIGHT_FACTOR (1<<(PNG_WEIGHT_SHIFT)) 2821 #define PNG_COST_SHIFT 3 2822 #define PNG_COST_FACTOR (1<<(PNG_COST_SHIFT)) 2825 #define PNG_FLAG_ZLIB_CUSTOM_STRATEGY 0x0001 2826 #define PNG_FLAG_ZLIB_CUSTOM_LEVEL 0x0002 2827 #define PNG_FLAG_ZLIB_CUSTOM_MEM_LEVEL 0x0004 2828 #define PNG_FLAG_ZLIB_CUSTOM_WINDOW_BITS 0x0008 2829 #define PNG_FLAG_ZLIB_CUSTOM_METHOD 0x0010 2830 #define PNG_FLAG_ZLIB_FINISHED 0x0020 2831 #define PNG_FLAG_ROW_INIT 0x0040 2832 #define PNG_FLAG_FILLER_AFTER 0x0080 2833 #define PNG_FLAG_CRC_ANCILLARY_USE 0x0100 2834 #define PNG_FLAG_CRC_ANCILLARY_NOWARN 0x0200 2835 #define PNG_FLAG_CRC_CRITICAL_USE 0x0400 2836 #define PNG_FLAG_CRC_CRITICAL_IGNORE 0x0800 2837 #define PNG_FLAG_FREE_PLTE 0x1000 2838 #define PNG_FLAG_FREE_TRNS 0x2000 2839 #define PNG_FLAG_FREE_HIST 0x4000 2840 #define PNG_FLAG_KEEP_UNKNOWN_CHUNKS 0x8000L 2841 #define PNG_FLAG_KEEP_UNSAFE_CHUNKS 0x10000L 2842 #define PNG_FLAG_LIBRARY_MISMATCH 0x20000L 2843 #define PNG_FLAG_STRIP_ERROR_NUMBERS 0x40000L 2844 #define PNG_FLAG_STRIP_ERROR_TEXT 0x80000L 2845 #define PNG_FLAG_MALLOC_NULL_MEM_OK 0x100000L 2846 #define PNG_FLAG_ADD_ALPHA 0x200000L 2847 #define PNG_FLAG_STRIP_ALPHA 0x400000L 2857 #define PNG_FLAG_CRC_ANCILLARY_MASK (PNG_FLAG_CRC_ANCILLARY_USE | \ 2858 PNG_FLAG_CRC_ANCILLARY_NOWARN) 2860 #define PNG_FLAG_CRC_CRITICAL_MASK (PNG_FLAG_CRC_CRITICAL_USE | \ 2861 PNG_FLAG_CRC_CRITICAL_IGNORE) 2863 #define PNG_FLAG_CRC_MASK (PNG_FLAG_CRC_ANCILLARY_MASK | \ 2864 PNG_FLAG_CRC_CRITICAL_MASK) 2868 #define PNG_COLOR_DIST(c1, c2) (abs((int)((c1).red) - (int)((c2).red)) + \ 2869 abs((int)((c1).green) - (int)((c2).green)) + \ 2870 abs((int)((c1).blue) - (int)((c2).blue))) 2873 #define PNG_ROWBYTES(pixel_bits, width) \ 2874 ((pixel_bits) >= 8 ? \ 2875 ((width) * (((png_uint_32)(pixel_bits)) >> 3)) : \ 2876 (( ((width) * ((png_uint_32)(pixel_bits))) + 7) >> 3) ) 2882 #define PNG_OUT_OF_RANGE(value, ideal, delta) \ 2883 ( (value) < (ideal)-(delta) || (value) > (ideal)+(delta) ) 2886 #if !defined(PNG_NO_EXTERN) || defined(PNG_ALWAYS_EXTERN) 2888 #ifdef PNG_USE_GLOBAL_ARRAYS 2898 #define PNG_IHDR png_byte png_IHDR[5] = { 73, 72, 68, 82, '\0'} 2899 #define PNG_IDAT png_byte png_IDAT[5] = { 73, 68, 65, 84, '\0'} 2900 #define PNG_IEND png_byte png_IEND[5] = { 73, 69, 78, 68, '\0'} 2901 #define PNG_PLTE png_byte png_PLTE[5] = { 80, 76, 84, 69, '\0'} 2902 #define PNG_bKGD png_byte png_bKGD[5] = { 98, 75, 71, 68, '\0'} 2903 #define PNG_cHRM png_byte png_cHRM[5] = { 99, 72, 82, 77, '\0'} 2904 #define PNG_gAMA png_byte png_gAMA[5] = {103, 65, 77, 65, '\0'} 2905 #define PNG_hIST png_byte png_hIST[5] = {104, 73, 83, 84, '\0'} 2906 #define PNG_iCCP png_byte png_iCCP[5] = {105, 67, 67, 80, '\0'} 2907 #define PNG_iTXt png_byte png_iTXt[5] = {105, 84, 88, 116, '\0'} 2908 #define PNG_oFFs png_byte png_oFFs[5] = {111, 70, 70, 115, '\0'} 2909 #define PNG_pCAL png_byte png_pCAL[5] = {112, 67, 65, 76, '\0'} 2910 #define PNG_sCAL png_byte png_sCAL[5] = {115, 67, 65, 76, '\0'} 2911 #define PNG_pHYs png_byte png_pHYs[5] = {112, 72, 89, 115, '\0'} 2912 #define PNG_sBIT png_byte png_sBIT[5] = {115, 66, 73, 84, '\0'} 2913 #define PNG_sPLT png_byte png_sPLT[5] = {115, 80, 76, 84, '\0'} 2914 #define PNG_sRGB png_byte png_sRGB[5] = {115, 82, 71, 66, '\0'} 2915 #define PNG_tEXt png_byte png_tEXt[5] = {116, 69, 88, 116, '\0'} 2916 #define PNG_tIME png_byte png_tIME[5] = {116, 73, 77, 69, '\0'} 2917 #define PNG_tRNS png_byte png_tRNS[5] = {116, 82, 78, 83, '\0'} 2918 #define PNG_zTXt png_byte png_zTXt[5] = {122, 84, 88, 116, '\0'} 2920 #ifdef PNG_USE_GLOBAL_ARRAYS 2944 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 2949 #undef png_read_init 2950 #define png_read_init(png_ptr) png_read_init_3(&png_ptr, \ 2951 PNG_LIBPNG_VER_STRING, png_sizeof(png_struct)); 2956 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 2962 #if defined(PNG_1_0_X) || defined (PNG_1_2_X) 2967 #undef png_write_init 2968 #define png_write_init(png_ptr) png_write_init_3(&png_ptr, \ 2969 PNG_LIBPNG_VER_STRING, png_sizeof(png_struct)); 2985 malloc_fn, png_voidp mem_ptr));
2987 png_free_ptr free_fn, png_voidp mem_ptr));
2991 png_infop info_ptr));
3011 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 3019 #if defined(PNG_WRITE_FLUSH_SUPPORTED) 3020 #if !defined(PNG_NO_STDIO) 3025 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 3047 #if defined(PNG_zTXt_SUPPORTED) || defined(PNG_iTXt_SUPPORTED) || \ 3048 defined(PNG_iCCP_SUPPORTED) || defined(PNG_sPLT_SUPPORTED) 3067 #if defined(PNG_WRITE_FLUSH_SUPPORTED) 3081 int bit_depth,
int color_type,
int compression_method,
int filter_method,
3082 int interlace_method));
3085 png_uint_32 num_pal));
3092 #if defined(PNG_WRITE_gAMA_SUPPORTED) 3093 #ifdef PNG_FLOATING_POINT_SUPPORTED 3096 #ifdef PNG_FIXED_POINT_SUPPORTED 3102 #if defined(PNG_WRITE_sBIT_SUPPORTED) 3107 #if defined(PNG_WRITE_cHRM_SUPPORTED) 3108 #ifdef PNG_FLOATING_POINT_SUPPORTED 3110 double white_x,
double white_y,
3111 double red_x,
double red_y,
double green_x,
double green_y,
3112 double blue_x,
double blue_y));
3114 #ifdef PNG_FIXED_POINT_SUPPORTED 3123 #if defined(PNG_WRITE_sRGB_SUPPORTED) 3128 #if defined(PNG_WRITE_iCCP_SUPPORTED) 3130 png_charp name,
int compression_type,
3131 png_charp profile,
int proflen));
3135 #if defined(PNG_WRITE_sPLT_SUPPORTED) 3137 png_sPLT_tp palette));
3140 #if defined(PNG_WRITE_tRNS_SUPPORTED) 3142 png_color_16p values,
int number,
int color_type));
3145 #if defined(PNG_WRITE_bKGD_SUPPORTED) 3147 png_color_16p values,
int color_type));
3150 #if defined(PNG_WRITE_hIST_SUPPORTED) 3155 #if defined(PNG_WRITE_TEXT_SUPPORTED) || defined(PNG_WRITE_pCAL_SUPPORTED) || \ 3156 defined(PNG_WRITE_iCCP_SUPPORTED) || defined(PNG_WRITE_sPLT_SUPPORTED) 3161 #if defined(PNG_WRITE_tEXt_SUPPORTED) 3166 #if defined(PNG_WRITE_zTXt_SUPPORTED) 3171 #if defined(PNG_WRITE_iTXt_SUPPORTED) 3172 PNG_EXTERN
void png_write_iTXt
PNGARG((png_structp png_ptr,
3173 int compression, png_charp key, png_charp lang, png_charp lang_key,
3177 #if defined(PNG_TEXT_SUPPORTED) 3179 png_infop info_ptr, png_textp text_ptr,
int num_text));
3182 #if defined(PNG_WRITE_oFFs_SUPPORTED) 3184 png_int_32 x_offset, png_int_32 y_offset,
int unit_type));
3187 #if defined(PNG_WRITE_pCAL_SUPPORTED) 3189 png_int_32 X0, png_int_32 X1,
int type,
int nparams,
3193 #if defined(PNG_WRITE_pHYs_SUPPORTED) 3195 png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit,
3199 #if defined(PNG_WRITE_tIME_SUPPORTED) 3201 png_timep mod_time));
3204 #if defined(PNG_WRITE_sCAL_SUPPORTED) 3205 #if defined(PNG_FLOATING_POINT_SUPPORTED) && !defined(PNG_NO_STDIO) 3207 int unit,
double width,
double height));
3209 #ifdef PNG_FIXED_POINT_SUPPORTED 3210 PNG_EXTERN
void png_write_sCAL_s
PNGARG((png_structp png_ptr,
3211 int unit, png_charp width, png_charp height));
3222 #if defined(PNG_READ_GAMMA_SUPPORTED) 3230 #if defined(PNG_READ_INTERLACING_SUPPORTED) 3241 #if defined(PNG_WRITE_INTERLACING_SUPPORTED) 3265 png_infop info_ptr));
3268 #if defined(PNG_READ_FILLER_SUPPORTED) 3270 png_bytep row, png_uint_32 filler, png_uint_32 flags));
3273 #if defined(PNG_READ_SWAP_ALPHA_SUPPORTED) 3278 #if defined(PNG_WRITE_SWAP_ALPHA_SUPPORTED) 3283 #if defined(PNG_READ_INVERT_ALPHA_SUPPORTED) 3288 #if defined(PNG_WRITE_INVERT_ALPHA_SUPPORTED) 3293 #if defined(PNG_WRITE_FILLER_SUPPORTED) || \ 3294 defined(PNG_READ_STRIP_ALPHA_SUPPORTED) 3299 #if defined(PNG_READ_SWAP_SUPPORTED) || defined(PNG_WRITE_SWAP_SUPPORTED) 3303 #if defined(PNG_READ_PACKSWAP_SUPPORTED) || defined(PNG_WRITE_PACKSWAP_SUPPORTED) 3307 #if defined(PNG_READ_RGB_TO_GRAY_SUPPORTED) 3312 #if defined(PNG_READ_GRAY_TO_RGB_SUPPORTED) 3317 #if defined(PNG_READ_PACK_SUPPORTED) 3321 #if defined(PNG_READ_SHIFT_SUPPORTED) 3323 png_color_8p sig_bits));
3326 #if defined(PNG_READ_INVERT_SUPPORTED) || defined(PNG_WRITE_INVERT_SUPPORTED) 3330 #if defined(PNG_READ_16_TO_8_SUPPORTED) 3334 #if defined(PNG_READ_DITHER_SUPPORTED) 3338 # if defined(PNG_CORRECT_PALETTE_SUPPORTED) 3339 PNG_EXTERN
void png_correct_palette
PNGARG((png_structp png_ptr,
3340 png_colorp palette,
int num_palette));
3344 #if defined(PNG_READ_BGR_SUPPORTED) || defined(PNG_WRITE_BGR_SUPPORTED) 3348 #if defined(PNG_WRITE_PACK_SUPPORTED) 3353 #if defined(PNG_WRITE_SHIFT_SUPPORTED) 3355 png_color_8p bit_depth));
3358 #if defined(PNG_READ_BACKGROUND_SUPPORTED) 3359 #if defined(PNG_READ_GAMMA_SUPPORTED) 3361 png_color_16p trans_values, png_color_16p background,
3368 png_color_16p trans_values, png_color_16p background));
3372 #if defined(PNG_READ_GAMMA_SUPPORTED) 3378 #if defined(PNG_READ_EXPAND_SUPPORTED) 3382 png_bytep row, png_color_16p trans_value));
3391 png_uint_32 length));
3393 png_uint_32 length));
3395 png_uint_32 length));
3397 #if defined(PNG_READ_bKGD_SUPPORTED) 3399 png_uint_32 length));
3402 #if defined(PNG_READ_cHRM_SUPPORTED) 3404 png_uint_32 length));
3407 #if defined(PNG_READ_gAMA_SUPPORTED) 3409 png_uint_32 length));
3412 #if defined(PNG_READ_hIST_SUPPORTED) 3414 png_uint_32 length));
3417 #if defined(PNG_READ_iCCP_SUPPORTED) 3419 png_uint_32 length));
3422 #if defined(PNG_READ_iTXt_SUPPORTED) 3423 PNG_EXTERN
void png_handle_iTXt
PNGARG((png_structp png_ptr, png_infop info_ptr,
3424 png_uint_32 length));
3427 #if defined(PNG_READ_oFFs_SUPPORTED) 3429 png_uint_32 length));
3432 #if defined(PNG_READ_pCAL_SUPPORTED) 3434 png_uint_32 length));
3437 #if defined(PNG_READ_pHYs_SUPPORTED) 3439 png_uint_32 length));
3442 #if defined(PNG_READ_sBIT_SUPPORTED) 3444 png_uint_32 length));
3447 #if defined(PNG_READ_sCAL_SUPPORTED) 3449 png_uint_32 length));
3452 #if defined(PNG_READ_sPLT_SUPPORTED) 3454 png_uint_32 length));
3457 #if defined(PNG_READ_sRGB_SUPPORTED) 3459 png_uint_32 length));
3462 #if defined(PNG_READ_tEXt_SUPPORTED) 3464 png_uint_32 length));
3467 #if defined(PNG_READ_tIME_SUPPORTED) 3469 png_uint_32 length));
3472 #if defined(PNG_READ_tRNS_SUPPORTED) 3474 png_uint_32 length));
3477 #if defined(PNG_READ_zTXt_SUPPORTED) 3479 png_uint_32 length));
3483 png_infop info_ptr, png_uint_32 length));
3494 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 3496 png_infop info_ptr));
3498 png_infop info_ptr));
3499 PNG_EXTERN
void png_push_check_crc
PNGARG((png_structp png_ptr));
3501 png_uint_32 length));
3511 png_infop info_ptr, png_uint_32 length));
3513 png_infop info_ptr));
3515 png_infop info_ptr));
3517 PNG_EXTERN
void png_push_read_end
PNGARG((png_structp png_ptr,
3518 png_infop info_ptr));
3520 png_infop info_ptr));
3522 #if defined(PNG_READ_tEXt_SUPPORTED) 3524 png_infop info_ptr, png_uint_32 length));
3526 png_infop info_ptr));
3528 #if defined(PNG_READ_zTXt_SUPPORTED) 3530 png_infop info_ptr, png_uint_32 length));
3532 png_infop info_ptr));
3534 #if defined(PNG_READ_iTXt_SUPPORTED) 3535 PNG_EXTERN
void png_push_handle_iTXt
PNGARG((png_structp png_ptr,
3536 png_infop info_ptr, png_uint_32 length));
3537 PNG_EXTERN
void png_push_read_iTXt
PNGARG((png_structp png_ptr,
3538 png_infop info_ptr));
3543 #ifdef PNG_MNG_FEATURES_SUPPORTED 3550 #if defined(PNG_ASSEMBLER_CODE_SUPPORTED) 3551 #if defined(PNG_MMX_CODE_SUPPORTED) 3553 PNG_EXTERN
void png_init_mmx_flags
PNGARG((png_structp png_ptr));
3557 #if defined(PNG_INCH_CONVERSIONS) && defined(PNG_FLOATING_POINT_SUPPORTED) 3558 PNG_EXTERN png_uint_32 png_get_pixels_per_inch
PNGARG((png_structp png_ptr,
3559 png_infop info_ptr));
3561 PNG_EXTERN png_uint_32 png_get_x_pixels_per_inch
PNGARG((png_structp png_ptr,
3562 png_infop info_ptr));
3564 PNG_EXTERN png_uint_32 png_get_y_pixels_per_inch
PNGARG((png_structp png_ptr,
3565 png_infop info_ptr));
3567 PNG_EXTERN
float png_get_x_offset_inches
PNGARG((png_structp png_ptr,
3568 png_infop info_ptr));
3570 PNG_EXTERN
float png_get_y_offset_inches
PNGARG((png_structp png_ptr,
3571 png_infop info_ptr));
3573 #if defined(PNG_pHYs_SUPPORTED) 3574 PNG_EXTERN png_uint_32 png_get_pHYs_dpi
PNGARG((png_structp png_ptr,
3575 png_infop info_ptr, png_uint_32 *res_x, png_uint_32 *res_y,
int *unit_type));
png_uint_32 mng_features_permitted
void png_do_read_intrapixel(png_row_infop row_info, png_bytep row)
png_uint_16p inv_filter_weights
void png_write_sCAL(png_structp png_ptr, int unit, double width, double height)
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)
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_infop png_charpp int png_charpp profile
png_uint_32 PNGAPI png_get_image_width(png_structp png_ptr, png_infop info_ptr)
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)
png_infop png_charp png_int_32 png_int_32 int int png_charp * units
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)
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
png_user_transform_ptr write_user_transform_fn
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_fixed_point int_y_blue
void PNGAPI png_write_image(png_structp png_ptr, png_bytepp image)
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
png_bytep current_buffer_ptr
void PNGAPI png_write_png(png_structp png_ptr, png_infop info_ptr, int transforms, voidp params)
png_color FAR *FAR * png_colorpp
png_bytep png_bytep new_row
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_size_t save_buffer_size
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_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_uint_16 rgb_to_gray_blue_coeff
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_infop png_charp png_int_32 png_int_32 int * type
png_byte num_prev_filters
void PNGAPI png_set_asm_flags(png_structp png_ptr, png_uint_32 asm_flags)
png_bytep index_to_palette
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)
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
png_uint_32 user_height_max
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)
void PNGAPI png_set_mmx_thresholds(png_structp png_ptr, png_byte mmx_bitdepth_threshold, png_uint_32 mmx_rowbytes_threshold)
png_infop png_textp * text_ptr
png_colorp int num_palette
png_charp current_text_ptr
png_infop double double double double double double double * blue_x
void PNGAPI png_save_int_32(png_bytep buf, png_int_32 i)
struct png_info_struct png_info
png_byte mmx_bitdepth_threshold
png_uint_16pp gamma_16_to_1
void png_push_read_sig(png_structp png_ptr, png_infop info_ptr)
png_voidp png_rw_ptr write_data_fn
png_sPLT_tp splt_palettes
png_fixed_point int_x_green
png_voidp user_transform_ptr
png_voidp png_error_ptr png_error_ptr png_voidp png_malloc_ptr png_free_ptr free_fn
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_write_status_ptr write_row_fn
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_user_chunk_ptr read_user_chunk_fn
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)
void png_push_have_end(png_structp png_ptr, png_infop info_ptr)
void PNGAPI png_chunk_warning(png_structp png_ptr, png_const_charp warning_message)
void png_build_gamma_table(png_structp png_ptr)
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_byte user_transform_depth
png_voidp progressive_ptr
png_structp version_1_2_32
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_const_charp error_message
png_uint_16 rgb_to_gray_red_coeff
png_infop png_color_16p * background
void png_do_strip_filler(png_row_infop row_info, png_bytep row, png_uint_32 flags)
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)
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)
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
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)
png_infop png_charpp name
png_fixed_point int_x_red
png_fixed_point int_x_blue
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)
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_charp PNGAPI png_get_libpng_ver(png_structp png_ptr)
png_voidp png_progressive_info_ptr png_progressive_row_ptr row_fn
void PNGAPI png_set_sig_bytes(png_structp png_ptr, int num_bytes)
png_infop png_charp png_int_32 png_int_32 int int png_charp png_charpp * params
png_byte compression_type
png_infop png_int_32 png_int_32 * offset_y
png_progressive_info_ptr info_fn
png_infop png_unknown_chunkp int num_unknowns
png_byte heuristic_method
png_byte background_gamma_type
void png_do_read_transformations(png_structp png_ptr)
png_infop png_int_32 * offset_x
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_CONST char FAR * png_const_charp
float PNGAPI png_get_pixel_aspect_ratio(png_structp png_ptr, png_infop info_ptr)
png_size_t current_text_size
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)
void png_write_oFFs(png_structp png_ptr, png_int_32 x_offset, png_int_32 y_offset, int unit_type)
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_infopp png_infopp end_info_ptr_ptr
void png_write_IDAT(png_structp png_ptr, png_bytep data, png_size_t length)
png_unknown_chunk unknown_chunk
png_uint_32 splt_palettes_num
png_voidp png_progressive_info_ptr info_fn
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)
void png_do_chop(png_row_infop row_info, png_bytep row)
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_bytep png_bytep png_size_t length
png_fixed_point int_y_white
png_row_info FAR *FAR * png_row_infopp
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
int png_do_rgb_to_gray(png_structp png_ptr, png_row_infop row_info, png_bytep row)
png_struct FAR *FAR * png_structpp
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)
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_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_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
png_uint_32 user_width_max
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)
png_user_transform_ptr read_user_transform_fn
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
png_infop png_uint_32 * width
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)
void png_handle_zTXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_uint_32 PNGAPI png_get_text(png_structp png_ptr, png_infop info_ptr, png_textp *text_ptr, int *num_text)
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)
void PNGAPI png_read_row(png_structp png_ptr, png_bytep row, png_bytep dsp_row)
png_color_16 background_1
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)
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_fixed_point int_gamma
png_uint_32 PNGAPI png_get_compression_buffer_size(png_structp png_ptr)
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_handle_zTXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_byte compression_type
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_uint_16 rgb_to_gray_green_coeff
png_uint_16p inv_filter_costs
png_uint_32 PNGAPI png_get_sBIT(png_structp png_ptr, png_infop info_ptr, png_color_8p *sig_bit)
png_voidp user_transform_ptr
void PNGAPI png_build_grayscale_palette(int bit_depth, png_colorp palette)
void png_read_transform_info(png_structp png_ptr, png_infop info_ptr)
png_byte PNGAPI png_get_interlace_type(png_structp png_ptr, png_infop info_ptr)
png_color_16 trans_values
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)
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_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)
void PNGAPI png_error(png_structp png_ptr, png_const_charp error_message)
PNG_EXPORT(png_uint_32, png_access_version_number) PNGARG((void))
void PNGAPI png_set_packswap(png_structp png_ptr)
png_color_16 trans_values
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)
png_infop png_uint_32 png_uint_32 * height
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_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)
void png_write_find_filter(png_structp png_ptr, png_row_infop row_info)
void png_push_crc_finish(png_structp png_ptr)
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
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_infop int png_uint_32 mask
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)
png_uint_16pp gamma_16_table
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_fixed_point int_x_white
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
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_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_voidp PNGAPI png_get_io_ptr(png_structp png_ptr)
PNG_CONST int FARDATA png_pass_dsp_mask[]
void PNGAPI png_set_write_status_fn(png_structp png_ptr, png_write_status_ptr write_row_fn)
png_uint_32 PNGAPI png_get_user_width_max(png_structp png_ptr)
struct png_color_16_struct png_color_16
png_byte iccp_compression
png_bytep palette_to_index
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_size_t current_buffer_size
void png_write_gAMA(png_structp png_ptr, double file_gamma)
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_fixed_point int_y_red
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_handle_tEXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_read_status_ptr read_row_fn
void png_push_crc_skip(png_structp png_ptr, png_uint_32 skip)
png_size_t save_buffer_max
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_voidp png_progressive_info_ptr png_progressive_row_ptr png_progressive_end_ptr end_fn
png_byte user_transform_channels
void png_handle_unknown(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
int PNGAPI png_sig_cmp(png_bytep sig, png_size_t start, png_size_t num_to_check)
png_infop png_fixed_point png_fixed_point * int_white_y
png_bytep save_buffer_ptr
png_uint_16p filter_weights
void PNGAPI png_set_strip_alpha(png_structp png_ptr)
void PNGAPI png_set_compression_window_bits(png_structp png_ptr, int window_bits)
int png_crc_finish(png_structp png_ptr, png_uint_32 skip)
void PNGAPI png_read_info(png_structp png_ptr, png_infop info_ptr)
png_infop int int location
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)
png_byte rgb_to_gray_status
void PNGAPI png_save_uint_32(png_bytep buf, png_uint_32 i)
void PNGAPI png_set_invert_mono(png_structp png_ptr)
png_sPLT_entry FAR *FAR * png_sPLT_entrypp
png_uint_32 mmx_rowbytes_threshold
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_prev_row_size
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_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)
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)
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_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
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)
PNG_CONST png_byte FARDATA png_sig[8]
png_color_16 FAR *FAR * png_color_16pp
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_progressive_row_ptr row_fn
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_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
png_byte offset_unit_type
void png_write_sRGB(png_structp png_ptr, int srgb_intent)
void png_do_swap(png_row_infop row_info, png_bytep row)
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_infop double double double double double double * green_y
png_uint_16p filter_costs
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_infop png_bytep buffer
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_text FAR *FAR * png_textpp
void PNGAPI png_set_crc_action(png_structp png_ptr, int crit_action, int ancil_action)
png_infop png_sPLT_tp int nentries
void png_process_some_data(png_structp png_ptr, png_infop info_ptr)
png_uint_32 user_width_max
void PNGAPI png_set_tRNS_to_alpha(png_structp png_ptr)
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_infop double double double * red_x
void PNGAPI png_set_shift(png_structp png_ptr, png_color_8p true_bits)
char FAR *FAR * png_charpp
png_flush_ptr output_flush_fn
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
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)
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)
void png_push_handle_unknown(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
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)
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_fixed_point int_y_green
png_uint_32 PNGAPI png_get_image_height(png_structp png_ptr, png_infop info_ptr)
struct png_row_info_struct png_row_info
png_sPLT_t FAR *FAR * png_sPLT_tpp
png_uint_32 x_pixels_per_unit
png_colorp int int maximum_colors
png_byte PNGAPI png_get_filter_type(png_structp png_ptr, png_infop info_ptr)
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_progressive_end_ptr end_fn
void PNGAPI png_set_read_user_transform_fn(png_structp png_ptr, png_user_transform_ptr read_user_transform_fn)
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
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_charp PNGAPI png_get_header_version(png_structp png_ptr)
png_int_32 PNGAPI png_get_x_offset_microns(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_tIME(png_structp png_ptr, png_infop info_ptr, png_timep *mod_time)
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_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_fixed_point int_gamma
png_uint_32 old_big_row_buf_size
void png_push_read_tEXt(png_structp png_ptr, png_infop info_ptr)
void PNGAPI png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
void png_push_read_zTXt(png_structp png_ptr, png_infop info_ptr)
png_voidp PNGAPI png_get_user_chunk_ptr(png_structp png_ptr)
png_uint_32 transformations
png_size_t png_check_keyword(png_structp png_ptr, png_charp key, png_charpp new_key)
png_uint_16pp gamma_16_from_1
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_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_uint_32 mng_features_permitted
void PNGAPI png_read_update_info(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_sRGB(png_structp png_ptr, png_infop info_ptr, int *file_srgb_intent)
png_uint_32 y_pixels_per_unit
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_EXPORT_VAR(PNG_CONST char) png_libpng_ver[18]
png_time FAR *FAR * png_timepp
void PNGAPI png_set_keep_unknown_chunks(png_structp png_ptr, int keep, png_bytep chunk_list, int num_chunks)
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_size_t current_text_left
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_size_t unknown_chunks_num
png_infop png_unknown_chunkp unknowns
struct png_color_struct png_color
png_uint_32 png_read_chunk_header(png_structp png_ptr)
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)
png_unknown_chunkp unknown_chunks
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