Lines 974-979
Link Here
|
974 |
png_fixed_point int_y_blue; |
974 |
png_fixed_point int_y_blue; |
975 |
#endif |
975 |
#endif |
976 |
|
976 |
|
|
|
977 |
#if defined(PNG_APNG_SUPPORTED) |
978 |
png_uint_32 num_frames; /* including default image */ |
979 |
png_uint_32 num_plays; |
980 |
png_uint_32 next_frame_width; |
981 |
png_uint_32 next_frame_height; |
982 |
png_uint_32 next_frame_x_offset; |
983 |
png_uint_32 next_frame_y_offset; |
984 |
png_uint_16 next_frame_delay_num; |
985 |
png_uint_16 next_frame_delay_den; |
986 |
png_byte next_frame_dispose_op; |
987 |
png_byte next_frame_blend_op; |
988 |
#endif |
989 |
|
977 |
} png_info; |
990 |
} png_info; |
978 |
|
991 |
|
979 |
typedef png_info FAR * png_infop; |
992 |
typedef png_info FAR * png_infop; |
Lines 1075-1080
Link Here
|
1075 |
#define PNG_INFO_sPLT 0x2000 /* ESR, 1.0.6 */ |
1088 |
#define PNG_INFO_sPLT 0x2000 /* ESR, 1.0.6 */ |
1076 |
#define PNG_INFO_sCAL 0x4000 /* ESR, 1.0.6 */ |
1089 |
#define PNG_INFO_sCAL 0x4000 /* ESR, 1.0.6 */ |
1077 |
#define PNG_INFO_IDAT 0x8000L /* ESR, 1.0.6 */ |
1090 |
#define PNG_INFO_IDAT 0x8000L /* ESR, 1.0.6 */ |
|
|
1091 |
#define PNG_INFO_acTL 0x10000L |
1092 |
#define PNG_INFO_fcTL 0x20000L |
1078 |
|
1093 |
|
1079 |
/* This is used for the transformation routines, as some of them |
1094 |
/* This is used for the transformation routines, as some of them |
1080 |
* change these values for the row. It also should enable using |
1095 |
* change these values for the row. It also should enable using |
Lines 1115-1120
Link Here
|
1115 |
typedef void (PNGAPI *png_progressive_end_ptr) PNGARG((png_structp, png_infop)); |
1130 |
typedef void (PNGAPI *png_progressive_end_ptr) PNGARG((png_structp, png_infop)); |
1116 |
typedef void (PNGAPI *png_progressive_row_ptr) PNGARG((png_structp, png_bytep, |
1131 |
typedef void (PNGAPI *png_progressive_row_ptr) PNGARG((png_structp, png_bytep, |
1117 |
png_uint_32, int)); |
1132 |
png_uint_32, int)); |
|
|
1133 |
#if defined(PNG_APNG_SUPPORTED) |
1134 |
typedef void (PNGAPI *png_progressive_frame_ptr) PNGARG((png_structp, |
1135 |
png_uint_32)); |
1136 |
#endif |
1118 |
#endif |
1137 |
#endif |
1119 |
|
1138 |
|
1120 |
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ |
1139 |
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \ |
Lines 1446-1451
Link Here
|
1446 |
png_uint_32 user_height_max; |
1465 |
png_uint_32 user_height_max; |
1447 |
#endif |
1466 |
#endif |
1448 |
|
1467 |
|
|
|
1468 |
#if defined(PNG_APNG_SUPPORTED) |
1469 |
png_uint_32 apng_flags; |
1470 |
png_uint_32 next_seq_num; /* next fcTL/fdAT chunk sequence number */ |
1471 |
png_uint_32 first_frame_width; |
1472 |
png_uint_32 first_frame_height; |
1473 |
|
1474 |
#if defined(PNG_READ_APNG_SUPPORTED) |
1475 |
png_uint_32 num_frames_read; /* incremented after all image data of */ |
1476 |
/* a frame is read */ |
1477 |
#ifdef PNG_PROGRESSIVE_READ_SUPPORTED |
1478 |
png_progressive_frame_ptr frame_info_fn; /* frame info read callback */ |
1479 |
png_progressive_frame_ptr frame_end_fn; /* frame data read callback */ |
1480 |
#endif |
1481 |
#endif |
1482 |
|
1483 |
#if defined(PNG_WRITE_APNG_SUPPORTED) |
1484 |
png_uint_32 num_frames_to_write; |
1485 |
png_uint_32 num_frames_written; |
1486 |
#endif |
1487 |
#endif |
1488 |
|
1489 |
/* For png_struct.apng_flags: */ |
1490 |
#define PNG_FIRST_FRAME_HIDDEN 0x0001 |
1491 |
|
1492 |
/* dispose_op flags from inside fcTL */ |
1493 |
#define PNG_DISPOSE_OP_NONE 0x00 |
1494 |
#define PNG_DISPOSE_OP_BACKGROUND 0x01 |
1495 |
#define PNG_DISPOSE_OP_PREVIOUS 0x02 |
1496 |
|
1497 |
/* blend_op flags from inside fcTL */ |
1498 |
#define PNG_BLEND_OP_SOURCE 0x00 |
1499 |
#define PNG_BLEND_OP_OVER 0x01 |
1500 |
|
1449 |
/* New member added in libpng-1.0.25 and 1.2.17 */ |
1501 |
/* New member added in libpng-1.0.25 and 1.2.17 */ |
1450 |
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) |
1502 |
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) |
1451 |
/* storage for unknown chunk that the library doesn't recognize. */ |
1503 |
/* storage for unknown chunk that the library doesn't recognize. */ |
Lines 1779-1784
Link Here
|
1779 |
extern PNG_EXPORT(void,png_write_image) PNGARG((png_structp png_ptr, |
1831 |
extern PNG_EXPORT(void,png_write_image) PNGARG((png_structp png_ptr, |
1780 |
png_bytepp image)); |
1832 |
png_bytepp image)); |
1781 |
|
1833 |
|
|
|
1834 |
#if defined(PNG_WRITE_APNG_SUPPORTED) |
1835 |
extern PNG_EXPORT (void,png_write_frame_head) PNGARG((png_structp png_ptr, |
1836 |
png_infop png_info, png_bytepp row_pointers, |
1837 |
png_uint_32 width, png_uint_32 height, |
1838 |
png_uint_32 x_offset, png_uint_32 y_offset, |
1839 |
png_uint_16 delay_num, png_uint_16 delay_den, png_byte dispose_op, |
1840 |
png_byte blend_op)); |
1841 |
|
1842 |
extern PNG_EXPORT (void,png_write_frame_tail) PNGARG((png_structp png_ptr, |
1843 |
png_infop png_info)); |
1844 |
#endif |
1845 |
|
1782 |
/* writes the end of the PNG file. */ |
1846 |
/* writes the end of the PNG file. */ |
1783 |
extern PNG_EXPORT(void,png_write_end) PNGARG((png_structp png_ptr, |
1847 |
extern PNG_EXPORT(void,png_write_end) PNGARG((png_structp png_ptr, |
1784 |
png_infop info_ptr)); |
1848 |
png_infop info_ptr)); |
Lines 2027-2032
Link Here
|
2027 |
png_voidp progressive_ptr, |
2091 |
png_voidp progressive_ptr, |
2028 |
png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn, |
2092 |
png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn, |
2029 |
png_progressive_end_ptr end_fn)); |
2093 |
png_progressive_end_ptr end_fn)); |
|
|
2094 |
#if defined(PNG_READ_APNG_SUPPORTED) |
2095 |
extern PNG_EXPORT(void,png_set_progressive_frame_fn) PNGARG((png_structp png_ptr, |
2096 |
png_progressive_frame_ptr frame_info_fn, |
2097 |
png_progressive_frame_ptr frame_end_fn)); |
2098 |
#endif |
2030 |
|
2099 |
|
2031 |
/* returns the user pointer associated with the push read functions */ |
2100 |
/* returns the user pointer associated with the push read functions */ |
2032 |
extern PNG_EXPORT(png_voidp,png_get_progressive_ptr) |
2101 |
extern PNG_EXPORT(png_voidp,png_get_progressive_ptr) |
Lines 2464-2469
Link Here
|
2464 |
#endif |
2533 |
#endif |
2465 |
#endif /* PNG_sCAL_SUPPORTED || PNG_WRITE_sCAL_SUPPORTED */ |
2534 |
#endif /* PNG_sCAL_SUPPORTED || PNG_WRITE_sCAL_SUPPORTED */ |
2466 |
|
2535 |
|
|
|
2536 |
#if defined(PNG_APNG_SUPPORTED) |
2537 |
extern PNG_EXPORT(png_uint_32,png_get_acTL) PNGARG((png_structp png_ptr, |
2538 |
png_infop info_ptr, png_uint_32 *num_frames, png_uint_32 *num_plays)); |
2539 |
extern PNG_EXPORT(png_uint_32,png_set_acTL) PNGARG((png_structp png_ptr, |
2540 |
png_infop info_ptr, png_uint_32 num_frames, png_uint_32 num_plays)); |
2541 |
extern PNG_EXPORT(png_uint_32,png_get_num_frames) PNGARG((png_structp png_ptr, |
2542 |
png_infop info_ptr)); |
2543 |
extern PNG_EXPORT(png_uint_32,png_get_num_plays) |
2544 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2545 |
|
2546 |
extern PNG_EXPORT(png_uint_32,png_get_next_frame_fcTL) |
2547 |
PNGARG((png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, |
2548 |
png_uint_32 *height, png_uint_32 *x_offset, png_uint_32 *y_offset, |
2549 |
png_uint_16 *delay_num, png_uint_16 *delay_den, png_byte *dispose_op, |
2550 |
png_byte *blend_op)); |
2551 |
extern PNG_EXPORT(png_uint_32,png_set_next_frame_fcTL) |
2552 |
PNGARG((png_structp png_ptr, png_infop info_ptr, png_uint_32 width, |
2553 |
png_uint_32 height, png_uint_32 x_offset, png_uint_32 y_offset, |
2554 |
png_uint_16 delay_num, png_uint_16 delay_den, png_byte dispose_op, |
2555 |
png_byte blend_op)); |
2556 |
extern PNG_EXPORT(void,png_ensure_fcTL_is_valid) |
2557 |
PNGARG((png_structp png_ptr, |
2558 |
png_uint_32 width, png_uint_32 height, |
2559 |
png_uint_32 x_offset, png_uint_32 y_offset, |
2560 |
png_uint_16 delay_num, png_uint_16 delay_den, |
2561 |
png_byte dispose_op, png_byte blend_op)); |
2562 |
extern PNG_EXPORT(png_uint_32,png_get_next_frame_width) |
2563 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2564 |
extern PNG_EXPORT(png_uint_32,png_get_next_frame_height) |
2565 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2566 |
extern PNG_EXPORT(png_uint_32,png_get_next_frame_x_offset) |
2567 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2568 |
extern PNG_EXPORT(png_uint_32,png_get_next_frame_y_offset) |
2569 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2570 |
extern PNG_EXPORT(png_uint_16,png_get_next_frame_delay_num) |
2571 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2572 |
extern PNG_EXPORT(png_uint_16,png_get_next_frame_delay_den) |
2573 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2574 |
extern PNG_EXPORT(png_byte,png_get_next_frame_dispose_op) |
2575 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2576 |
extern PNG_EXPORT(png_byte,png_get_next_frame_blend_op) |
2577 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2578 |
extern PNG_EXPORT(png_byte,png_get_first_frame_is_hidden) |
2579 |
PNGARG((png_structp png_ptr, png_infop info_ptr)); |
2580 |
extern PNG_EXPORT(png_uint_32,png_set_first_frame_is_hidden) |
2581 |
PNGARG((png_structp png_ptr, png_infop info_ptr, png_byte is_hidden)); |
2582 |
#endif /* PNG_APNG_SUPPORTED */ |
2583 |
|
2584 |
#if defined(PNG_READ_APNG_SUPPORTED) |
2585 |
extern PNG_EXPORT(void,png_read_frame_head) PNGARG((png_structp png_ptr, |
2586 |
png_infop info_ptr)); |
2587 |
#endif |
2588 |
|
2467 |
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) |
2589 |
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED) |
2468 |
/* provide a list of chunks and how they are to be handled, if the built-in |
2590 |
/* provide a list of chunks and how they are to be handled, if the built-in |
2469 |
handling or default unknown chunk handling is not desired. Any chunks not |
2591 |
handling or default unknown chunk handling is not desired. Any chunks not |
Lines 2771-2776
Link Here
|
2771 |
#define PNG_BACKGROUND_IS_GRAY 0x800 |
2893 |
#define PNG_BACKGROUND_IS_GRAY 0x800 |
2772 |
#define PNG_HAVE_PNG_SIGNATURE 0x1000 |
2894 |
#define PNG_HAVE_PNG_SIGNATURE 0x1000 |
2773 |
#define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 /* Have another chunk after IDAT */ |
2895 |
#define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 /* Have another chunk after IDAT */ |
|
|
2896 |
#define PNG_HAVE_acTL 0x4000 |
2897 |
#define PNG_HAVE_fcTL 0x8000L |
2774 |
|
2898 |
|
2775 |
/* flags for the transformations the PNG library does on the image data */ |
2899 |
/* flags for the transformations the PNG library does on the image data */ |
2776 |
#define PNG_BGR 0x0001 |
2900 |
#define PNG_BGR 0x0001 |
Lines 2911-2916
Link Here
|
2911 |
#define PNG_tIME png_byte png_tIME[5] = {116, 73, 77, 69, '\0'} |
3035 |
#define PNG_tIME png_byte png_tIME[5] = {116, 73, 77, 69, '\0'} |
2912 |
#define PNG_tRNS png_byte png_tRNS[5] = {116, 82, 78, 83, '\0'} |
3036 |
#define PNG_tRNS png_byte png_tRNS[5] = {116, 82, 78, 83, '\0'} |
2913 |
#define PNG_zTXt png_byte png_zTXt[5] = {122, 84, 88, 116, '\0'} |
3037 |
#define PNG_zTXt png_byte png_zTXt[5] = {122, 84, 88, 116, '\0'} |
|
|
3038 |
#define PNG_acTL png_byte png_acTL[5] = { 97, 99, 84, 76, '\0'} |
3039 |
#define PNG_fcTL png_byte png_fcTL[5] = {102, 99, 84, 76, '\0'} |
3040 |
#define PNG_fdAT png_byte png_fdAT[5] = {102, 100, 65, 84, '\0'} |
2914 |
|
3041 |
|
2915 |
#ifdef PNG_USE_GLOBAL_ARRAYS |
3042 |
#ifdef PNG_USE_GLOBAL_ARRAYS |
2916 |
PNG_EXPORT_VAR (png_byte FARDATA) png_IHDR[5]; |
3043 |
PNG_EXPORT_VAR (png_byte FARDATA) png_IHDR[5]; |
Lines 2934-2939
Link Here
|
2934 |
PNG_EXPORT_VAR (png_byte FARDATA) png_tIME[5]; |
3061 |
PNG_EXPORT_VAR (png_byte FARDATA) png_tIME[5]; |
2935 |
PNG_EXPORT_VAR (png_byte FARDATA) png_tRNS[5]; |
3062 |
PNG_EXPORT_VAR (png_byte FARDATA) png_tRNS[5]; |
2936 |
PNG_EXPORT_VAR (png_byte FARDATA) png_zTXt[5]; |
3063 |
PNG_EXPORT_VAR (png_byte FARDATA) png_zTXt[5]; |
|
|
3064 |
PNG_EXPORT_VAR (png_byte FARDATA) png_acTL[5]; |
3065 |
PNG_EXPORT_VAR (png_byte FARDATA) png_fcTL[5]; |
3066 |
PNG_EXPORT_VAR (png_byte FARDATA) png_fdAT[5]; |
2937 |
#endif /* PNG_USE_GLOBAL_ARRAYS */ |
3067 |
#endif /* PNG_USE_GLOBAL_ARRAYS */ |
2938 |
|
3068 |
|
2939 |
#if defined(PNG_1_0_X) || defined (PNG_1_2_X) |
3069 |
#if defined(PNG_1_0_X) || defined (PNG_1_2_X) |
Lines 3208-3213
Link Here
|
3208 |
#endif |
3338 |
#endif |
3209 |
#endif |
3339 |
#endif |
3210 |
|
3340 |
|
|
|
3341 |
#if defined(PNG_WRITE_APNG_SUPPORTED) |
3342 |
PNG_EXTERN void png_write_acTL PNGARG((png_structp png_ptr, |
3343 |
png_uint_32 num_frames, png_uint_32 num_plays)); |
3344 |
|
3345 |
PNG_EXTERN void png_write_fcTL PNGARG((png_structp png_ptr, |
3346 |
png_uint_32 width, png_uint_32 height, |
3347 |
png_uint_32 x_offset, png_uint_32 y_offset, |
3348 |
png_uint_16 delay_num, png_uint_16 delay_den, |
3349 |
png_byte dispose_op, png_byte blend_op)); |
3350 |
#endif |
3351 |
|
3211 |
/* Called when finished processing a row of data */ |
3352 |
/* Called when finished processing a row of data */ |
3212 |
PNG_EXTERN void png_write_finish_row PNGARG((png_structp png_ptr)); |
3353 |
PNG_EXTERN void png_write_finish_row PNGARG((png_structp png_ptr)); |
3213 |
|
3354 |
|
Lines 3259-3264
Link Here
|
3259 |
PNG_EXTERN void png_read_transform_info PNGARG((png_structp png_ptr, |
3400 |
PNG_EXTERN void png_read_transform_info PNGARG((png_structp png_ptr, |
3260 |
png_infop info_ptr)); |
3401 |
png_infop info_ptr)); |
3261 |
|
3402 |
|
|
|
3403 |
#if defined(PNG_READ_APNG_SUPPORTED) |
3404 |
/* private, reset some things to become ready for reading next frame */ |
3405 |
PNG_EXTERN void png_read_reset PNGARG((png_structp png_ptr)); |
3406 |
PNG_EXTERN void png_read_reinit PNGARG((png_structp png_ptr, |
3407 |
png_infop info_ptr)); |
3408 |
PNG_EXTERN void png_progressive_read_reset PNGARG((png_structp png_ptr)); |
3409 |
#endif |
3410 |
#if defined(PNG_WRITE_APNG_SUPPORTED) |
3411 |
/* private, reset some things to become ready for writing next frame */ |
3412 |
PNG_EXTERN void png_write_reset PNGARG((png_structp png_ptr)); |
3413 |
PNG_EXTERN void png_write_reinit PNGARG((png_structp png_ptr, |
3414 |
png_infop info_ptr, png_uint_32 width, png_uint_32 height)); |
3415 |
#endif |
3416 |
|
3262 |
/* these are the functions that do the transformations */ |
3417 |
/* these are the functions that do the transformations */ |
3263 |
#if defined(PNG_READ_FILLER_SUPPORTED) |
3418 |
#if defined(PNG_READ_FILLER_SUPPORTED) |
3264 |
PNG_EXTERN void png_do_read_filler PNGARG((png_row_infop row_info, |
3419 |
PNG_EXTERN void png_do_read_filler PNGARG((png_row_infop row_info, |
Lines 3474-3479
Link Here
|
3474 |
png_uint_32 length)); |
3629 |
png_uint_32 length)); |
3475 |
#endif |
3630 |
#endif |
3476 |
|
3631 |
|
|
|
3632 |
#if defined(PNG_READ_APNG_SUPPORTED) |
3633 |
PNG_EXTERN void png_handle_acTL PNGARG((png_structp png_ptr, png_infop info_ptr, |
3634 |
png_uint_32 length)); |
3635 |
PNG_EXTERN void png_handle_fcTL PNGARG((png_structp png_ptr, png_infop info_ptr, |
3636 |
png_uint_32 length)); |
3637 |
PNG_EXTERN void png_have_info PNGARG((png_structp png_ptr, png_infop info_ptr)); |
3638 |
PNG_EXTERN void png_handle_fdAT PNGARG((png_structp png_ptr, png_infop info_ptr, |
3639 |
png_uint_32 length)); |
3640 |
PNG_EXTERN void png_ensure_sequence_number PNGARG((png_structp png_ptr, |
3641 |
png_uint_32 length)); |
3642 |
#endif |
3643 |
|
3477 |
PNG_EXTERN void png_handle_unknown PNGARG((png_structp png_ptr, |
3644 |
PNG_EXTERN void png_handle_unknown PNGARG((png_structp png_ptr, |
3478 |
png_infop info_ptr, png_uint_32 length)); |
3645 |
png_infop info_ptr, png_uint_32 length)); |
3479 |
|
3646 |
|