426 #define PNG_LIBPNG_VER_STRING "1.6.16" 427 #define PNG_HEADER_VERSION_STRING \ 428 " libpng version 1.6.16 - December 22, 2014\n" 430 #define PNG_LIBPNG_VER_SONUM 16 431 #define PNG_LIBPNG_VER_DLLNUM 16 434 #define PNG_LIBPNG_VER_MAJOR 1 435 #define PNG_LIBPNG_VER_MINOR 6 436 #define PNG_LIBPNG_VER_RELEASE 16 442 #define PNG_LIBPNG_VER_BUILD 0 445 #define PNG_LIBPNG_BUILD_ALPHA 1 446 #define PNG_LIBPNG_BUILD_BETA 2 447 #define PNG_LIBPNG_BUILD_RC 3 448 #define PNG_LIBPNG_BUILD_STABLE 4 449 #define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK 7 452 #define PNG_LIBPNG_BUILD_PATCH 8 454 #define PNG_LIBPNG_BUILD_PRIVATE 16 456 #define PNG_LIBPNG_BUILD_SPECIAL 32 459 #define PNG_LIBPNG_BUILD_BASE_TYPE PNG_LIBPNG_BUILD_STABLE 467 #define PNG_LIBPNG_VER 10616 479 #ifndef PNG_VERSION_INFO_ONLY 498 #ifdef PNG_USER_PRIVATEBUILD 499 # define PNG_LIBPNG_BUILD_TYPE \ 500 (PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_PRIVATE) 502 # ifdef PNG_LIBPNG_SPECIALBUILD 503 # define PNG_LIBPNG_BUILD_TYPE \ 504 (PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_SPECIAL) 506 # define PNG_LIBPNG_BUILD_TYPE (PNG_LIBPNG_BUILD_BASE_TYPE) 510 #ifndef PNG_VERSION_INFO_ONLY 520 #define png_libpng_ver png_get_header_ver(NULL) 685 #ifdef PNG_TEXT_SUPPORTED 727 #define PNG_TEXT_COMPRESSION_NONE_WR -3 728 #define PNG_TEXT_COMPRESSION_zTXt_WR -2 729 #define PNG_TEXT_COMPRESSION_NONE -1 730 #define PNG_TEXT_COMPRESSION_zTXt 0 731 #define PNG_ITXT_COMPRESSION_NONE 1 732 #define PNG_ITXT_COMPRESSION_zTXt 2 733 #define PNG_TEXT_COMPRESSION_LAST 3 754 #if defined(PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED) ||\ 755 defined(PNG_USER_CHUNKS_SUPPORTED) 785 #define PNG_HAVE_IHDR 0x01 786 #define PNG_HAVE_PLTE 0x02 787 #define PNG_AFTER_IDAT 0x08 790 #define PNG_UINT_31_MAX ((png_uint_32)0x7fffffffL) 791 #define PNG_UINT_32_MAX ((png_uint_32)(-1)) 792 #define PNG_SIZE_MAX ((png_size_t)(-1)) 797 #define PNG_FP_1 100000 798 #define PNG_FP_HALF 50000 799 #define PNG_FP_MAX ((png_fixed_point)0x7fffffffL) 800 #define PNG_FP_MIN (-PNG_FP_MAX) 804 #define PNG_COLOR_MASK_PALETTE 1 805 #define PNG_COLOR_MASK_COLOR 2 806 #define PNG_COLOR_MASK_ALPHA 4 809 #define PNG_COLOR_TYPE_GRAY 0 810 #define PNG_COLOR_TYPE_PALETTE (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE) 811 #define PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR) 812 #define PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA) 813 #define PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA) 815 #define PNG_COLOR_TYPE_RGBA PNG_COLOR_TYPE_RGB_ALPHA 816 #define PNG_COLOR_TYPE_GA PNG_COLOR_TYPE_GRAY_ALPHA 819 #define PNG_COMPRESSION_TYPE_BASE 0 820 #define PNG_COMPRESSION_TYPE_DEFAULT PNG_COMPRESSION_TYPE_BASE 823 #define PNG_FILTER_TYPE_BASE 0 824 #define PNG_INTRAPIXEL_DIFFERENCING 64 825 #define PNG_FILTER_TYPE_DEFAULT PNG_FILTER_TYPE_BASE 828 #define PNG_INTERLACE_NONE 0 829 #define PNG_INTERLACE_ADAM7 1 830 #define PNG_INTERLACE_LAST 2 833 #define PNG_OFFSET_PIXEL 0 834 #define PNG_OFFSET_MICROMETER 1 835 #define PNG_OFFSET_LAST 2 838 #define PNG_EQUATION_LINEAR 0 839 #define PNG_EQUATION_BASE_E 1 840 #define PNG_EQUATION_ARBITRARY 2 841 #define PNG_EQUATION_HYPERBOLIC 3 842 #define PNG_EQUATION_LAST 4 845 #define PNG_SCALE_UNKNOWN 0 846 #define PNG_SCALE_METER 1 847 #define PNG_SCALE_RADIAN 2 848 #define PNG_SCALE_LAST 3 851 #define PNG_RESOLUTION_UNKNOWN 0 852 #define PNG_RESOLUTION_METER 1 853 #define PNG_RESOLUTION_LAST 2 856 #define PNG_sRGB_INTENT_PERCEPTUAL 0 857 #define PNG_sRGB_INTENT_RELATIVE 1 858 #define PNG_sRGB_INTENT_SATURATION 2 859 #define PNG_sRGB_INTENT_ABSOLUTE 3 860 #define PNG_sRGB_INTENT_LAST 4 863 #define PNG_KEYWORD_MAX_LENGTH 79 866 #define PNG_MAX_PALETTE_LENGTH 256 873 #define PNG_INFO_gAMA 0x0001 874 #define PNG_INFO_sBIT 0x0002 875 #define PNG_INFO_cHRM 0x0004 876 #define PNG_INFO_PLTE 0x0008 877 #define PNG_INFO_tRNS 0x0010 878 #define PNG_INFO_bKGD 0x0020 879 #define PNG_INFO_hIST 0x0040 880 #define PNG_INFO_pHYs 0x0080 881 #define PNG_INFO_oFFs 0x0100 882 #define PNG_INFO_tIME 0x0200 883 #define PNG_INFO_pCAL 0x0400 884 #define PNG_INFO_sRGB 0x0800 885 #define PNG_INFO_iCCP 0x1000 886 #define PNG_INFO_sPLT 0x2000 887 #define PNG_INFO_sCAL 0x4000 888 #define PNG_INFO_IDAT 0x8000 923 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 941 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ 942 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED) 947 #ifdef PNG_USER_CHUNKS_SUPPORTED 949 png_unknown_chunkp));
951 #ifdef PNG_UNKNOWN_CHUNKS_SUPPORTED 956 #ifdef PNG_SETJMP_SUPPORTED 972 #define PNG_TRANSFORM_IDENTITY 0x0000 973 #define PNG_TRANSFORM_STRIP_16 0x0001 974 #define PNG_TRANSFORM_STRIP_ALPHA 0x0002 975 #define PNG_TRANSFORM_PACKING 0x0004 976 #define PNG_TRANSFORM_PACKSWAP 0x0008 977 #define PNG_TRANSFORM_EXPAND 0x0010 978 #define PNG_TRANSFORM_INVERT_MONO 0x0020 979 #define PNG_TRANSFORM_SHIFT 0x0040 980 #define PNG_TRANSFORM_BGR 0x0080 981 #define PNG_TRANSFORM_SWAP_ALPHA 0x0100 982 #define PNG_TRANSFORM_SWAP_ENDIAN 0x0200 983 #define PNG_TRANSFORM_INVERT_ALPHA 0x0400 984 #define PNG_TRANSFORM_STRIP_FILLER 0x0800 986 #define PNG_TRANSFORM_STRIP_FILLER_BEFORE PNG_TRANSFORM_STRIP_FILLER 987 #define PNG_TRANSFORM_STRIP_FILLER_AFTER 0x1000 989 #define PNG_TRANSFORM_GRAY_TO_RGB 0x2000 991 #define PNG_TRANSFORM_EXPAND_16 0x4000 992 #define PNG_TRANSFORM_SCALE_16 0x8000 995 #define PNG_FLAG_MNG_EMPTY_PLTE 0x01 996 #define PNG_FLAG_MNG_FILTER_64 0x04 997 #define PNG_ALL_MNG_FEATURES 0x05 1057 #define png_check_sig(sig, n) !png_sig_cmp((sig), 0, (n)) 1072 (png_const_structrp png_ptr));
1080 #ifdef PNG_SETJMP_SUPPORTED 1089 png_longjmp_ptr longjmp_fn,
size_t jmp_buf_size));
1090 # define png_jmpbuf(png_ptr) \ 1091 (*png_set_longjmp_fn((png_ptr), longjmp, (sizeof (jmp_buf)))) 1093 # define png_jmpbuf(png_ptr) \ 1094 (LIBPNG_WAS_COMPILED_WITH__PNG_NO_SETJMP) 1104 #ifdef PNG_READ_SUPPORTED 1110 #ifdef PNG_USER_MEM_SUPPORTED 1154 (png_structrp png_ptr, png_const_inforp info_ptr));
1156 (png_structrp png_ptr, png_const_inforp info_ptr));
1158 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 1161 (png_structrp png_ptr, png_inforp info_ptr));
1164 #ifdef PNG_TIME_RFC1123_SUPPORTED 1169 #if PNG_LIBPNG_VER < 10700 1175 png_const_timep ptime));
1178 #ifdef PNG_CONVERT_tIME_SUPPORTED 1181 const struct tm * ttime));
1187 #ifdef PNG_READ_EXPAND_SUPPORTED 1195 #ifdef PNG_READ_EXPAND_16_SUPPORTED 1202 #if defined(PNG_READ_BGR_SUPPORTED) || defined(PNG_WRITE_BGR_SUPPORTED) 1207 #ifdef PNG_READ_GRAY_TO_RGB_SUPPORTED 1212 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED 1214 #define PNG_ERROR_ACTION_NONE 1 1215 #define PNG_ERROR_ACTION_WARN 2 1216 #define PNG_ERROR_ACTION_ERROR 3 1217 #define PNG_RGB_TO_GRAY_DEFAULT (-1) 1220 int error_action,
double red,
double green))
1228 #ifdef PNG_BUILD_GRAYSCALE_PALETTE_SUPPORTED 1230 png_colorp palette));
1233 #ifdef PNG_READ_ALPHA_MODE_SUPPORTED 1268 #define PNG_ALPHA_PNG 0 1269 #define PNG_ALPHA_STANDARD 1 1270 #define PNG_ALPHA_ASSOCIATED 1 1271 #define PNG_ALPHA_PREMULTIPLIED 1 1272 #define PNG_ALPHA_OPTIMIZED 2 1273 #define PNG_ALPHA_BROKEN 3 1276 double output_gamma))
1281 #if defined(PNG_GAMMA_SUPPORTED) || defined(PNG_READ_ALPHA_MODE_SUPPORTED) 1285 #define PNG_DEFAULT_sRGB -1 1286 #define PNG_GAMMA_MAC_18 -2 1287 #define PNG_GAMMA_sRGB 220000 1288 #define PNG_GAMMA_LINEAR PNG_FP_1 1367 #ifdef PNG_READ_STRIP_ALPHA_SUPPORTED 1371 #if defined(PNG_READ_SWAP_ALPHA_SUPPORTED) || \ 1372 defined(PNG_WRITE_SWAP_ALPHA_SUPPORTED) 1376 #if defined(PNG_READ_INVERT_ALPHA_SUPPORTED) || \ 1377 defined(PNG_WRITE_INVERT_ALPHA_SUPPORTED) 1381 #if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED) 1386 # define PNG_FILLER_BEFORE 0 1387 # define PNG_FILLER_AFTER 1 1390 png_uint_32 filler,
int flags));
1393 #if defined(PNG_READ_SWAP_SUPPORTED) || defined(PNG_WRITE_SWAP_SUPPORTED) 1398 #if defined(PNG_READ_PACK_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED) 1403 #if defined(PNG_READ_PACKSWAP_SUPPORTED) || \ 1404 defined(PNG_WRITE_PACKSWAP_SUPPORTED) 1409 #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED) 1415 #if defined(PNG_READ_INTERLACING_SUPPORTED) || \ 1416 defined(PNG_WRITE_INTERLACING_SUPPORTED) 1426 #if defined(PNG_READ_INVERT_SUPPORTED) || defined(PNG_WRITE_INVERT_SUPPORTED) 1431 #ifdef PNG_READ_BACKGROUND_SUPPORTED 1438 png_const_color_16p background_color,
int background_gamma_code,
1439 int need_expand,
double background_gamma))
1441 png_const_color_16p background_color,
int background_gamma_code,
1444 #ifdef PNG_READ_BACKGROUND_SUPPORTED 1445 # define PNG_BACKGROUND_GAMMA_UNKNOWN 0 1446 # define PNG_BACKGROUND_GAMMA_SCREEN 1 1447 # define PNG_BACKGROUND_GAMMA_FILE 2 1448 # define PNG_BACKGROUND_GAMMA_UNIQUE 3 1451 #ifdef PNG_READ_SCALE_16_TO_8_SUPPORTED 1456 #ifdef PNG_READ_STRIP_16_TO_8_SUPPORTED 1457 #define PNG_READ_16_TO_8 SUPPORTED 1462 #ifdef PNG_READ_QUANTIZE_SUPPORTED 1467 png_colorp palette,
int num_palette,
int maximum_colors,
1471 #ifdef PNG_READ_GAMMA_SUPPORTED 1475 #define PNG_GAMMA_THRESHOLD (PNG_GAMMA_THRESHOLD_FIXED*.00001) 1489 double screen_gamma,
double override_file_gamma))
1494 #ifdef PNG_WRITE_FLUSH_SUPPORTED 1506 png_inforp info_ptr));
1508 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 1514 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 1520 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 1542 png_inforp info_ptr));
1544 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 1551 png_infopp info_ptr_ptr));
1555 png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr));
1559 png_infopp info_ptr_ptr));
1574 #define PNG_CRC_DEFAULT 0 1575 #define PNG_CRC_ERROR_QUIT 1 1576 #define PNG_CRC_WARN_DISCARD 2 1577 #define PNG_CRC_WARN_USE 3 1578 #define PNG_CRC_QUIET_USE 4 1579 #define PNG_CRC_NO_CHANGE 5 1600 #define PNG_NO_FILTERS 0x00 1601 #define PNG_FILTER_NONE 0x08 1602 #define PNG_FILTER_SUB 0x10 1603 #define PNG_FILTER_UP 0x20 1604 #define PNG_FILTER_AVG 0x40 1605 #define PNG_FILTER_PAETH 0x80 1606 #define PNG_ALL_FILTERS (PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP | \ 1607 PNG_FILTER_AVG | PNG_FILTER_PAETH) 1612 #define PNG_FILTER_VALUE_NONE 0 1613 #define PNG_FILTER_VALUE_SUB 1 1614 #define PNG_FILTER_VALUE_UP 2 1615 #define PNG_FILTER_VALUE_AVG 3 1616 #define PNG_FILTER_VALUE_PAETH 4 1617 #define PNG_FILTER_VALUE_LAST 5 1619 #ifdef PNG_WRITE_WEIGHTED_FILTER_SUPPORTED 1649 int heuristic_method,
int num_weights, png_const_doublep filter_weights,
1650 png_const_doublep filter_costs))
1652 (png_structrp png_ptr,
int heuristic_method,
int num_weights,
1660 #define PNG_FILTER_HEURISTIC_DEFAULT 0 1661 #define PNG_FILTER_HEURISTIC_UNWEIGHTED 1 1662 #define PNG_FILTER_HEURISTIC_WEIGHTED 2 1663 #define PNG_FILTER_HEURISTIC_LAST 3 1665 #ifdef PNG_WRITE_SUPPORTED 1692 #ifdef PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED 1707 (png_structrp png_ptr,
int window_bits));
1722 #ifdef PNG_STDIO_SUPPORTED 1767 #ifdef PNG_USER_MEM_SUPPORTED 1775 #ifdef PNG_READ_USER_TRANSFORM_SUPPORTED 1780 #ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTED 1785 #ifdef PNG_USER_TRANSFORM_PTR_SUPPORTED 1787 png_voidp user_transform_ptr,
int user_transform_depth,
1788 int user_transform_channels));
1791 (png_const_structrp png_ptr));
1794 #ifdef PNG_USER_TRANSFORM_INFO_SUPPORTED 1810 #ifdef PNG_READ_USER_CHUNKS_SUPPORTED 1834 #ifdef PNG_USER_CHUNKS_SUPPORTED 1838 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 1848 (png_const_structrp png_ptr));
1895 png_inforp info_ptr, png_uint_32 free_me,
int num));
1905 png_inforp info_ptr,
int freer, png_uint_32 mask));
1908 #define PNG_DESTROY_WILL_FREE_DATA 1 1909 #define PNG_SET_WILL_FREE_DATA 1 1910 #define PNG_USER_WILL_FREE_DATA 2 1912 #define PNG_FREE_HIST 0x0008 1913 #define PNG_FREE_ICCP 0x0010 1914 #define PNG_FREE_SPLT 0x0020 1915 #define PNG_FREE_ROWS 0x0040 1916 #define PNG_FREE_PCAL 0x0080 1917 #define PNG_FREE_SCAL 0x0100 1918 #ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED 1919 # define PNG_FREE_UNKN 0x0200 1922 #define PNG_FREE_PLTE 0x1000 1923 #define PNG_FREE_TRNS 0x2000 1924 #define PNG_FREE_TEXT 0x4000 1925 #define PNG_FREE_ALL 0x7fff 1926 #define PNG_FREE_MUL 0x4220 1928 #ifdef PNG_USER_MEM_SUPPORTED 1935 #ifdef PNG_ERROR_TEXT_SUPPORTED 1947 # define png_error(s1,s2) png_err(s1) 1948 # define png_chunk_error(s1,s2) png_err(s1) 1951 #ifdef PNG_WARNINGS_SUPPORTED 1960 # define png_warning(s1,s2) ((void)(s1)) 1961 # define png_chunk_warning(s1,s2) ((void)(s1)) 1964 #ifdef PNG_BENIGN_ERRORS_SUPPORTED 1970 #ifdef PNG_READ_SUPPORTED 1977 (png_structrp png_ptr,
int allowed));
1979 # ifdef PNG_ALLOW_BENIGN_ERRORS 1980 # define png_benign_error png_warning 1981 # define png_chunk_benign_error png_chunk_warning 1983 # define png_benign_error png_error 1984 # define png_chunk_benign_error png_chunk_error 2002 png_const_inforp info_ptr, png_uint_32 flag));
2006 png_const_inforp info_ptr));
2008 #ifdef PNG_INFO_IMAGE_SUPPORTED 2013 png_const_inforp info_ptr));
2019 png_inforp info_ptr,
png_bytepp row_pointers));
2024 png_const_inforp info_ptr));
2026 #ifdef PNG_EASY_ACCESS_SUPPORTED 2029 png_const_inforp info_ptr));
2033 png_const_inforp info_ptr));
2037 png_const_inforp info_ptr));
2041 png_const_inforp info_ptr));
2045 png_const_inforp info_ptr));
2049 png_const_inforp info_ptr));
2053 png_const_inforp info_ptr));
2057 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2059 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2061 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2065 (png_const_structrp png_ptr, png_const_inforp info_ptr))
2067 (png_const_structrp png_ptr, png_const_inforp info_ptr))
2071 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2073 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2075 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2077 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2081 #ifdef PNG_READ_SUPPORTED 2084 png_const_inforp info_ptr));
2087 #ifdef PNG_bKGD_SUPPORTED 2089 png_inforp info_ptr, png_color_16p *background));
2092 #ifdef PNG_bKGD_SUPPORTED 2094 png_inforp info_ptr, png_const_color_16p background));
2097 #ifdef PNG_cHRM_SUPPORTED 2099 png_const_inforp info_ptr,
double *white_x,
double *white_y,
double *red_x,
2100 double *red_y,
double *green_x,
double *green_y,
double *blue_x,
2103 png_const_inforp info_ptr,
double *red_X,
double *red_Y,
double *red_Z,
2104 double *green_X,
double *green_Y,
double *green_Z,
double *blue_X,
2105 double *blue_Y,
double *blue_Z))
2107 (png_const_structrp png_ptr, png_const_inforp info_ptr,
2113 (png_const_structrp png_ptr, png_const_inforp info_ptr,
2121 #ifdef PNG_cHRM_SUPPORTED 2123 png_inforp info_ptr,
2124 double white_x,
double white_y,
double red_x,
double red_y,
double green_x,
2125 double green_y,
double blue_x,
double blue_y))
2127 png_inforp info_ptr,
double red_X,
double red_Y,
double red_Z,
2128 double green_X,
double green_Y,
double green_Z,
double blue_X,
2129 double blue_Y,
double blue_Z))
2144 #ifdef PNG_gAMA_SUPPORTED 2146 png_const_inforp info_ptr,
double *file_gamma))
2148 (png_const_structrp png_ptr, png_const_inforp info_ptr,
2152 #ifdef PNG_gAMA_SUPPORTED 2154 png_inforp info_ptr,
double file_gamma))
2159 #ifdef PNG_hIST_SUPPORTED 2164 #ifdef PNG_hIST_SUPPORTED 2170 png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height,
2171 int *bit_depth,
int *color_type,
int *interlace_method,
2172 int *compression_method,
int *filter_method));
2175 png_inforp info_ptr, png_uint_32 width, png_uint_32 height,
int bit_depth,
2176 int color_type,
int interlace_method,
int compression_method,
2177 int filter_method));
2179 #ifdef PNG_oFFs_SUPPORTED 2181 png_const_inforp info_ptr, png_int_32 *offset_x, png_int_32 *offset_y,
2185 #ifdef PNG_oFFs_SUPPORTED 2187 png_inforp info_ptr, png_int_32 offset_x, png_int_32 offset_y,
2191 #ifdef PNG_pCAL_SUPPORTED 2193 png_inforp info_ptr,
png_charp *purpose, png_int_32 *X0,
2194 png_int_32 *X1,
int *type,
int *nparams,
png_charp *units,
2198 #ifdef PNG_pCAL_SUPPORTED 2200 png_inforp info_ptr,
png_const_charp purpose, png_int_32 X0, png_int_32 X1,
2204 #ifdef PNG_pHYs_SUPPORTED 2206 png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y,
2210 #ifdef PNG_pHYs_SUPPORTED 2212 png_inforp info_ptr, png_uint_32 res_x, png_uint_32 res_y,
int unit_type));
2216 png_inforp info_ptr, png_colorp *palette,
int *num_palette));
2219 png_inforp info_ptr, png_const_colorp palette,
int num_palette));
2221 #ifdef PNG_sBIT_SUPPORTED 2223 png_inforp info_ptr, png_color_8p *sig_bit));
2226 #ifdef PNG_sBIT_SUPPORTED 2228 png_inforp info_ptr, png_const_color_8p sig_bit));
2231 #ifdef PNG_sRGB_SUPPORTED 2233 png_const_inforp info_ptr,
int *file_srgb_intent));
2236 #ifdef PNG_sRGB_SUPPORTED 2238 png_inforp info_ptr,
int srgb_intent));
2240 png_inforp info_ptr,
int srgb_intent));
2243 #ifdef PNG_iCCP_SUPPORTED 2249 #ifdef PNG_iCCP_SUPPORTED 2255 #ifdef PNG_sPLT_SUPPORTED 2257 png_inforp info_ptr, png_sPLT_tpp entries));
2260 #ifdef PNG_sPLT_SUPPORTED 2262 png_inforp info_ptr, png_const_sPLT_tp entries,
int nentries));
2265 #ifdef PNG_TEXT_SUPPORTED 2268 png_inforp info_ptr, png_textp *text_ptr,
int *num_text));
2278 #ifdef PNG_TEXT_SUPPORTED 2280 png_inforp info_ptr, png_const_textp text_ptr,
int num_text));
2283 #ifdef PNG_tIME_SUPPORTED 2285 png_inforp info_ptr, png_timep *mod_time));
2288 #ifdef PNG_tIME_SUPPORTED 2290 png_inforp info_ptr, png_const_timep mod_time));
2293 #ifdef PNG_tRNS_SUPPORTED 2295 png_inforp info_ptr,
png_bytep *trans_alpha,
int *num_trans,
2296 png_color_16p *trans_color));
2299 #ifdef PNG_tRNS_SUPPORTED 2302 png_const_color_16p trans_color));
2305 #ifdef PNG_sCAL_SUPPORTED 2307 png_const_inforp info_ptr,
int *unit,
double *width,
double *height))
2308 #if defined(PNG_FLOATING_ARITHMETIC_SUPPORTED) || \ 2309 defined(PNG_FLOATING_POINT_SUPPORTED) 2316 (png_const_structrp png_ptr, png_const_inforp info_ptr,
int *unit,
2320 (png_const_structrp png_ptr, png_const_inforp info_ptr,
int *unit,
2324 png_inforp info_ptr,
int unit,
double width,
double height))
2329 png_inforp info_ptr,
int unit,
2333 #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED 2443 #ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED 2445 png_inforp info_ptr, png_const_unknown_chunkp unknowns,
2457 (png_const_structrp png_ptr, png_inforp info_ptr,
int chunk,
int location));
2460 png_inforp info_ptr, png_unknown_chunkpp entries));
2468 png_inforp info_ptr,
int mask));
2470 #ifdef PNG_INFO_IMAGE_SUPPORTED 2472 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 2476 #ifdef PNG_WRITE_SUPPORTED 2483 (png_const_structrp png_ptr));
2485 (png_const_structrp png_ptr));
2487 (png_const_structrp png_ptr));
2489 (png_const_structrp png_ptr));
2491 #ifdef PNG_MNG_FEATURES_SUPPORTED 2493 png_uint_32 mng_features_permitted));
2497 #define PNG_HANDLE_CHUNK_AS_DEFAULT 0 2498 #define PNG_HANDLE_CHUNK_NEVER 1 2499 #define PNG_HANDLE_CHUNK_IF_SAFE 2 2500 #define PNG_HANDLE_CHUNK_ALWAYS 3 2501 #define PNG_HANDLE_CHUNK_LAST 4 2506 #ifdef PNG_ERROR_NUMBERS_SUPPORTED 2507 PNG_EXPORT(185,
void, png_set_strip_error_numbers, (png_structrp png_ptr,
2508 png_uint_32 strip_mode));
2512 #ifdef PNG_SET_USER_LIMITS_SUPPORTED 2514 png_uint_32 user_width_max, png_uint_32 user_height_max));
2516 (png_const_structrp png_ptr));
2518 (png_const_structrp png_ptr));
2521 png_uint_32 user_chunk_cache_max));
2523 (png_const_structrp png_ptr));
2528 (png_const_structrp png_ptr));
2531 #if defined(PNG_INCH_CONVERSIONS_SUPPORTED) 2533 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2536 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2539 (png_const_structrp png_ptr, png_const_inforp info_ptr));
2542 (png_const_structrp png_ptr, png_const_inforp info_ptr))
2543 #ifdef PNG_FIXED_POINT_SUPPORTED 2545 (png_const_structrp png_ptr, png_const_inforp info_ptr))
2549 png_const_inforp info_ptr))
2550 #ifdef PNG_FIXED_POINT_SUPPORTED 2552 (png_const_structrp png_ptr, png_const_inforp info_ptr))
2555 # ifdef PNG_pHYs_SUPPORTED 2557 png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y,
2563 #ifdef PNG_IO_STATE_SUPPORTED 2571 (png_const_structrp png_ptr));
2574 # define PNG_IO_NONE 0x0000 2575 # define PNG_IO_READING 0x0001 2576 # define PNG_IO_WRITING 0x0002 2577 # define PNG_IO_SIGNATURE 0x0010 2578 # define PNG_IO_CHUNK_HDR 0x0020 2579 # define PNG_IO_CHUNK_DATA 0x0040 2580 # define PNG_IO_CHUNK_CRC 0x0080 2581 # define PNG_IO_MASK_OP 0x000f 2582 # define PNG_IO_MASK_LOC 0x00f0 2589 #define PNG_INTERLACE_ADAM7_PASSES 7 2595 #define PNG_PASS_START_ROW(pass) (((1&~(pass))<<(3-((pass)>>1)))&7) 2596 #define PNG_PASS_START_COL(pass) (((1& (pass))<<(3-(((pass)+1)>>1)))&7) 2603 #define PNG_PASS_ROW_OFFSET(pass) ((pass)>2?(8>>(((pass)-1)>>1)):8) 2604 #define PNG_PASS_COL_OFFSET(pass) (1<<((7-(pass))>>1)) 2610 #define PNG_PASS_ROW_SHIFT(pass) ((pass)>2?(8-(pass))>>1:3) 2611 #define PNG_PASS_COL_SHIFT(pass) ((pass)>1?(7-(pass))>>1:3) 2618 #define PNG_PASS_ROWS(height, pass) (((height)+(((1<<PNG_PASS_ROW_SHIFT(pass))\ 2619 -1)-PNG_PASS_START_ROW(pass)))>>PNG_PASS_ROW_SHIFT(pass)) 2620 #define PNG_PASS_COLS(width, pass) (((width)+(((1<<PNG_PASS_COL_SHIFT(pass))\ 2621 -1)-PNG_PASS_START_COL(pass)))>>PNG_PASS_COL_SHIFT(pass)) 2627 #define PNG_ROW_FROM_PASS_ROW(y_in, pass) \ 2628 (((y_in)<<PNG_PASS_ROW_SHIFT(pass))+PNG_PASS_START_ROW(pass)) 2629 #define PNG_COL_FROM_PASS_COL(x_in, pass) \ 2630 (((x_in)<<PNG_PASS_COL_SHIFT(pass))+PNG_PASS_START_COL(pass)) 2638 #define PNG_PASS_MASK(pass,off) ( \ 2639 ((0x110145AF>>(((7-(off))-(pass))<<2)) & 0xF) | \ 2640 ((0x01145AF0>>(((7-(off))-(pass))<<2)) & 0xF0)) 2642 #define PNG_ROW_IN_INTERLACE_PASS(y, pass) \ 2643 ((PNG_PASS_MASK(pass,0) >> ((y)&7)) & 1) 2644 #define PNG_COL_IN_INTERLACE_PASS(x, pass) \ 2645 ((PNG_PASS_MASK(pass,1) >> ((x)&7)) & 1) 2647 #ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED 2662 # define png_composite(composite, fg, alpha, bg) \ 2663 { png_uint_16 temp = (png_uint_16)((png_uint_16)(fg) \ 2664 * (png_uint_16)(alpha) \ 2665 + (png_uint_16)(bg)*(png_uint_16)(255 \ 2666 - (png_uint_16)(alpha)) + 128); \ 2667 (composite) = (png_byte)((temp + (temp >> 8)) >> 8); } 2669 # define png_composite_16(composite, fg, alpha, bg) \ 2670 { png_uint_32 temp = (png_uint_32)((png_uint_32)(fg) \ 2671 * (png_uint_32)(alpha) \ 2672 + (png_uint_32)(bg)*(65535 \ 2673 - (png_uint_32)(alpha)) + 32768); \ 2674 (composite) = (png_uint_16)((temp + (temp >> 16)) >> 16); } 2678 # define png_composite(composite, fg, alpha, bg) \ 2679 (composite) = (png_byte)(((png_uint_16)(fg) * (png_uint_16)(alpha) + \ 2680 (png_uint_16)(bg) * (png_uint_16)(255 - (png_uint_16)(alpha)) + \ 2683 # define png_composite_16(composite, fg, alpha, bg) \ 2684 (composite) = (png_uint_16)(((png_uint_32)(fg) * (png_uint_32)(alpha) + \ 2685 (png_uint_32)(bg)*(png_uint_32)(65535 - (png_uint_32)(alpha)) + \ 2689 #ifdef PNG_READ_INT_FUNCTIONS_SUPPORTED 2700 #ifdef PNG_WRITE_INT_FUNCTIONS_SUPPORTED 2703 #ifdef PNG_SAVE_INT_32_SUPPORTED 2711 #ifdef PNG_WRITE_INT_FUNCTIONS_SUPPORTED 2716 #ifdef PNG_USE_READ_MACROS 2721 # define PNG_get_uint_32(buf) \ 2722 (((png_uint_32)(*(buf)) << 24) + \ 2723 ((png_uint_32)(*((buf) + 1)) << 16) + \ 2724 ((png_uint_32)(*((buf) + 2)) << 8) + \ 2725 ((png_uint_32)(*((buf) + 3)))) 2730 # define PNG_get_uint_16(buf) \ 2732 (((unsigned int)(*(buf)) << 8) + \ 2733 ((unsigned int)(*((buf) + 1))))) 2735 # define PNG_get_int_32(buf) \ 2736 ((png_int_32)((*(buf) & 0x80) \ 2737 ? -((png_int_32)((png_get_uint_32(buf) ^ 0xffffffffL) + 1)) \ 2738 : (png_int_32)png_get_uint_32(buf))) 2744 # define png_get_uint_32(buf) PNG_get_uint_32(buf) 2745 # define png_get_uint_16(buf) PNG_get_uint_16(buf) 2746 # define png_get_int_32(buf) PNG_get_int_32(buf) 2751 # define PNG_get_uint_32 (png_get_uint_32) 2752 # define PNG_get_uint_16 (png_get_uint_16) 2753 # define PNG_get_int_32 (png_get_int_32) 2757 #if defined(PNG_SIMPLIFIED_READ_SUPPORTED) || \ 2758 defined(PNG_SIMPLIFIED_WRITE_SUPPORTED) 2804 #define PNG_IMAGE_VERSION 1 2827 # define PNG_IMAGE_WARNING 1 2828 # define PNG_IMAGE_ERROR 2 2838 # define PNG_IMAGE_FAILED(png_cntrl) ((((png_cntrl).warning_or_error)&0x03)>1) 2913 #define PNG_FORMAT_FLAG_ALPHA 0x01U 2914 #define PNG_FORMAT_FLAG_COLOR 0x02U 2915 #define PNG_FORMAT_FLAG_LINEAR 0x04U 2916 #define PNG_FORMAT_FLAG_COLORMAP 0x08U 2918 #ifdef PNG_FORMAT_BGR_SUPPORTED 2919 # define PNG_FORMAT_FLAG_BGR 0x10U 2922 #ifdef PNG_FORMAT_AFIRST_SUPPORTED 2923 # define PNG_FORMAT_FLAG_AFIRST 0x20U 2930 #define PNG_FORMAT_GRAY 0 2931 #define PNG_FORMAT_GA PNG_FORMAT_FLAG_ALPHA 2932 #define PNG_FORMAT_AG (PNG_FORMAT_GA|PNG_FORMAT_FLAG_AFIRST) 2933 #define PNG_FORMAT_RGB PNG_FORMAT_FLAG_COLOR 2934 #define PNG_FORMAT_BGR (PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_BGR) 2935 #define PNG_FORMAT_RGBA (PNG_FORMAT_RGB|PNG_FORMAT_FLAG_ALPHA) 2936 #define PNG_FORMAT_ARGB (PNG_FORMAT_RGBA|PNG_FORMAT_FLAG_AFIRST) 2937 #define PNG_FORMAT_BGRA (PNG_FORMAT_BGR|PNG_FORMAT_FLAG_ALPHA) 2938 #define PNG_FORMAT_ABGR (PNG_FORMAT_BGRA|PNG_FORMAT_FLAG_AFIRST) 2943 #define PNG_FORMAT_LINEAR_Y PNG_FORMAT_FLAG_LINEAR 2944 #define PNG_FORMAT_LINEAR_Y_ALPHA (PNG_FORMAT_FLAG_LINEAR|PNG_FORMAT_FLAG_ALPHA) 2945 #define PNG_FORMAT_LINEAR_RGB (PNG_FORMAT_FLAG_LINEAR|PNG_FORMAT_FLAG_COLOR) 2946 #define PNG_FORMAT_LINEAR_RGB_ALPHA \ 2947 (PNG_FORMAT_FLAG_LINEAR|PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_ALPHA) 2954 #define PNG_FORMAT_RGB_COLORMAP (PNG_FORMAT_RGB|PNG_FORMAT_FLAG_COLORMAP) 2955 #define PNG_FORMAT_BGR_COLORMAP (PNG_FORMAT_BGR|PNG_FORMAT_FLAG_COLORMAP) 2956 #define PNG_FORMAT_RGBA_COLORMAP (PNG_FORMAT_RGBA|PNG_FORMAT_FLAG_COLORMAP) 2957 #define PNG_FORMAT_ARGB_COLORMAP (PNG_FORMAT_ARGB|PNG_FORMAT_FLAG_COLORMAP) 2958 #define PNG_FORMAT_BGRA_COLORMAP (PNG_FORMAT_BGRA|PNG_FORMAT_FLAG_COLORMAP) 2959 #define PNG_FORMAT_ABGR_COLORMAP (PNG_FORMAT_ABGR|PNG_FORMAT_FLAG_COLORMAP) 2979 #define PNG_IMAGE_SAMPLE_CHANNELS(fmt)\ 2980 (((fmt)&(PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_ALPHA))+1) 2983 #define PNG_IMAGE_SAMPLE_COMPONENT_SIZE(fmt)\ 2984 ((((fmt) & PNG_FORMAT_FLAG_LINEAR) >> 2)+1) 2989 #define PNG_IMAGE_SAMPLE_SIZE(fmt)\ 2990 (PNG_IMAGE_SAMPLE_CHANNELS(fmt) * PNG_IMAGE_SAMPLE_COMPONENT_SIZE(fmt)) 2996 #define PNG_IMAGE_MAXIMUM_COLORMAP_COMPONENTS(fmt)\ 2997 (PNG_IMAGE_SAMPLE_CHANNELS(fmt) * 256) 3012 #define PNG_IMAGE_PIXEL_(test,fmt)\ 3013 (((fmt)&PNG_FORMAT_FLAG_COLORMAP)?1:test(fmt)) 3015 #define PNG_IMAGE_PIXEL_CHANNELS(fmt)\ 3016 PNG_IMAGE_PIXEL_(PNG_IMAGE_SAMPLE_CHANNELS,fmt) 3021 #define PNG_IMAGE_PIXEL_COMPONENT_SIZE(fmt)\ 3022 PNG_IMAGE_PIXEL_(PNG_IMAGE_SAMPLE_COMPONENT_SIZE,fmt) 3027 #define PNG_IMAGE_PIXEL_SIZE(fmt) PNG_IMAGE_PIXEL_(PNG_IMAGE_SAMPLE_SIZE,fmt) 3031 #define PNG_IMAGE_ROW_STRIDE(image)\ 3032 (PNG_IMAGE_PIXEL_CHANNELS((image).format) * (image).width) 3039 #define PNG_IMAGE_BUFFER_SIZE(image, row_stride)\ 3040 (PNG_IMAGE_PIXEL_COMPONENT_SIZE((image).format)*(image).height*(row_stride)) 3045 #define PNG_IMAGE_SIZE(image)\ 3046 PNG_IMAGE_BUFFER_SIZE(image, PNG_IMAGE_ROW_STRIDE(image)) 3051 #define PNG_IMAGE_COLORMAP_SIZE(image)\ 3052 (PNG_IMAGE_SAMPLE_SIZE((image).format) * (image).colormap_entries) 3064 #define PNG_IMAGE_FLAG_COLORSPACE_NOT_sRGB 0x01 3069 #define PNG_IMAGE_FLAG_FAST 0x02 3080 #define PNG_IMAGE_FLAG_16BIT_sRGB 0x04 3098 #ifdef PNG_SIMPLIFIED_READ_SUPPORTED 3105 #ifdef PNG_STDIO_SUPPORTED 3107 const char *file_name));
3122 png_const_colorp background,
void *
buffer, png_int_32 row_stride,
3162 #ifdef PNG_SIMPLIFIED_WRITE_SUPPORTED 3163 #ifdef PNG_STDIO_SUPPORTED 3181 const char *file,
int convert_to_8bit,
const void *
buffer,
3182 png_int_32 row_stride,
const void *colormap));
3186 int convert_to_8_bit,
const void *
buffer, png_int_32 row_stride,
3187 const void *colormap));
3213 #ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED 3215 (png_structrp png_ptr,
int allowed));
3216 # ifdef PNG_GET_PALETTE_MAX_SUPPORTED 3218 png_const_infop info_ptr));
3243 #ifdef PNG_SET_OPTION_SUPPORTED 3244 #ifdef PNG_ARM_NEON_API_SUPPORTED 3245 # define PNG_ARM_NEON 0 3247 #define PNG_MAXIMUM_INFLATE_WINDOW 2 3248 #define PNG_SKIP_sRGB_CHECK_PROFILE 4 3249 #define PNG_OPTION_NEXT 6 3252 #define PNG_OPTION_UNSET 0 3253 #define PNG_OPTION_INVALID 1 3254 #define PNG_OPTION_OFF 2 3255 #define PNG_OPTION_ON 3 3272 #ifdef PNG_EXPORT_LAST_ORDINAL 3273 PNG_EXPORT_LAST_ORDINAL(244);
#define PNG_DEPRECATED
Definition: pngconf.h:452
png_int_32 nentries
Definition: png.h:679
PNG_IMPEXP void() png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngwrite.c:84
PNG_IMPEXP void() png_set_compression_mem_level(png_structrp png_ptr, int mem_level)
Definition: pngwrite.c:1387
PNG_IMPEXP png_uint_32() png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:52
#define png_get_uint_16(buf)
Definition: png.h:2745
PNG_IMPEXP void() png_chunk_benign_error(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:514
PNG_IMPEXP png_voidp() png_malloc(png_const_structrp png_ptr, png_alloc_size_t size)
Definition: pngmem.c:169
PNG_IMPEXP void() png_set_rows(png_const_structrp png_ptr, png_inforp info_ptr, png_bytepp row_pointers)
Definition: pngset.c:1452
PNG_IMPEXP void() png_read_png(png_structrp png_ptr, png_inforp info_ptr, int transforms, png_voidp params)
PNG_IMPEXP png_uint_32() png_get_sCAL_s(png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_charpp swidth, png_charpp sheight)
Definition: pngget.c:924
png_byte blue
Definition: png.h:645
uint8_t image[110000000]
Definition: gige_snap.cpp:38
PNG_IMPEXP void() png_process_data(png_structrp png_ptr, png_inforp info_ptr, png_bytep buffer, png_size_t buffer_size)
Definition: pngpread.c:37
png_const_bytep memory
Definition: pngpriv.h:1871
struct png_time_struct png_time
PNG_IMPEXP png_int_32() png_get_x_offset_pixels(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:276
png_charp text
Definition: png.h:711
PNG_IMPEXP png_uint_32() png_get_user_height_max(png_const_structrp png_ptr)
Definition: pngget.c:1165
PNG_IMPEXP float() png_get_y_offset_inches(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:410
#define PNG_FP_EXPORT(ordinal, type, name, args)
Definition: pngconf.h:475
PNG_IMPEXP png_uint_32() png_get_tIME(png_const_structrp png_ptr, png_inforp info_ptr, png_timep *mod_time)
Definition: pngget.c:1039
PNG_IMPEXP void() png_set_pCAL(png_const_structrp png_ptr, png_inforp info_ptr, png_const_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_const_charp units, png_charpp params)
Definition: pngset.c:264
void * png_voidp
Definition: pngconf.h:598
png_uint_32 width
Definition: png.h:2811
#define PNG_EXPORTA(ordinal, type, name, args, attributes)
Definition: pngconf.h:322
png_struct * png_structrp
Definition: png.h:610
PNG_IMPEXP int() png_handle_as_unknown(png_const_structrp png_ptr, png_const_bytep chunk_name)
Definition: png.c:884
struct png_sPLT_entry_struct png_sPLT_entry
#define PNG_NORETURN
Definition: pngconf.h:458
PNG_IMPEXP void() png_set_sCAL_s(png_const_structrp png_ptr, png_inforp info_ptr, int unit, png_const_charp swidth, png_const_charp sheight)
Definition: pngset.c:365
const char * png_const_charp
Definition: pngconf.h:611
#define png_get_uint_32(buf)
Definition: png.h:2744
PNG_IMPEXP png_structp() 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)
Definition: pngread.c:43
void(* png_read_status_ptr)(png_structp, png_uint_32, int)
Definition: png.h:919
PNG_IMPEXP png_voidp() png_get_progressive_ptr(png_const_structrp png_ptr)
Definition: pngpread.c:1161
PNG_IMPEXP void() png_set_gAMA_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point int_file_gamma)
Definition: pngset.c:139
PNG_IMPEXP void() png_read_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:92
void(* png_progressive_row_ptr)(png_structp, png_bytep, png_uint_32, int)
Definition: png.h:938
PNG_IMPEXP png_uint_32() png_get_pHYs(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
Definition: pngget.c:942
PNG_IMPEXP void() png_set_swap_alpha(png_structrp png_ptr)
Definition: pngtrans.c:222
png_byte red
Definition: png.h:643
int compression
Definition: png.h:705
PNG_IMPEXP void() png_set_palette_to_rgb(png_structrp png_ptr)
Definition: pngrtran.c:885
void(* png_progressive_end_ptr)(png_structp, png_infop)
Definition: png.h:925
PNG_IMPEXP void() png_set_strip_16(png_structrp png_ptr)
Definition: pngrtran.c:185
PNG_IMPEXP png_voidp() png_get_io_ptr(png_const_structrp png_ptr)
Definition: png.c:641
PNG_IMPEXP void() png_read_end(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:757
png_uint_16 frequency
Definition: png.h:663
PNG_IMPEXP void() png_data_freer(png_const_structrp png_ptr, png_inforp info_ptr, int freer, png_uint_32 mask)
Definition: png.c:423
PNG_IMPEXP void() png_write_chunk_end(png_structrp png_ptr)
Definition: pngwutil.c:147
PNG_IMPEXP png_uint_32() png_get_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *int_red_X, png_fixed_point *int_red_Y, png_fixed_point *int_red_Z, png_fixed_point *int_green_X, png_fixed_point *int_green_Y, png_fixed_point *int_green_Z, png_fixed_point *int_blue_X, png_fixed_point *int_blue_Y, png_fixed_point *int_blue_Z)
Definition: pngget.c:604
PNG_IMPEXP png_uint_32() png_get_y_pixels_per_inch(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:361
PNG_IMPEXP png_uint_32() png_get_IHDR(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_method, int *compression_method, int *filter_method)
Definition: pngget.c:795
const png_unknown_chunk * png_const_unknown_chunkp
Definition: png.h:780
png_controlp opaque
Definition: png.h:2809
Definition: pngpriv.h:1865
PNG_IMPEXP void() png_set_sRGB(png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
Definition: pngset.c:580
int i
Definition: rw_test.cpp:37
PNG_IMPEXP png_uint_32() png_get_iCCP(png_const_structrp png_ptr, png_inforp info_ptr, png_charpp name, int *compression_type, png_bytepp profile, png_uint_32 *proflen)
Definition: pngget.c:736
PNG_IMPEXP void() png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point int_white_x, png_fixed_point int_white_y, png_fixed_point int_red_x, png_fixed_point int_red_y, png_fixed_point int_green_x, png_fixed_point int_green_y, png_fixed_point int_blue_x, png_fixed_point int_blue_y)
Definition: pngset.c:40
PNG_IMPEXP png_const_bytep() png_get_signature(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:477
PNG_IMPEXP void() png_set_read_status_fn(png_structrp png_ptr, png_read_status_ptr read_row_fn)
Definition: pngread.c:1011
PNG_IMPEXP void() png_set_sRGB_gAMA_and_cHRM(png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
Definition: pngset.c:592
const png_sPLT_t * png_const_sPLT_tp
Definition: png.h:682
PNG_IMPEXP void() png_set_bgr(png_structrp png_ptr)
Definition: pngtrans.c:21
PNG_IMPEXP png_uint_32() png_get_sBIT(png_const_structrp png_ptr, png_inforp info_ptr, png_color_8p *sig_bit)
Definition: pngget.c:995
PNG_IMPEXP void() png_set_IHDR(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_method, int compression_method, int filter_method)
Definition: pngset.c:206
PNG_IMPEXP png_byte() png_get_filter_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:88
void(* png_flush_ptr)(png_structp)
Definition: png.h:917
PNG_IMPEXP png_byte() png_get_compression_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:106
PNG_IMPEXP png_uint_32() png_get_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, png_color_16p *background)
Definition: pngget.c:488
png_uint_16 blue
Definition: png.h:634
void(* png_user_transform_ptr)(png_structp, png_row_infop, png_bytep)
Definition: png.h:944
PNG_DEPRECATED PNG_IMPEXP void() png_free_default(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:243
png_byte * png_bytep
Definition: pngconf.h:600
PNG_IMPEXP void() png_set_PLTE(png_structrp png_ptr, png_inforp info_ptr, png_const_colorp palette, int num_palette)
Definition: pngset.c:505
PNG_IMPEXP void() png_set_background(png_structrp png_ptr, png_const_color_16p background_color, int background_gamma_code, int need_expand, double background_gamma)
Definition: pngrtran.c:155
png_uint_16 gray
Definition: png.h:635
const png_sPLT_entry * png_const_sPLT_entryp
Definition: png.h:666
PNG_IMPEXP int() png_get_unknown_chunks(png_const_structrp png_ptr, png_inforp info_ptr, png_unknown_chunkpp entries)
Definition: pngget.c:1103
PNG_IMPEXP png_uint_32() png_get_gAMA(png_const_structrp png_ptr, png_const_inforp info_ptr, double *file_gamma)
Definition: pngget.c:697
PNG_IMPEXP void() png_set_chunk_cache_max(png_structrp png_ptr, png_uint_32 user_chunk_cache_max)
Definition: pngset.c:1551
PNG_IMPEXP void() png_set_write_fn(png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr write_data_fn, png_flush_ptr output_flush_fn)
Definition: pngwio.c:122
png_byte green
Definition: png.h:644
PNG_IMPEXP png_voidp() png_malloc_warn(png_const_structrp png_ptr, png_alloc_size_t size)
Definition: pngmem.c:210
PNG_IMPEXP void() png_set_write_status_fn(png_structrp png_ptr, png_write_status_ptr write_row_fn)
Definition: pngwrite.c:1534
PNG_IMPEXP png_uint_32() png_get_x_pixels_per_inch(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:355
png_byte red
Definition: png.h:621
PNG_IMPEXP png_int_32() png_get_y_offset_microns(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:256
PNG_IMPEXP png_voidp() png_get_mem_ptr(png_const_structrp png_ptr)
Definition: pngmem.c:273
PNG_IMPEXP void() png_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:216
PNG_IMPEXP void() png_convert_from_struct_tm(png_timep ptime, const struct tm *ttime)
Definition: pngwrite.c:455
PNG_IMPEXP void() png_set_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color)
Definition: pngset.c:917
png_uint_32 flags
Definition: png.h:2814
char * png_charp
Definition: pngconf.h:610
png_voidp(* png_malloc_ptr)(png_structp, png_alloc_size_t)
Definition: png.h:1006
PNG_IMPEXP void() png_set_keep_unknown_chunks(png_structrp png_ptr, int keep, png_const_bytep chunk_list, int num_chunks)
Definition: pngset.c:1282
#define PNG_CALLBACK(type, name, args)
Definition: pngconf.h:341
PNG_IMPEXP png_uint_32() png_get_io_chunk_type(png_const_structrp png_ptr)
Definition: pngget.c:1194
png_struct * png_structp
Definition: png.h:582
png_byte ** png_bytepp
Definition: pngconf.h:627
PNG_IMPEXP void() png_set_unknown_chunk_location(png_const_structrp png_ptr, png_inforp info_ptr, int chunk, int location)
Definition: pngset.c:1209
Definition: pngstruct.h:144
PNG_IMPEXP void() png_set_swap(png_structrp png_ptr)
Definition: pngtrans.c:35
png_uint_32 warning_or_error
Definition: png.h:2840
PNG_IMPEXP void() png_set_tIME(png_const_structrp png_ptr, png_inforp info_ptr, png_const_timep mod_time)
Definition: pngset.c:892
PNG_IMPEXP int() png_image_finish_read(png_imagep image, png_const_colorp background, void *buffer, png_int_32 row_stride, void *colormap)
Definition: pngread.c:4054
png_charp lang
Definition: png.h:715
PNG_IMPEXP png_byte() png_get_current_pass_number(png_const_structrp)
Definition: pngtrans.c:841
png_uint_16 alpha
Definition: png.h:662
PNG_IMPEXP void() png_read_row(png_structrp png_ptr, png_bytep row, png_bytep display_row)
Definition: pngread.c:375
PNG_IMPEXP png_uint_32() png_get_cHRM_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *int_white_x, png_fixed_point *int_white_y, png_fixed_point *int_red_x, png_fixed_point *int_red_y, png_fixed_point *int_green_x, png_fixed_point *int_green_y, png_fixed_point *int_blue_x, png_fixed_point *int_blue_y)
Definition: pngget.c:641
png_color ** png_colorpp
Definition: png.h:627
PNG_IMPEXP png_int_32() png_get_y_offset_pixels(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:296
png_text * png_textp
Definition: png.h:720
png_sPLT_t * png_sPLT_tp
Definition: png.h:681
PNG_IMPEXP void() png_set_compression_method(png_structrp png_ptr, int method)
Definition: pngwrite.c:1442
PNG_IMPEXP png_uint_32() png_get_valid(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 flag)
Definition: pngget.c:20
png_color_16 ** png_color_16pp
Definition: png.h:639
png_info * png_inforp
Definition: png.h:612
PNG_IMPEXP void() png_set_gAMA(png_const_structrp png_ptr, png_inforp info_ptr, double file_gamma)
Definition: pngset.c:153
PNG_IMPEXP int() png_sig_cmp(png_const_bytep sig, png_size_t start, png_size_t num_to_check)
Definition: png.c:49
PNG_IMPEXP void() png_read_rows(png_structrp png_ptr, png_bytepp row, png_bytepp display_row, png_uint_32 num_rows)
Definition: pngread.c:636
png_info ** png_infopp
Definition: png.h:597
PNG_IMPEXP void() png_set_pHYs(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 res_x, png_uint_32 res_y, int unit_type)
Definition: pngset.c:489
int(* png_user_chunk_ptr)(png_structp, png_unknown_chunkp)
Definition: png.h:949
PNG_IMPEXP png_structp() png_create_write_struct(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)
Definition: pngwrite.c:482
JCOPY_OPTION option
Definition: transupp.h:131
PNG_IMPEXP void() png_set_cHRM_XYZ(png_const_structrp png_ptr, png_inforp info_ptr, double red_X, double red_Y, double red_Z, double green_X, double green_Y, double green_Z, double blue_X, double blue_Y, double blue_Z)
Definition: pngset.c:118
PNG_IMPEXP png_uint_32() png_get_x_pixels_per_meter(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:115
#define PNG_ALLOCATED
Definition: pngconf.h:461
PNG_IMPEXP void() png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
Definition: pngread.c:985
const png_color_8 * png_const_color_8p
Definition: png.h:650
PNG_IMPEXP void() png_set_alpha_mode(png_structrp png_ptr, int mode, double output_gamma)
Definition: pngrtran.c:385
PNG_IMPEXP float() png_get_pixel_aspect_ratio(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:181
PNG_IMPEXP png_structp() 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)
Definition: pngwrite.c:496
png_byte hour
Definition: png.h:746
PNG_IMPEXP jmp_buf *() png_set_longjmp_fn(png_structrp png_ptr, png_longjmp_ptr longjmp_fn, size_t jmp_buf_size)
Definition: pngerror.c:597
const png_time * png_const_timep
Definition: png.h:751
PNG_DEPRECATED PNG_IMPEXP int() png_reset_zstream(png_structrp png_ptr)
Definition: png.c:932
PNG_IMPEXP void() png_set_compression_window_bits(png_structrp png_ptr, int window_bits)
Definition: pngwrite.c:1415
PNG_IMPEXP png_fixed_point() png_get_x_offset_inches_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:379
png_size_t png_alloc_size_t
Definition: pngconf.h:578
void(* png_progressive_info_ptr)(png_structp, png_infop)
Definition: png.h:924
PNG_IMPEXP png_int_32() png_get_x_offset_microns(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:236
png_unknown_chunk * png_unknown_chunkp
Definition: png.h:779
PNG_IMPEXP png_uint_32() png_get_tRNS(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color)
Definition: pngget.c:1057
#define PNGARG(arglist)
Definition: pngconf.h:116
PNG_IMPEXP png_uint_32() png_get_io_state(png_const_structrp png_ptr)
Definition: pngget.c:1188
PNG_IMPEXP png_uint_32() png_get_image_height(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:61
#define PNG_FIXED_EXPORT(ordinal, type, name, args)
Definition: pngconf.h:483
PNG_IMPEXP void() png_set_progressive_read_fn(png_structrp png_ptr, png_voidp progressive_ptr, png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn, png_progressive_end_ptr end_fn)
Definition: pngpread.c:1146
PNG_IMPEXP void() png_set_unknown_chunks(png_const_structrp png_ptr, png_inforp info_ptr, png_const_unknown_chunkp unknowns, int num_unknowns)
Definition: pngset.c:1113
PNG_IMPEXP png_uint_32() png_access_version_number(void)
Definition: png.c:944
PNG_IMPEXP void() png_set_invalid(png_const_structrp png_ptr, png_inforp info_ptr, int mask)
Definition: pngset.c:1525
PNG_IMPEXP void() png_set_packing(png_structrp png_ptr)
Definition: pngtrans.c:50
png_uint_32 width
Definition: png.h:896
#define PNGCAPI
Definition: pngconf.h:277
PNG_IMPEXP void() png_set_write_user_transform_fn(png_structrp png_ptr, png_user_transform_ptr write_user_transform_fn)
Definition: pngwrite.c:1544
png_charp key
Definition: png.h:710
PNG_IMPEXP png_byte() png_get_color_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:79
PNG_IMPEXP png_uint_32() png_get_sCAL(png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, double *width, double *height)
Definition: pngget.c:908
struct png_color_8_struct png_color_8
PNG_IMPEXP void() png_set_chunk_malloc_max(png_structrp png_ptr, png_alloc_size_t user_chunk_cache_max)
Definition: pngset.c:1559
PNG_IMPEXP void() png_set_rgb_to_gray_fixed(png_structrp png_ptr, int error_action, png_fixed_point red, png_fixed_point green)
Definition: pngrtran.c:953
PNG_IMPEXP void() png_chunk_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:497
PNG_IMPEXP void() png_progressive_combine_row(png_const_structrp png_ptr, png_bytep old_row, png_const_bytep new_row)
Definition: pngpread.c:1131
PNG_IMPEXP png_infop() png_create_info_struct(png_const_structrp png_ptr)
Definition: png.c:327
PNG_IMPEXP int() png_image_begin_read_from_memory(png_imagep image, png_const_voidp memory, png_size_t size)
Definition: pngread.c:1543
png_byte second
Definition: png.h:748
png_color_8 * png_color_8p
Definition: png.h:649
PNG_IMPEXP void() png_set_read_user_transform_fn(png_structrp png_ptr, png_user_transform_ptr read_user_transform_fn)
Definition: pngrtran.c:1057
png_uint_32 format
Definition: png.h:2813
PNG_IMPEXP void() png_write_chunk_start(png_structrp png_ptr, png_const_bytep chunk_name, png_uint_32 length)
Definition: pngwutil.c:115
PNG_IMPEXP void() png_set_quantize(png_structrp png_ptr, png_colorp palette, int num_palette, int maximum_colors, png_const_uint_16p histogram, int full_quantize)
Definition: pngrtran.c:413
png_byte color_type
Definition: png.h:898
png_uint_16 blue
Definition: png.h:661
png_uint_16 green
Definition: png.h:633
png_byte channels
Definition: png.h:900
#define PNG_EXPORT(ordinal, type, name, args)
Definition: pngconf.h:332
PNG_IMPEXP void() png_write_end(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngwrite.c:347
PNG_IMPEXP void() png_write_row(png_structrp png_ptr, png_const_bytep row)
Definition: pngwrite.c:681
PNG_IMPEXP png_uint_32() png_permit_mng_features(png_structrp png_ptr, png_uint_32 mng_features_permitted)
Definition: pngset.c:1240
PNG_IMPEXP png_uint_32() png_get_gAMA_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *int_file_gamma)
Definition: pngget.c:678
PNG_IMPEXP void() png_set_cHRM(png_const_structrp png_ptr, png_inforp 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)
Definition: pngset.c:102
PNG_IMPEXP void() png_build_grayscale_palette(int bit_depth, png_colorp palette)
Definition: png.c:833
PNG_IMPEXP int() png_get_sPLT(png_const_structrp png_ptr, png_inforp info_ptr, png_sPLT_tpp entries)
Definition: pngget.c:763
PNG_IMPEXP void() png_set_user_limits(png_structrp png_ptr, png_uint_32 user_width_max, png_uint_32 user_height_max)
Definition: pngset.c:1535
PNG_IMPEXP void() png_write_image(png_structrp png_ptr, png_bytepp image)
Definition: pngwrite.c:584
void(* png_error_ptr)(png_structp, png_const_charp)
Definition: png.h:915
static char buffer[255]
Definition: propagator_simple.cpp:60
png_byte depth
Definition: png.h:677
struct png_image * png_imagep
struct png_text_struct png_text
PNG_IMPEXP void() png_set_gamma(png_structrp png_ptr, double screen_gamma, double override_file_gamma)
Definition: pngrtran.c:841
void(* png_free_ptr)(png_structp, png_voidp)
Definition: png.h:1007
PNG_IMPEXP void() png_set_invert_mono(png_structrp png_ptr)
Definition: pngtrans.c:249
PNG_IMPEXP int() png_image_begin_read_from_file(png_imagep image, const char *file_name)
Definition: pngread.c:1475
png_byte minute
Definition: png.h:747
PNG_IMPEXP void() png_set_strip_alpha(png_structrp png_ptr)
Definition: pngrtran.c:198
const png_color * png_const_colorp
Definition: png.h:626
PNG_IMPEXP png_fixed_point() png_get_pixel_aspect_ratio_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:205
png_uint_32 version
Definition: png.h:2810
uint8_t message[300]
Definition: kpc9612p_send.cpp:36
struct png_sPLT_struct png_sPLT_t
PNG_IMPEXP void() png_set_add_alpha(png_structrp png_ptr, png_uint_32 filler, int flags)
Definition: pngtrans.c:204
PNG_IMPEXP void() png_write_sig(png_structrp png_ptr)
Definition: pngwutil.c:51
PNG_IMPEXP png_uint_32() png_get_cHRM_XYZ(png_const_structrp png_ptr, png_const_inforp info_ptr, double *red_X, double *red_Y, double *red_Z, double *green_X, double *green_Y, double *green_Z, double *blue_X, double *blue_Y, double *blue_Z)
Definition: pngget.c:558
const png_byte * png_const_bytep
Definition: pngconf.h:601
PNG_IMPEXP void() png_set_error_fn(png_structrp png_ptr, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warning_fn)
Definition: pngerror.c:835
PNG_IMPEXP png_uint_32() png_get_sRGB(png_const_structrp png_ptr, png_const_inforp info_ptr, int *file_srgb_intent)
Definition: pngget.c:718
void(* png_rw_ptr)(png_structp, png_bytep, png_size_t)
Definition: png.h:916
png_sPLT_entryp entries
Definition: png.h:678
PNG_IMPEXP void() png_destroy_info_struct(png_const_structrp png_ptr, png_infopp info_ptr_ptr)
Definition: png.c:359
png_size_t size
Definition: pngpriv.h:1872
PNG_IMPEXP png_voidp() png_get_user_chunk_ptr(png_const_structrp png_ptr)
Definition: pngget.c:1126
PNG_IMPEXP void() png_set_alpha_mode_fixed(png_structrp png_ptr, int mode, png_fixed_point output_gamma)
Definition: pngrtran.c:275
PNG_IMPEXP png_const_charp() png_get_header_version(png_const_structrp png_ptr)
Definition: png.c:810
const png_uint_16 * png_const_uint_16p
Definition: pngconf.h:607
PNG_IMPEXP void() png_set_flush(png_structrp png_ptr, int nrows)
Definition: pngwrite.c:891
PNG_IMPEXP png_byte() png_get_rgb_to_gray_status(png_const_structrp png_ptr)
Definition: pngget.c:1118
PNG_IMPEXP void() png_set_sBIT(png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_8p sig_bit)
Definition: pngset.c:565
PNG_IMPEXP int() png_set_option(png_structrp png_ptr, int option, int onoff)
Definition: png.c:4217
string name
Definition: cubesat2obj.cpp:6
PNG_IMPEXP int() png_get_text(png_const_structrp png_ptr, png_inforp info_ptr, png_textp *text_ptr, int *num_text)
Definition: pngget.c:1013
PNG_IMPEXP void() png_chunk_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:481
png_row_info * png_row_infop
Definition: png.h:904
struct png_color_16_struct png_color_16
const png_struct * png_const_structrp
Definition: png.h:611
png_unknown_chunk ** png_unknown_chunkpp
Definition: png.h:781
PNG_IMPEXP void() png_image_free(png_imagep image)
Definition: png.c:4467
PNG_IMPEXP png_size_t() png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:30
int JSAMPARRAY int int num_rows
Definition: jpegint.h:373
const png_info * png_const_inforp
Definition: png.h:613
png_sPLT_t ** png_sPLT_tpp
Definition: png.h:683
PNG_IMPEXP png_size_t() png_get_compression_buffer_size(png_const_structrp png_ptr)
Definition: pngget.c:1133
PNG_IMPEXP void() png_set_oFFs(png_const_structrp png_ptr, png_inforp info_ptr, png_int_32 offset_x, png_int_32 offset_y, int unit_type)
Definition: pngset.c:247
PNG_IMPEXP void() png_set_hIST(png_const_structrp png_ptr, png_inforp info_ptr, png_const_uint_16p hist)
Definition: pngset.c:163
PNG_IMPEXP void() png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 free_me, int num)
Definition: png.c:442
PNG_IMPEXP png_fixed_point() png_get_y_offset_inches_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:389
PNG_IMPEXP png_byte() png_get_interlace_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:97
PNG_IMPEXP void() png_set_sCAL_fixed(png_const_structrp png_ptr, png_inforp info_ptr, int unit, png_fixed_point width, png_fixed_point height)
Definition: pngset.c:460
PNG_IMPEXP png_alloc_size_t() png_get_chunk_malloc_max(png_const_structrp png_ptr)
Definition: pngget.c:1179
char ** png_charpp
Definition: pngconf.h:633
png_byte pixel_depth
Definition: png.h:901
PNG_IMPEXP png_structp() png_create_read_struct(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)
Definition: pngread.c:27
const void * png_const_voidp
Definition: pngconf.h:599
PNG_IMPEXP void() png_set_text_compression_mem_level(png_structrp png_ptr, int mem_level)
Definition: pngwrite.c:1472
PNG_IMPEXP void() png_set_compression_buffer_size(png_structrp png_ptr, png_size_t size)
Definition: pngset.c:1472
PNG_IMPEXP void() png_write_png(png_structrp png_ptr, png_inforp info_ptr, int transforms, png_voidp params)
PNG_IMPEXP void() png_save_uint_16(png_bytep buf, unsigned int i)
Definition: pngwutil.c:37
PNG_IMPEXP void() png_set_filter_heuristics(png_structrp png_ptr, int heuristic_method, int num_weights, png_const_doublep filter_weights, png_const_doublep filter_costs)
Definition: pngwrite.c:1255
PNG_DEPRECATED PNG_IMPEXP png_const_charp() png_convert_to_rfc1123(png_structrp png_ptr, png_const_timep ptime)
Definition: png.c:744
PNG_IMPEXP void() png_set_text(png_const_structrp png_ptr, png_inforp info_ptr, png_const_textp text_ptr, int num_text)
Definition: pngset.c:688
png_sPLT_entry * png_sPLT_entryp
Definition: png.h:665
PNG_IMPEXP int() png_set_interlace_handling(png_structrp png_ptr)
Definition: pngtrans.c:99
PNG_IMPEXP void() png_write_info(png_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngwrite.c:191
png_byte location
Definition: png.h:775
PNG_IMPEXP void() png_convert_from_time_t(png_timep ptime, time_t ttime)
Definition: pngwrite.c:468
PNG_IMPEXP png_uint_32() png_get_pHYs_dpi(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
Definition: pngget.c:421
PNG_IMPEXP png_uint_32() png_process_data_skip(png_structrp)
Definition: pngpread.c:79
void(* png_write_status_ptr)(png_structp, png_uint_32, int)
Definition: png.h:921
#define png_get_int_32(buf)
Definition: png.h:2746
PNG_IMPEXP void() png_set_benign_errors(png_structrp png_ptr, int allowed)
Definition: pngset.c:1570
const png_info * png_const_infop
Definition: png.h:596
png_time * png_timep
Definition: png.h:750
PNG_IMPEXP void() png_set_filler(png_structrp png_ptr, png_uint_32 filler, int flags)
Definition: pngtrans.c:120
png_uint_16 green
Definition: png.h:660
const png_color_16 * png_const_color_16p
Definition: png.h:638
PNG_IMPEXP png_uint_32() png_get_uint_31(png_const_structrp png_ptr, png_const_bytep buf)
Definition: pngrutil.c:22
PNG_IMPEXP void() png_set_text_compression_strategy(png_structrp png_ptr, int strategy)
Definition: pngwrite.c:1483
PNG_IMPEXP void() png_set_mem_fn(png_structrp png_ptr, png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn)
Definition: pngmem.c:257
png_size_t rowbytes
Definition: png.h:897
PNG_IMPEXP int() png_convert_to_rfc1123_buffer(char out[29], png_const_timep ptime)
Definition: png.c:691
PNG_IMPEXP void() png_set_read_fn(png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn)
Definition: pngrio.c:87
PNG_IMPEXP void() png_set_sPLT(png_const_structrp png_ptr, png_inforp info_ptr, png_const_sPLT_tp entries, int nentries)
Definition: pngset.c:977
PNG_IMPEXP png_voidp() png_calloc(png_const_structrp png_ptr, png_alloc_size_t size)
Definition: pngmem.c:50
PNG_IMPEXP void() png_write_rows(png_structrp png_ptr, png_bytepp row, png_uint_32 num_rows)
Definition: pngwrite.c:562
png_size_t itxt_length
Definition: png.h:714
PNG_IMPEXP png_uint_32() png_get_sCAL_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_fixed_point *width, png_fixed_point *height)
Definition: pngget.c:885
png_byte index
Definition: png.h:631
PNG_IMPEXP void() png_set_scale_16(png_structrp png_ptr)
Definition: pngrtran.c:171
png_uint_16 red
Definition: png.h:659
PNG_IMPEXP void() png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_16p background)
Definition: pngset.c:25
PNG_IMPEXP void() png_set_text_compression_level(png_structrp png_ptr, int level)
Definition: pngwrite.c:1461
png_uint_32 length
Definition: png.c:2173
png_byte day
Definition: png.h:745
PNG_IMPEXP void() png_set_sCAL(png_const_structrp png_ptr, png_inforp info_ptr, int unit, double width, double height)
Definition: pngset.c:430
png_uint_16 * png_uint_16p
Definition: pngconf.h:606
png_color * png_colorp
Definition: png.h:625
PNG_IMPEXP void() png_set_rgb_to_gray(png_structrp png_ptr, int error_action, double red, double green)
Definition: pngrtran.c:1043
PNG_IMPEXP png_const_charp() png_get_copyright(png_const_structrp png_ptr)
Definition: png.c:764
PNG_IMPEXP png_const_charp() png_get_libpng_ver(png_const_structrp png_ptr)
Definition: png.c:795
PNG_IMPEXP png_byte() png_get_channels(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:467
PNG_IMPEXP void() png_set_iCCP(png_const_structrp png_ptr, png_inforp info_ptr, png_const_charp name, int compression_type, png_const_bytep profile, png_uint_32 proflen)
Definition: pngset.c:615
png_row_info ** png_row_infopp
Definition: png.h:905
PNG_IMPEXP png_uint_32() png_get_hIST(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_16p *hist)
Definition: pngget.c:778
PNG_IMPEXP float() png_get_x_offset_inches(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:399
struct png_unknown_chunk_t png_unknown_chunk
PNG_IMPEXP int() png_image_write_to_stdio(png_imagep image, FILE *file, int convert_to_8_bit, const void *buffer, png_int_32 row_stride, const void *colormap)
Definition: pngwrite.c:2339
PNG_IMPEXP png_uint_32() png_get_y_pixels_per_meter(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:137
PNG_IMPEXP int() png_image_write_to_file(png_imagep image, const char *file, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap)
Definition: pngwrite.c:2388
PNG_IMPEXP void() png_set_compression_level(png_structrp png_ptr, int level)
Definition: pngwrite.c:1376
struct png_control * png_controlp
Definition: png.h:2806
PNG_IMPEXP int() png_get_palette_max(png_const_structp png_ptr, png_const_infop info_ptr)
Definition: pngget.c:1203
#define PNG_RESTRICT
Definition: pngconf.h:467
PNG_IMPEXP png_uint_32() png_get_oFFs(png_const_structrp png_ptr, png_const_inforp info_ptr, png_int_32 *offset_x, png_int_32 *offset_y, int *unit_type)
Definition: pngget.c:834
PNG_IMPEXP png_bytepp() png_get_rows(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:40
PNG_IMPEXP void() png_set_background_fixed(png_structrp png_ptr, png_const_color_16p background_color, int background_gamma_code, int need_expand, png_fixed_point background_gamma)
Definition: pngrtran.c:125
const JsonParse strategy
Definition: json11.cpp:364
PNG_IMPEXP void() png_set_crc_action(png_structrp png_ptr, int crit_action, int ancil_action)
Definition: pngrtran.c:25
PNG_IMPEXP void() png_destroy_write_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr)
Definition: pngwrite.c:979
PNG_IMPEXP void() png_set_sig_bytes(png_structrp png_ptr, int num_bytes)
Definition: png.c:27
png_int_32 png_fixed_point
Definition: pngconf.h:595
PNG_IMPEXP void() png_set_text_compression_method(png_structrp png_ptr, int method)
Definition: pngwrite.c:1518
PNG_IMPEXP png_uint_32() png_get_pCAL(png_const_structrp png_ptr, png_inforp info_ptr, png_charp *purpose, png_int_32 *X0, png_int_32 *X1, int *type, int *nparams, png_charp *units, png_charpp *params)
Definition: pngget.c:855
PNG_IMPEXP png_uint_32() png_get_pixels_per_meter(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:159
PNG_IMPEXP png_uint_32() png_get_current_row_number(png_const_structrp)
Definition: pngtrans.c:829
PNG_IMPEXP void() png_write_chunk_data(png_structrp png_ptr, png_const_bytep data, png_size_t length)
Definition: pngwutil.c:127
FILE * fp
Definition: rw_test.cpp:38
PNG_IMPEXP void() png_set_gamma_fixed(png_structrp png_ptr, png_fixed_point screen_gamma, png_fixed_point override_file_gamma)
Definition: pngrtran.c:801
PNG_IMPEXP void() png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:229
PNG_IMPEXP void() png_set_read_user_chunk_fn(png_structrp png_ptr, png_voidp user_chunk_ptr, png_user_chunk_ptr read_user_chunk_fn)
Definition: pngset.c:1437
PNG_IMPEXP void() png_save_int_32(png_bytep buf, png_int_32 i)
Definition: png.c:677
PNG_IMPEXP void() png_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:40
png_uint_32 height
Definition: png.h:2812
png_byte month
Definition: png.h:744
size_t png_size_t
Definition: pngconf.h:543
png_charp lang_key
Definition: png.h:717
PNG_IMPEXP void() png_write_chunk(png_structrp png_ptr, png_const_bytep chunk_name, png_const_bytep data, png_size_t length)
Definition: pngwutil.c:193
PNG_IMPEXP void() png_save_uint_32(png_bytep buf, png_uint_32 i)
Definition: pngwutil.c:24
png_byte alpha
Definition: png.h:647
#define PNG_FUNCTION(type, name, args, attributes)
Definition: pngconf.h:309
PNG_IMPEXP png_uint_32() png_get_cHRM(png_const_structrp png_ptr, png_const_inforp 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)
Definition: pngget.c:512
png_size_t text_length
Definition: png.h:713
png_sPLT_entry ** png_sPLT_entrypp
Definition: png.h:667
char buf[128]
Definition: rw_test.cpp:40
PNG_IMPEXP void() png_read_image(png_structrp png_ptr, png_bytepp image)
Definition: pngread.c:691
PNG_IMPEXP void() png_set_text_compression_window_bits(png_structrp png_ptr, int window_bits)
Definition: pngwrite.c:1497
PNG_IMPEXP void() png_set_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point int_red_X, png_fixed_point int_red_Y, png_fixed_point int_red_Z, png_fixed_point int_green_X, png_fixed_point int_green_Y, png_fixed_point int_green_Z, png_fixed_point int_blue_X, png_fixed_point int_blue_Y, png_fixed_point int_blue_Z)
Definition: pngset.c:69
PNG_IMPEXP void() png_read_update_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:259
PNG_IMPEXP void() png_set_compression_strategy(png_structrp png_ptr, int strategy)
Definition: pngwrite.c:1398
char * png_libpng_version_1_6_16
Definition: png.h:572
png_uint_32 colormap_entries
Definition: png.h:2815
PNG_IMPEXP png_size_t() png_process_data_pause(png_structrp, int save)
Definition: pngpread.c:52
PNG_DEPRECATED PNG_IMPEXP void() png_info_init_3(png_infopp info_ptr, png_size_t png_info_struct_size)
Definition: png.c:398
PNG_IMPEXP png_voidp() png_get_user_transform_ptr(png_const_structrp png_ptr)
Definition: pngtrans.c:818
struct png_row_info_struct png_row_info
PNG_IMPEXP png_const_charp() png_get_header_ver(png_const_structrp png_ptr)
Definition: png.c:802
PNG_IMPEXP void() png_set_packswap(png_structrp png_ptr)
Definition: pngtrans.c:70
const png_struct * png_const_structp
Definition: png.h:581
PNG_IMPEXP png_uint_32() png_get_pixels_per_inch(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:349
png_uint_16 red
Definition: png.h:632
PNG_IMPEXP void() png_set_expand_16(png_structrp png_ptr)
Definition: pngrtran.c:925
PNG_IMPEXP png_uint_32() png_get_chunk_cache_max(png_const_structrp png_ptr)
Definition: pngget.c:1172
PNG_IMPEXP void() png_start_read_image(png_structrp png_ptr)
Definition: pngread.c:290
PNG_IMPEXP void() png_set_expand(png_structrp png_ptr)
Definition: pngrtran.c:855
void(* png_longjmp_ptr)(jmp_buf, int)
Definition: png.h:968
#define PNG_REMOVED(ordinal, type, name, args, attributes)
Definition: pngconf.h:337
PNG_IMPEXP void() png_set_tRNS_to_alpha(png_structrp png_ptr)
Definition: pngrtran.c:909
png_byte * data
Definition: png.h:766
PNG_IMPEXP png_uint_32() png_get_user_width_max(png_const_structrp png_ptr)
Definition: pngget.c:1159
PNG_IMPEXP void() png_longjmp(png_const_structrp png_ptr, int val)
Definition: pngerror.c:758
PNG_IMPEXP void() png_set_filter(png_structrp png_ptr, int method, int filters)
Definition: pngwrite.c:1000
png_text ** png_textpp
Definition: png.h:722
png_color_16 * png_color_16p
Definition: png.h:637
png_color_8 ** png_color_8pp
Definition: png.h:651
png_byte gray
Definition: png.h:646
PNG_IMPEXP void() png_init_io(png_structrp png_ptr, png_FILE_p fp)
Definition: png.c:658
PNG_IMPEXP int() png_image_begin_read_from_stdio(png_imagep image, FILE *file)
Definition: pngread.c:1445
PNG_IMPEXP void() png_set_invert_alpha(png_structrp png_ptr)
Definition: pngtrans.c:236
PNG_IMPEXP png_byte() png_get_bit_depth(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:70
PNG_IMPEXP void() png_set_gray_to_rgb(png_structrp png_ptr)
Definition: pngrtran.c:938
PNG_IMPEXP png_uint_32() png_get_PLTE(png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette)
Definition: pngget.c:976
PNG_IMPEXP void() png_set_user_transform_info(png_structrp png_ptr, png_voidp user_transform_ptr, int user_transform_depth, int user_transform_channels)
Definition: pngtrans.c:787
PNG_IMPEXP void() png_set_shift(png_structrp png_ptr, png_const_color_8p true_bits)
Definition: pngtrans.c:84
PNG_IMPEXP png_voidp() png_get_error_ptr(png_const_structrp png_ptr)
Definition: pngerror.c:856
png_info * png_infop
Definition: png.h:595
PNG_DEPRECATED PNG_IMPEXP png_voidp() png_malloc_default(png_const_structrp png_ptr, png_alloc_size_t size)
Definition: pngmem.c:187
const png_text * png_const_textp
Definition: png.h:721
png_uint_16 year
Definition: png.h:743
png_byte green
Definition: png.h:622
PNG_IMPEXP void() png_set_filter_heuristics_fixed(png_structrp png_ptr, int heuristic_method, int num_weights, png_const_fixed_point_p filter_weights, png_const_fixed_point_p filter_costs)
Definition: pngwrite.c:1310
PNG_IMPEXP void() png_set_check_for_invalid_index(png_structrp png_ptr, int allowed)
Definition: pngset.c:1600
png_byte bit_depth
Definition: png.h:899
png_byte blue
Definition: png.h:623
struct png_color_struct png_color
PNG_IMPEXP void() png_benign_error(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:362
png_charp name
Definition: png.h:676
PNG_IMPEXP void() png_write_flush(png_structrp png_ptr)
Definition: pngwrite.c:903
png_struct ** png_structpp
Definition: png.h:583
png_time ** png_timepp
Definition: png.h:752
png_size_t size
Definition: png.h:767
PNG_IMPEXP void() png_set_expand_gray_1_2_4_to_8(png_structrp png_ptr)
Definition: pngrtran.c:897
const png_fixed_point * png_const_fixed_point_p
Definition: pngconf.h:613