40 #define _POSIX_SOURCE 1 42 #ifndef PNG_VERSION_INFO_ONLY 59 #if defined(HAVE_CONFIG_H) && !defined(PNG_NO_CONFIG_H) 63 # define PNG_RESTRICT restrict 76 #if defined(PNG_PREFIX) && !defined(PNGPREFIX_H) 77 # include "pngprefix.h" 80 #ifdef PNG_USER_CONFIG 83 # ifndef PNG_USER_PRIVATEBUILD 84 # define PNG_USER_PRIVATEBUILD "Custom libpng build" 86 # ifndef PNG_USER_DLLFNAME_POSTFIX 87 # define PNG_USER_DLLFNAME_POSTFIX "Cb" 110 #ifndef PNG_ARM_NEON_OPT 126 # if (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \ 127 defined(PNG_ALIGNED_MEMORY_SUPPORTED) 128 # define PNG_ARM_NEON_OPT 2 130 # define PNG_ARM_NEON_OPT 0 134 #if PNG_ARM_NEON_OPT > 0 138 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_neon 154 # ifndef PNG_ARM_NEON_IMPLEMENTATION 155 # if defined(__ARM_NEON__) || defined(__ARM_NEON) 156 # if defined(__clang__) 162 # elif defined(__GNUC__) 166 # if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) 167 # define PNG_ARM_NEON_IMPLEMENTATION 2 173 # define PNG_ARM_NEON_IMPLEMENTATION 2 177 # ifndef PNG_ARM_NEON_IMPLEMENTATION 179 # define PNG_ARM_NEON_IMPLEMENTATION 1 191 #ifndef PNG_BUILD_DLL 197 # define PNG_BUILD_DLL 206 # define PNG_BUILD_DLL 212 # define PNG_BUILD_DLL 229 # ifdef PNG_BUILD_DLL 230 # define PNG_IMPEXP PNG_DLL_EXPORT 240 #ifndef PNG_DEPRECATED 241 # define PNG_DEPRECATED 252 #ifndef PNG_INTERNAL_DATA 253 # define PNG_INTERNAL_DATA(type, name, array) extern type name array 256 #ifndef PNG_INTERNAL_FUNCTION 257 # define PNG_INTERNAL_FUNCTION(type, name, args, attributes)\ 258 extern PNG_FUNCTION(type, name, args, PNG_EMPTY attributes) 261 #ifndef PNG_INTERNAL_CALLBACK 262 # define PNG_INTERNAL_CALLBACK(type, name, args, attributes)\ 263 extern PNG_FUNCTION(type, (PNGCBAPI name), args, PNG_EMPTY attributes) 275 #ifndef PNG_FP_EXPORT 276 # ifndef PNG_FLOATING_POINT_SUPPORTED 277 # define PNG_FP_EXPORT(ordinal, type, name, args)\ 278 PNG_INTERNAL_FUNCTION(type, name, args, PNG_EMPTY); 279 # ifndef PNG_VERSION_INFO_ONLY 280 typedef struct png_incomplete png_double;
281 typedef png_double* png_doublep;
282 typedef const png_double* png_const_doublep;
283 typedef png_double** png_doublepp;
287 #ifndef PNG_FIXED_EXPORT 288 # ifndef PNG_FIXED_POINT_SUPPORTED 289 # define PNG_FIXED_EXPORT(ordinal, type, name, args)\ 290 PNG_INTERNAL_FUNCTION(type, name, args, PNG_EMPTY); 297 #ifndef PNG_DLL_EXPORT 298 # define PNG_DLL_EXPORT 310 #ifdef PNG_SAFE_LIMITS_SUPPORTED 312 # ifndef PNG_USER_WIDTH_MAX 313 # define PNG_USER_WIDTH_MAX 1000000 315 # ifndef PNG_USER_HEIGHT_MAX 316 # define PNG_USER_HEIGHT_MAX 1000000 318 # ifndef PNG_USER_CHUNK_CACHE_MAX 319 # define PNG_USER_CHUNK_CACHE_MAX 128 321 # ifndef PNG_USER_CHUNK_MALLOC_MAX 322 # define PNG_USER_CHUNK_MALLOC_MAX 8000000 326 # ifndef PNG_USER_WIDTH_MAX 327 # define PNG_USER_WIDTH_MAX 0x7fffffff 329 # ifndef PNG_USER_HEIGHT_MAX 330 # define PNG_USER_HEIGHT_MAX 0x7fffffff 332 # ifndef PNG_USER_CHUNK_CACHE_MAX 333 # define PNG_USER_CHUNK_CACHE_MAX 0 335 # ifndef PNG_USER_CHUNK_MALLOC_MAX 336 # define PNG_USER_CHUNK_MALLOC_MAX 0 356 #if defined(MAXSEG_64K) && !defined(PNG_MAX_MALLOC_64K) 357 # define PNG_MAX_MALLOC_64K 367 # define PNG_UNUSED(param) (void)param; 373 #if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K) 374 # undef PNG_ZBUF_SIZE 375 # define PNG_ZBUF_SIZE 65536L 382 #ifdef PNG_WARNINGS_SUPPORTED 383 # define PNG_WARNING_PARAMETERS(p) png_warning_parameters p; 385 # define png_warning_parameter(p,number,string) ((void)0) 386 # define png_warning_parameter_unsigned(p,number,format,value) ((void)0) 387 # define png_warning_parameter_signed(p,number,format,value) ((void)0) 388 # define png_formatted_warning(pp,p,message) ((void)(pp)) 389 # define PNG_WARNING_PARAMETERS(p) 391 #ifndef PNG_ERROR_TEXT_SUPPORTED 392 # define png_fixed_error(s1,s2) png_err(s1) 401 # define png_voidcast(type, value) static_cast<type>(value) 402 # define png_constcast(type, value) const_cast<type>(value) 403 # define png_aligncast(type, value) \ 404 static_cast<type>(static_cast<void*>(value)) 405 # define png_aligncastconst(type, value) \ 406 static_cast<type>(static_cast<const void*>(value)) 408 # define png_voidcast(type, value) (value) 409 # define png_constcast(type, value) ((type)(value)) 410 # define png_aligncast(type, value) ((void*)(value)) 411 # define png_aligncastconst(type, value) ((const void*)(value)) 418 #ifdef PNG_FIXED_POINT_SUPPORTED 419 # define PNGFAPI PNGAPI 424 #ifndef PNG_VERSION_INFO_ONLY 428 #if defined(PNG_FLOATING_POINT_SUPPORTED) ||\ 429 defined(PNG_FLOATING_ARITHMETIC_SUPPORTED) 439 # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \ 440 defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC) 445 # if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__) 451 # if defined(_AMIGA) && defined(__SASC) && defined(_M68881) 460 #if defined(__TURBOC__) && defined(__MSDOS__) 465 #if defined(WIN32) || defined(_Windows) || defined(_WINDOWS) || \ 466 defined(_WIN32) || defined(__WIN32__) 467 # include <windows.h> 479 # define PNG_ABORT() ExitProcess(0) 481 # define PNG_ABORT() abort() 486 #define PNG_ALIGN_NONE 0 487 #define PNG_ALIGN_ALWAYS 1 489 # define PNG_ALIGN_OFFSET 2 491 # define PNG_ALIGN_OFFSET -1 493 #define PNG_ALIGN_SIZE 3 495 #ifndef PNG_ALIGN_TYPE 500 # define PNG_ALIGN_TYPE PNG_ALIGN_SIZE 503 #if PNG_ALIGN_TYPE == PNG_ALIGN_SIZE 510 # define png_alignof(type) (sizeof (type)) 512 # if PNG_ALIGN_TYPE == PNG_ALIGN_OFFSET 513 # define png_alignof(type) offsetof(struct{char c; type t;}, t) 515 # if PNG_ALIGN_TYPE == PNG_ALIGN_ALWAYS 516 # define png_alignof(type) (1) 524 # define png_isaligned(ptr, type)\ 525 ((((const char*)ptr-(const char*)0) & (png_alignof(type)-1)) == 0) 527 # define png_isaligned(ptr, type) 0 544 #define PNG_HAVE_IDAT 0x04 546 #define PNG_HAVE_IEND 0x10 550 #define PNG_HAVE_CHUNK_HEADER 0x100 551 #define PNG_WROTE_tIME 0x200 552 #define PNG_WROTE_INFO_BEFORE_PLTE 0x400 553 #define PNG_BACKGROUND_IS_GRAY 0x800 554 #define PNG_HAVE_PNG_SIGNATURE 0x1000 555 #define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 557 #define PNG_IS_READ_STRUCT 0x8000 560 #define PNG_BGR 0x0001 561 #define PNG_INTERLACE 0x0002 562 #define PNG_PACK 0x0004 563 #define PNG_SHIFT 0x0008 564 #define PNG_SWAP_BYTES 0x0010 565 #define PNG_INVERT_MONO 0x0020 566 #define PNG_QUANTIZE 0x0040 567 #define PNG_COMPOSE 0x0080 568 #define PNG_BACKGROUND_EXPAND 0x0100 569 #define PNG_EXPAND_16 0x0200 570 #define PNG_16_TO_8 0x0400 571 #define PNG_RGBA 0x0800 572 #define PNG_EXPAND 0x1000 573 #define PNG_GAMMA 0x2000 574 #define PNG_GRAY_TO_RGB 0x4000 575 #define PNG_FILLER 0x8000 576 #define PNG_PACKSWAP 0x10000 577 #define PNG_SWAP_ALPHA 0x20000 578 #define PNG_STRIP_ALPHA 0x40000 579 #define PNG_INVERT_ALPHA 0x80000 580 #define PNG_USER_TRANSFORM 0x100000 581 #define PNG_RGB_TO_GRAY_ERR 0x200000 582 #define PNG_RGB_TO_GRAY_WARN 0x400000 583 #define PNG_RGB_TO_GRAY 0x600000 584 #define PNG_ENCODE_ALPHA 0x800000 585 #define PNG_ADD_ALPHA 0x1000000 586 #define PNG_EXPAND_tRNS 0x2000000 587 #define PNG_SCALE_16_TO_8 0x4000000 593 #define PNG_STRUCT_PNG 0x0001 594 #define PNG_STRUCT_INFO 0x0002 597 #define PNG_WEIGHT_FACTOR (1<<(PNG_WEIGHT_SHIFT)) 598 #define PNG_COST_FACTOR (1<<(PNG_COST_SHIFT)) 601 #define PNG_FLAG_ZLIB_CUSTOM_STRATEGY 0x0001 602 #define PNG_FLAG_ZSTREAM_INITIALIZED 0x0002 604 #define PNG_FLAG_ZSTREAM_ENDED 0x0008 607 #define PNG_FLAG_ROW_INIT 0x0040 608 #define PNG_FLAG_FILLER_AFTER 0x0080 609 #define PNG_FLAG_CRC_ANCILLARY_USE 0x0100 610 #define PNG_FLAG_CRC_ANCILLARY_NOWARN 0x0200 611 #define PNG_FLAG_CRC_CRITICAL_USE 0x0400 612 #define PNG_FLAG_CRC_CRITICAL_IGNORE 0x0800 613 #define PNG_FLAG_ASSUME_sRGB 0x1000 614 #define PNG_FLAG_OPTIMIZE_ALPHA 0x2000 615 #define PNG_FLAG_DETECT_UNINITIALIZED 0x4000 618 #define PNG_FLAG_LIBRARY_MISMATCH 0x20000 619 #define PNG_FLAG_STRIP_ERROR_NUMBERS 0x40000 620 #define PNG_FLAG_STRIP_ERROR_TEXT 0x80000 621 #define PNG_FLAG_BENIGN_ERRORS_WARN 0x100000 622 #define PNG_FLAG_APP_WARNINGS_WARN 0x200000 623 #define PNG_FLAG_APP_ERRORS_WARN 0x400000 633 #define PNG_FLAG_CRC_ANCILLARY_MASK (PNG_FLAG_CRC_ANCILLARY_USE | \ 634 PNG_FLAG_CRC_ANCILLARY_NOWARN) 636 #define PNG_FLAG_CRC_CRITICAL_MASK (PNG_FLAG_CRC_CRITICAL_USE | \ 637 PNG_FLAG_CRC_CRITICAL_IGNORE) 639 #define PNG_FLAG_CRC_MASK (PNG_FLAG_CRC_ANCILLARY_MASK | \ 640 PNG_FLAG_CRC_CRITICAL_MASK) 644 #define PNG_COLOR_DIST(c1, c2) (abs((int)((c1).red) - (int)((c2).red)) + \ 645 abs((int)((c1).green) - (int)((c2).green)) + \ 646 abs((int)((c1).blue) - (int)((c2).blue))) 656 #define PNG_DIV65535(v24) (((v24) + 32895) >> 16) 657 #define PNG_DIV257(v16) PNG_DIV65535((png_uint_32)(v16) * 255) 660 #define PNG_ROWBYTES(pixel_bits, width) \ 661 ((pixel_bits) >= 8 ? \ 662 ((png_size_t)(width) * (((png_size_t)(pixel_bits)) >> 3)) : \ 663 (( ((png_size_t)(width) * ((png_size_t)(pixel_bits))) + 7) >> 3) ) 670 #define PNG_OUT_OF_RANGE(value, ideal, delta) \ 671 ( (value) < (ideal)-(delta) || (value) > (ideal)+(delta) ) 677 #ifdef PNG_FLOATING_POINT_SUPPORTED 685 #define png_float(png_ptr, fixed, s) (.00001 * (fixed)) 703 #ifdef PNG_FIXED_POINT_MACRO_SUPPORTED 704 #define png_fixed(png_ptr, fp, s) ((fp) <= 21474 && (fp) >= -21474 ?\ 705 ((png_fixed_point)(100000 * (fp))) : (png_fixed_error(png_ptr, s),0)) 725 #define PNG_32b(b,s) ((png_uint_32)(b) << (s)) 726 #define PNG_U32(b1,b2,b3,b4) \ 727 (PNG_32b(b1,24) | PNG_32b(b2,16) | PNG_32b(b3,8) | PNG_32b(b4,0)) 752 #define png_IDAT PNG_U32( 73, 68, 65, 84) 753 #define png_IEND PNG_U32( 73, 69, 78, 68) 754 #define png_IHDR PNG_U32( 73, 72, 68, 82) 755 #define png_PLTE PNG_U32( 80, 76, 84, 69) 756 #define png_bKGD PNG_U32( 98, 75, 71, 68) 757 #define png_cHRM PNG_U32( 99, 72, 82, 77) 758 #define png_fRAc PNG_U32(102, 82, 65, 99) 759 #define png_gAMA PNG_U32(103, 65, 77, 65) 760 #define png_gIFg PNG_U32(103, 73, 70, 103) 761 #define png_gIFt PNG_U32(103, 73, 70, 116) 762 #define png_gIFx PNG_U32(103, 73, 70, 120) 763 #define png_hIST PNG_U32(104, 73, 83, 84) 764 #define png_iCCP PNG_U32(105, 67, 67, 80) 765 #define png_iTXt PNG_U32(105, 84, 88, 116) 766 #define png_oFFs PNG_U32(111, 70, 70, 115) 767 #define png_pCAL PNG_U32(112, 67, 65, 76) 768 #define png_pHYs PNG_U32(112, 72, 89, 115) 769 #define png_sBIT PNG_U32(115, 66, 73, 84) 770 #define png_sCAL PNG_U32(115, 67, 65, 76) 771 #define png_sPLT PNG_U32(115, 80, 76, 84) 772 #define png_sRGB PNG_U32(115, 82, 71, 66) 773 #define png_sTER PNG_U32(115, 84, 69, 82) 774 #define png_tEXt PNG_U32(116, 69, 88, 116) 775 #define png_tIME PNG_U32(116, 73, 77, 69) 776 #define png_tRNS PNG_U32(116, 82, 78, 83) 777 #define png_zTXt PNG_U32(122, 84, 88, 116) 782 #define PNG_CHUNK_FROM_STRING(s)\ 783 PNG_U32(0xff&(s)[0], 0xff&(s)[1], 0xff&(s)[2], 0xff&(s)[3]) 789 #define PNG_STRING_FROM_CHUNK(s,c)\ 790 (void)(((char*)(s))[0]=(char)((c)>>24), ((char*)(s))[1]=(char)((c)>>16),\ 791 ((char*)(s))[2]=(char)((c)>>8), ((char*)(s))[3]=(char)((c))) 794 #define PNG_CSTRING_FROM_CHUNK(s,c)\ 795 (void)(PNG_STRING_FROM_CHUNK(s,c), ((char*)(s))[4] = 0) 798 #define PNG_CHUNK_ANCILLARY(c) (1 & ((c) >> 29)) 799 #define PNG_CHUNK_CRITICAL(c) (!PNG_CHUNK_ANCILLARY(c)) 800 #define PNG_CHUNK_PRIVATE(c) (1 & ((c) >> 21)) 801 #define PNG_CHUNK_RESERVED(c) (1 & ((c) >> 13)) 802 #define PNG_CHUNK_SAFE_TO_COPY(c) (1 & ((c) >> 5)) 805 #define PNG_GAMMA_MAC_OLD 151724 806 #define PNG_GAMMA_MAC_INVERSE 65909 807 #define PNG_GAMMA_sRGB_INVERSE 45455 812 #ifndef PNG_VERSION_INFO_ONLY 820 #if PNG_ZLIB_VERNUM != 0 && PNG_ZLIB_VERNUM != ZLIB_VERNUM 821 # error ZLIB_VERNUM != PNG_ZLIB_VERNUM \ 822 "-I (include path) error: see the notes in pngpriv.h" 841 #if defined(PNG_SIMPLIFIED_READ_SUPPORTED) ||\ 842 defined(PNG_SIMPLIFIED_WRITE_SUPPORTED) 843 #ifdef PNG_SIMPLIFIED_READ_SUPPORTED 853 #define PNG_sRGB_FROM_LINEAR(linear) ((png_byte)((png_sRGB_base[(linear)>>15] +\ 854 ((((linear)&0x7fff)*png_sRGB_delta[(linear)>>15])>>12)) >> 8)) 873 #define PNG_UNEXPECTED_ZLIB_RETURN (-7) 880 #ifdef PNG_WRITE_SUPPORTED 882 png_compression_bufferp *list),
PNG_EMPTY);
886 #if defined(PNG_FLOATING_POINT_SUPPORTED) && \ 887 !defined(PNG_FIXED_POINT_MACRO_SUPPORTED) && \ 888 (defined(PNG_gAMA_SUPPORTED) || defined(PNG_cHRM_SUPPORTED) || \ 889 defined(PNG_sCAL_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) || \ 890 defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)) || \ 891 (defined(PNG_sCAL_SUPPORTED) && \ 892 defined(PNG_FLOATING_ARITHMETIC_SUPPORTED)) 910 #if defined(PNG_TEXT_SUPPORTED) || defined(PNG_sPLT_SUPPORTED) ||\ 911 defined(PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED) 960 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 968 #ifdef PNG_WRITE_FLUSH_SUPPORTED 969 # ifdef PNG_STDIO_SUPPORTED 1012 #ifdef PNG_WRITE_FLUSH_SUPPORTED 1022 png_uint_32 width, png_uint_32 height,
int bit_depth,
int color_type,
1023 int compression_method,
int filter_method,
int interlace_method),
PNG_EMPTY);
1034 #ifdef PNG_WRITE_gAMA_SUPPORTED 1039 #ifdef PNG_WRITE_sBIT_SUPPORTED 1044 #ifdef PNG_WRITE_cHRM_SUPPORTED 1050 #ifdef PNG_WRITE_sRGB_SUPPORTED 1055 #ifdef PNG_WRITE_iCCP_SUPPORTED 1064 #ifdef PNG_WRITE_sPLT_SUPPORTED 1069 #ifdef PNG_WRITE_tRNS_SUPPORTED 1075 #ifdef PNG_WRITE_bKGD_SUPPORTED 1080 #ifdef PNG_WRITE_hIST_SUPPORTED 1086 #ifdef PNG_WRITE_tEXt_SUPPORTED 1091 #ifdef PNG_WRITE_zTXt_SUPPORTED 1096 #ifdef PNG_WRITE_iTXt_SUPPORTED 1102 #ifdef PNG_TEXT_SUPPORTED 1107 #ifdef PNG_WRITE_oFFs_SUPPORTED 1109 png_int_32 x_offset, png_int_32 y_offset,
int unit_type),
PNG_EMPTY);
1112 #ifdef PNG_WRITE_pCAL_SUPPORTED 1114 png_charp purpose, png_int_32 X0, png_int_32 X1,
int type,
int nparams,
1118 #ifdef PNG_WRITE_pHYs_SUPPORTED 1120 png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit,
1124 #ifdef PNG_WRITE_tIME_SUPPORTED 1129 #ifdef PNG_WRITE_sCAL_SUPPORTED 1165 #ifndef PNG_USE_COMPILE_TIME_MASKS 1166 # define PNG_USE_COMPILE_TIME_MASKS 1 1171 #ifdef PNG_READ_INTERLACING_SUPPORTED 1184 #ifdef PNG_WRITE_INTERLACING_SUPPORTED 1215 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED 1237 #ifdef PNG_READ_TRANSFORMS_SUPPORTED 1244 #if defined(PNG_WRITE_FILLER_SUPPORTED) || \ 1245 defined(PNG_READ_STRIP_ALPHA_SUPPORTED) 1250 #ifdef PNG_16BIT_SUPPORTED 1251 #if defined(PNG_READ_SWAP_SUPPORTED) || defined(PNG_WRITE_SWAP_SUPPORTED) 1257 #if defined(PNG_READ_PACKSWAP_SUPPORTED) || \ 1258 defined(PNG_WRITE_PACKSWAP_SUPPORTED) 1263 #if defined(PNG_READ_INVERT_SUPPORTED) || defined(PNG_WRITE_INVERT_SUPPORTED) 1268 #if defined(PNG_READ_BGR_SUPPORTED) || defined(PNG_WRITE_BGR_SUPPORTED) 1285 #ifdef PNG_READ_bKGD_SUPPORTED 1290 #ifdef PNG_READ_cHRM_SUPPORTED 1295 #ifdef PNG_READ_gAMA_SUPPORTED 1300 #ifdef PNG_READ_hIST_SUPPORTED 1305 #ifdef PNG_READ_iCCP_SUPPORTED 1310 #ifdef PNG_READ_iTXt_SUPPORTED 1315 #ifdef PNG_READ_oFFs_SUPPORTED 1320 #ifdef PNG_READ_pCAL_SUPPORTED 1325 #ifdef PNG_READ_pHYs_SUPPORTED 1330 #ifdef PNG_READ_sBIT_SUPPORTED 1335 #ifdef PNG_READ_sCAL_SUPPORTED 1340 #ifdef PNG_READ_sPLT_SUPPORTED 1345 #ifdef PNG_READ_sRGB_SUPPORTED 1350 #ifdef PNG_READ_tEXt_SUPPORTED 1355 #ifdef PNG_READ_tIME_SUPPORTED 1360 #ifdef PNG_READ_tRNS_SUPPORTED 1365 #ifdef PNG_READ_zTXt_SUPPORTED 1381 #if defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED) ||\ 1382 defined(PNG_HANDLE_AS_UNKNOWN_SUPPORTED) 1391 #ifdef PNG_READ_TRANSFORMS_SUPPORTED 1395 #ifdef PNG_WRITE_TRANSFORMS_SUPPORTED 1400 #ifdef PNG_READ_TRANSFORMS_SUPPORTED 1405 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED 1438 # ifdef PNG_READ_tEXt_SUPPORTED 1444 # ifdef PNG_READ_zTXt_SUPPORTED 1450 # ifdef PNG_READ_iTXt_SUPPORTED 1460 #ifdef PNG_GAMMA_SUPPORTED 1480 #ifdef PNG_COLORSPACE_SUPPORTED 1492 #ifdef PNG_sRGB_SUPPORTED 1502 #ifdef PNG_iCCP_SUPPORTED 1512 png_uint_32 profile_length),
PNG_EMPTY);
1515 png_uint_32 profile_length,
1520 png_uint_32 profile_length,
1522 #ifdef PNG_sRGB_SUPPORTED 1533 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED 1542 png_uint_32 width, png_uint_32 height,
int bit_depth,
1543 int color_type,
int interlace_type,
int compression_type,
1547 #if defined(PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED) || \ 1548 defined(PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED) 1553 #if defined(PNG_FLOATING_POINT_SUPPORTED) && defined(PNG_ERROR_TEXT_SUPPORTED) 1568 #if defined(PNG_WARNINGS_SUPPORTED) || defined(PNG_TIME_RFC1123_SUPPORTED) 1578 #define PNG_FORMAT_NUMBER(buffer,format,number) \ 1579 png_format_number(buffer, buffer + (sizeof buffer), format, number) 1582 #define PNG_NUMBER_BUFFER_SIZE 24 1587 #define PNG_NUMBER_FORMAT_u 1 1588 #define PNG_NUMBER_FORMAT_02u 2 1589 #define PNG_NUMBER_FORMAT_d 1 1590 #define PNG_NUMBER_FORMAT_02d 2 1591 #define PNG_NUMBER_FORMAT_x 3 1592 #define PNG_NUMBER_FORMAT_02x 4 1593 #define PNG_NUMBER_FORMAT_fixed 5 1596 #ifdef PNG_WARNINGS_SUPPORTED 1598 # define PNG_WARNING_PARAMETER_SIZE 32 1599 # define PNG_WARNING_PARAMETER_COUNT 8 1619 (png_warning_parameters
p,
int number,
int format, png_int_32 value),
1630 #ifdef PNG_BENIGN_ERRORS_SUPPORTED 1657 # define png_app_warning(pp,s) png_warning(pp,s) 1658 # define png_app_error(pp,s) png_error(pp,s) 1672 #define PNG_CHUNK_WARNING 0 1673 #define PNG_CHUNK_WRITE_ERROR 1 1674 #define PNG_CHUNK_ERROR 2 1679 #if defined(PNG_sCAL_SUPPORTED) 1685 #define PNG_sCAL_MAX_DIGITS (PNG_sCAL_PRECISION+1+1+10) 1687 #ifdef PNG_FLOATING_POINT_SUPPORTED 1693 #ifdef PNG_FIXED_POINT_SUPPORTED 1699 #if defined(PNG_sCAL_SUPPORTED) || defined(PNG_pCAL_SUPPORTED) 1730 #define PNG_FP_INTEGER 0 1731 #define PNG_FP_FRACTION 1 1732 #define PNG_FP_EXPONENT 2 1733 #define PNG_FP_STATE 3 1734 #define PNG_FP_SAW_SIGN 4 1735 #define PNG_FP_SAW_DIGIT 8 1736 #define PNG_FP_SAW_DOT 16 1737 #define PNG_FP_SAW_E 32 1738 #define PNG_FP_SAW_ANY 60 1742 #define PNG_FP_WAS_VALID 64 1743 #define PNG_FP_NEGATIVE 128 1744 #define PNG_FP_NONZERO 256 1745 #define PNG_FP_STICKY 448 1750 #define PNG_FP_INVALID 512 1755 #define PNG_FP_MAYBE 0 1763 #define PNG_FP_NZ_MASK (PNG_FP_SAW_DIGIT | PNG_FP_NEGATIVE | PNG_FP_NONZERO) 1765 #define PNG_FP_Z_MASK (PNG_FP_SAW_DIGIT | PNG_FP_NONZERO) 1768 #define PNG_FP_IS_ZERO(state) (((state) & PNG_FP_Z_MASK) == PNG_FP_SAW_DIGIT) 1769 #define PNG_FP_IS_POSITIVE(state) (((state) & PNG_FP_NZ_MASK) == PNG_FP_Z_MASK) 1770 #define PNG_FP_IS_NEGATIVE(state) (((state) & PNG_FP_NZ_MASK) == PNG_FP_NZ_MASK) 1800 #if defined(PNG_GAMMA_SUPPORTED) ||\ 1801 defined(PNG_INCH_CONVERSIONS_SUPPORTED) || defined(PNG_READ_pHYs_SUPPORTED) 1809 png_int_32 multiplied_by, png_int_32 divided_by),
PNG_EMPTY);
1812 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_INCH_CONVERSIONS_SUPPORTED) 1819 #ifdef PNG_GAMMA_SUPPORTED 1827 #ifdef PNG_READ_GAMMA_SUPPORTED 1841 #ifdef PNG_READ_GAMMA_SUPPORTED 1862 #if defined(PNG_SIMPLIFIED_READ_SUPPORTED) ||\ 1863 defined(PNG_SIMPLIFIED_WRITE_SUPPORTED) 1882 # define png_control_jmp_buf(pc) (((jmp_buf*)((pc)->error_buf))[0]) 1884 # define png_control_jmp_buf(pc) ((pc)->error_buf) 1894 #ifdef PNG_WARNINGS_SUPPORTED 1898 # define png_safe_warning 0 1910 #ifndef PNG_SIMPLIFIED_READ_SUPPORTED 1922 #ifdef PNG_FILTER_OPTIMIZATIONS const png_byte png_sRGB_delta[512]
Definition: png.c:4366
png_charp png_format_number(png_const_charp start, png_charp end, int format, png_alloc_size_t number)
Definition: pngerror.c:133
void png_write_IEND(png_structrp png_ptr)
Definition: pngwutil.c:1148
png_voidp png_malloc_array(png_const_structrp png_ptr, int nelements, size_t element_size)
Definition: pngmem.c:120
void png_push_read_IDAT(png_structrp png_ptr)
Definition: pngpread.c:618
void png_write_sPLT(png_structrp png_ptr, png_const_sPLT_tp palette)
Definition: pngwutil.c:1254
void png_do_read_interlace(png_row_infop row_info, png_bytep row, int pass, png_uint_32 transformations)
Definition: pngrutil.c:3486
void png_handle_cHRM(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1179
void png_combine_row(png_const_structrp png_ptr, png_bytep row, int display)
Definition: pngrutil.c:3002
uint8_t image[110000000]
Definition: gige_snap.cpp:38
void png_write_tIME(png_structrp png_ptr, png_const_timep mod_time)
Definition: pngwutil.c:1916
void png_reset_crc(png_structrp png_ptr)
Definition: png.c:102
png_const_bytep memory
Definition: pngpriv.h:1871
void * png_voidp
Definition: pngconf.h:598
void png_push_read_zTXt(png_structrp png_ptr, png_inforp info_ptr)
void png_handle_unknown(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length, int keep)
Definition: pngrutil.c:2765
void png_push_handle_zTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
int png_check_fp_string(png_const_charp string, png_size_t size)
Definition: png.c:2770
#define PNG_NORETURN
Definition: pngconf.h:458
const char * png_const_charp
Definition: pngconf.h:611
void png_flush(png_structrp png_ptr)
Definition: pngwio.c:71
void png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
Definition: pngwio.c:51
void png_init_filter_functions_neon(png_structp png_ptr, unsigned int bpp)
void png_handle_zTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2447
void png_push_restore_buffer(png_structrp png_ptr, png_bytep buffer, png_size_t buffer_length)
Definition: pngpread.c:608
void png_do_write_interlace(png_row_infop row_info, png_bytep row, int pass)
Definition: pngwutil.c:2141
void png_read_filter_row_avg3_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngpriv.h:1865
const png_uint_16p * png_const_uint_16pp
Definition: pngpriv.h:838
void png_push_have_end(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:1116
void png_handle_pCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2098
void png_handle_hIST(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1954
void png_write_data(png_structrp png_ptr, png_const_bytep data, png_size_t length)
Definition: pngwio.c:33
void png_write_pCAL(png_structrp png_ptr, png_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_const_charp units, png_charpp params)
Definition: pngwutil.c:1797
#define PNGCBAPI
Definition: pngconf.h:280
png_fixed_point png_fixed(png_const_structrp png_ptr, double fp, png_const_charp text)
Definition: png.c:3219
png_structp png_create_png_struct(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: png.c:225
void png_handle_pHYs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2005
png_byte * png_bytep
Definition: pngconf.h:600
int png_gamma_significant(png_fixed_point gamma_value)
Definition: png.c:3400
void png_icc_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
Definition: png.c:2356
void png_handle_gAMA(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1061
void png_handle_bKGD(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1854
png_byte png_gamma_8bit_correct(unsigned int value, png_fixed_point gamma_value)
Definition: png.c:3752
void png_push_save_buffer(png_structrp png_ptr)
Definition: pngpread.c:549
void png_default_flush(png_structp png_ptr)
Definition: pngwio.c:79
char * png_charp
Definition: pngconf.h:610
png_voidp(* png_malloc_ptr)(png_structp, png_alloc_size_t)
Definition: png.h:1006
Definition: pngstruct.h:144
string output
Definition: agent-2-0.cpp:56
void png_read_IDAT_data(png_structrp png_ptr, png_bytep output, png_alloc_size_t avail_out)
Definition: pngrutil.c:3942
void png_write_hIST(png_structrp png_ptr, png_const_uint_16p hist, int num_hist)
Definition: pngwutil.c:1552
Byte * voidpf
Definition: zconf.h:390
int png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile, int color_type)
Definition: png.c:1942
unsigned long uLong
Definition: zconf.h:371
void png_free_jmpbuf(png_structrp png_ptr)
Definition: pngerror.c:666
void png_handle_sRGB(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1251
void png_app_warning(png_const_structrp png_ptr, png_const_charp message)
Definition: pngerror.c:392
void png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info)
Definition: pngtrans.c:684
#define PNG_INTERNAL_CALLBACK(type, name, args, attributes)
Definition: pngpriv.h:262
void png_write_iTXt(png_structrp png_ptr, int compression, png_const_charp key, png_const_charp lang, png_const_charp lang_key, png_const_charp text)
Definition: pngwutil.c:1677
void png_fixed_error(png_const_structrp png_ptr, png_const_charp name)
Definition: pngerror.c:572
void png_write_sBIT(png_structrp png_ptr, png_const_color_8p sbit, int color_type)
Definition: pngwutil.c:1339
void png_handle_tIME(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2320
void png_check_chunk_name(png_structrp png_ptr, png_uint_32 chunk_name)
Definition: pngrutil.c:2977
void png_read_sig(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngrutil.c:115
#define PNG_ALLOCATED
Definition: pngconf.h:461
int png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ, int preferred)
Definition: png.c:1717
#define PNG_WARNING_PARAMETER_COUNT
Definition: pngpriv.h:1599
long b
Definition: jpegint.h:371
void png_handle_tEXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2366
void png_write_cHRM_fixed(png_structrp png_ptr, const png_xy *xy)
Definition: pngwutil.c:1398
png_uint_16 intent
Definition: png.c:2177
void png_write_tRNS(png_structrp png_ptr, png_const_bytep trans, png_const_color_16p values, int number, int color_type)
Definition: pngwutil.c:1424
void png_write_bKGD(png_structrp png_ptr, png_const_color_16p values, int color_type)
Definition: pngwutil.c:1490
void png_handle_oFFs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2051
void png_push_read_iTXt(png_structrp png_ptr, png_inforp info_ptr)
void png_app_error(png_const_structrp png_ptr, png_const_charp message)
Definition: pngerror.c:405
void png_push_check_crc(png_structrp png_ptr)
png_uint_32 png_read_chunk_header(png_structrp png_ptr)
Definition: pngrutil.c:150
png_size_t png_alloc_size_t
Definition: pngconf.h:578
void png_write_oFFs(png_structrp png_ptr, png_int_32 x_offset, png_int_32 y_offset, int unit_type)
Definition: pngwutil.c:1777
void png_read_filter_row_paeth4_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
void png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA)
Definition: png.c:1074
int png_icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length)
Definition: png.c:1931
int png_crc_finish(png_structrp png_ptr, png_uint_32 skip)
Definition: pngrutil.c:202
png_voidp png_malloc_base(png_const_structrp png_ptr, png_alloc_size_t size)
Definition: pngmem.c:69
static double * p
Definition: gauss_jackson_test.cpp:42
void() png_safe_error(png_structp png_ptr, png_const_charp error_message)
Definition: pngerror.c:886
int png_chunk_unknown_handling(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition: png.c:919
int png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile)
Definition: png.c:2125
void png_read_filter_row_sub3_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
int png_colorspace_set_ICC(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile, int color_type)
Definition: png.c:2371
void png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, png_size_t size, double fp, unsigned int precision)
Definition: png.c:2826
void png_formatted_warning(png_const_structrp png_ptr, png_warning_parameters p, png_const_charp message)
Definition: pngerror.c:284
png_uint_16 png_gamma_correct(png_structrp png_ptr, unsigned int value, png_fixed_point gamma_value)
Definition: png.c:3835
int png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred)
Definition: png.c:1679
void png_push_have_row(png_structrp png_ptr, png_bytep row)
Definition: pngpread.c:1123
void png_write_start_row(png_structrp png_ptr)
Definition: pngwutil.c:1943
void png_read_filter_row_up_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
png_voidp error_buf
Definition: pngpriv.h:1869
void(* png_error_ptr)(png_structp, png_const_charp)
Definition: png.h:915
static char buffer[255]
Definition: propagator_simple.cpp:60
void png_do_write_transformations(png_structrp png_ptr, png_row_infop row_info)
Definition: pngwtran.c:500
void png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
Definition: pngrio.c:50
void(* png_free_ptr)(png_structp, png_voidp)
Definition: png.h:1007
png_uint_16 png_gamma_16bit_correct(unsigned int value, png_fixed_point gamma_value)
Definition: png.c:3800
void png_read_filter_row_paeth3_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
int png_safe_execute(png_imagep image, int(*function)(png_voidp), png_voidp arg)
Definition: pngerror.c:936
void png_handle_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1751
void png_write_IHDR(png_structrp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_method, int filter_method, int interlace_method)
Definition: pngwutil.c:757
uint8_t message[300]
Definition: kpc9612p_send.cpp:36
void png_process_IDAT_data(png_structrp png_ptr, png_bytep buffer, png_size_t buffer_length)
Definition: pngpread.c:710
void png_build_gamma_table(png_structrp png_ptr, int bit_depth)
Definition: png.c:4084
const png_byte * png_const_bytep
Definition: pngconf.h:601
png_size_t size
Definition: pngpriv.h:1872
void png_colorspace_sync(png_const_structrp png_ptr, png_inforp info_ptr)
Definition: png.c:1175
const png_uint_16 * png_const_uint_16p
Definition: pngconf.h:607
string name
Definition: cubesat2obj.cpp:6
void png_write_find_filter(png_structrp png_ptr, png_row_infop row_info)
Definition: pngwutil.c:2326
void png_push_have_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:1109
png_fixed_point png_reciprocal(png_fixed_point a)
Definition: png.c:3379
png_voidp png_realloc_array(png_const_structrp png_ptr, png_const_voidp array, int old_elements, int add_elements, size_t element_size)
Definition: pngmem.c:130
void png_zfree(voidpf png_ptr, voidpf ptr)
Definition: png.c:93
void png_write_sCAL_s(png_structrp png_ptr, int unit, png_const_charp width, png_const_charp height)
Definition: pngwutil.c:1862
png_fixed_point png_reciprocal2(png_fixed_point a, png_fixed_point b)
Definition: png.c:3434
void png_handle_sBIT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1099
void png_do_swap(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:318
int png_crc_error(png_structrp png_ptr)
Definition: pngrutil.c:242
char ** png_charpp
Definition: pngconf.h:633
int png_image_error(png_imagep image, png_const_charp error_message)
Definition: png.c:4483
void png_do_packswap(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:454
const void * png_const_voidp
Definition: pngconf.h:599
void png_push_handle_iTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
png_structp png_ptr
Definition: pngpriv.h:1867
void png_write_gAMA_fixed(png_structrp png_ptr, png_fixed_point file_gamma)
Definition: pngwutil.c:1159
void png_read_data(png_structrp png_ptr, png_bytep data, png_size_t length)
Definition: pngrio.c:32
Definition: eci2kep_test.cpp:33
void png_crc_read(png_structrp png_ptr, png_bytep buf, png_uint_32 length)
Definition: pngrutil.c:187
void png_push_handle_unknown(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
void png_read_start_row(png_structrp png_ptr)
Definition: pngrutil.c:4184
void png_image_free(png_imagep image)
Definition: png.c:4467
#define PNG_EMPTY
Definition: pngconf.h:330
png_fixed_point png_muldiv_warn(png_const_structrp png_ptr, png_fixed_point a, png_int_32 multiplied_by, png_int_32 divided_by)
Definition: png.c:3363
void png_warning_parameter_signed(png_warning_parameters p, int number, int format, png_int_32 value)
Definition: pngerror.c:263
void png_read_transform_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngrtran.c:1924
void png_do_invert(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:261
unsigned int owned_file
Definition: pngpriv.h:1875
void png_write_finish_row(png_structrp png_ptr)
Definition: pngwutil.c:2050
int png_user_version_check(png_structrp png_ptr, png_const_charp user_png_ver)
Definition: png.c:166
void png_write_sRGB(png_structrp png_ptr, int intent)
Definition: pngwutil.c:1174
void png_warning_parameter_unsigned(png_warning_parameters p, int number, int format, png_alloc_size_t value)
Definition: pngerror.c:255
void png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, png_size_t length)
Definition: png.c:114
void png_read_finish_IDAT(png_structrp png_ptr)
Definition: pngrutil.c:4071
png_uint_32 length
Definition: png.c:2173
void png_read_filter_row_sub4_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
void png_read_push_finish_row(png_structrp png_ptr)
Definition: pngpread.c:1046
void png_warning_parameter(png_warning_parameters p, int number, png_const_charp string)
Definition: pngerror.c:247
size_t png_safecat(png_charp buffer, size_t bufsize, size_t pos, png_const_charp string)
Definition: pngerror.c:112
png_uint_16 * png_uint_16p
Definition: pngconf.h:606
void png_push_read_sig(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:159
void png_push_crc_skip(png_structrp png_ptr, png_uint_32 length)
Definition: pngpread.c:443
void png_colorspace_sync_info(png_const_structrp png_ptr, png_inforp info_ptr)
Definition: png.c:1129
void png_read_filter_row_avg4_neon(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
void png_write_zTXt(png_structrp png_ptr, png_const_charp key, png_const_charp text, int compression)
Definition: pngwutil.c:1626
void png_push_read_end(png_structrp png_ptr, png_inforp info_ptr)
void png_handle_IEND(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1041
char png_warning_parameters[8][32]
Definition: pngpriv.h:1605
void png_handle_iTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2556
void() png_safe_warning(png_structp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:921
png_fixed_point * png_fixed_point_p
Definition: pngconf.h:612
void png_push_read_tEXt(png_structrp png_ptr, png_inforp info_ptr)
png_int_32 png_fixed_point
Definition: pngconf.h:595
png_infop info_ptr
Definition: pngpriv.h:1868
void png_check_IHDR(png_const_structrp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type)
Definition: png.c:2476
void png_push_fill_buffer(png_structp png_ptr, png_bytep buffer, png_size_t length)
Definition: pngpread.c:506
void png_free_buffer_list(png_structrp png_ptr, png_compression_bufferp *list)
Definition: pngwutil.c:440
const png_uint_16 png_sRGB_base[512]
Definition: png.c:4298
unsigned int for_write
Definition: pngpriv.h:1874
FILE * fp
Definition: rw_test.cpp:38
void png_write_iCCP(png_structrp png_ptr, png_const_charp name, png_const_bytep profile)
Definition: pngwutil.c:1192
void png_destroy_gamma_table(png_structrp png_ptr)
Definition: png.c:4024
size_t png_size_t
Definition: pngconf.h:543
int png_set_text_2(png_const_structrp png_ptr, png_inforp info_ptr, png_const_textp text_ptr, int num_text)
Definition: pngset.c:699
int png_muldiv(png_fixed_point_p res, png_fixed_point a, png_int_32 multiplied_by, png_int_32 divided_by)
Definition: png.c:3243
void png_colorspace_set_rgb_coefficients(png_structrp png_ptr)
Definition: png.c:2398
void png_handle_IHDR(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:793
char buf[128]
Definition: rw_test.cpp:40
void png_zstream_error(png_structrp png_ptr, int ret)
Definition: png.c:958
void png_write_tEXt(png_structrp png_ptr, png_const_charp key, png_const_charp text, png_size_t text_len)
Definition: pngwutil.c:1583
void png_do_bgr(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:604
void png_handle_sPLT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1574
#define PNG_WARNING_PARAMETER_SIZE
Definition: pngpriv.h:1598
const png_uint_16 png_sRGB_table[256]
Definition: png.c:4258
void png_ascii_from_fixed(png_const_structrp png_ptr, png_charp ascii, png_size_t size, png_fixed_point fp)
Definition: png.c:3141
void png_chunk_report(png_const_structrp png_ptr, png_const_charp message, int error)
Definition: pngerror.c:531
void png_push_crc_finish(png_structrp png_ptr)
Definition: pngpread.c:450
png_size_t * png_size_tp
Definition: pngconf.h:614
void png_push_handle_tEXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
void png_read_finish_row(png_structrp png_ptr)
Definition: pngrutil.c:4119
void png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
Definition: pngtrans.c:494
void png_handle_sCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2227
void png_compress_IDAT(png_structrp png_ptr, png_const_bytep row_data, png_alloc_size_t row_data_length, int flush)
Definition: pngwutil.c:1008
void png_write_pHYs(png_structrp png_ptr, png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit, int unit_type)
Definition: pngwutil.c:1892
int png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent)
Definition: png.c:1833
void png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info)
Definition: pngrtran.c:4701
#define PNG_INTERNAL_FUNCTION(type, name, args, attributes)
Definition: pngpriv.h:257
void png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1301
struct png_control png_control
void png_destroy_png_struct(png_structrp png_ptr)
Definition: pngmem.c:25
void png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:192
void png_handle_PLTE(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:867
#define PNG_INTERNAL_DATA(type, name, array)
Definition: pngpriv.h:253
void png_push_process_row(png_structrp png_ptr)
Definition: pngpread.c:817
png_uint_32 adler
Definition: png.c:2173
unsigned int uInt
Definition: zconf.h:370
void png_read_filter_row(png_structrp pp, png_row_infop row_info, png_bytep row, png_const_bytep prev_row, int filter)
Definition: pngrutil.c:3924
void png_process_some_data(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:113
void png_init_read_transformations(png_structrp png_ptr)
Definition: pngrtran.c:1275
void png_write_PLTE(png_structrp png_ptr, png_const_colorp palette, png_uint_32 num_pal)
Definition: pngwutil.c:922
int png_check_fp_number(png_const_charp string, png_size_t size, int *statep, png_size_tp whereami)
Definition: png.c:2643
voidpf png_zalloc(voidpf png_ptr, uInt items, uInt size)
Definition: png.c:73