Prusa MINI Firmware overview
|
Go to the documentation of this file.
39 #if ZLIB_VERNUM < 0x1260
40 # define PNGZ_MSG_CAST(s) png_constcast(char*,s)
41 # define PNGZ_INPUT_CAST(b) png_constcast(png_bytep,b)
43 # define PNGZ_MSG_CAST(s) (s)
44 # define PNGZ_INPUT_CAST(b) (b)
56 # define ZLIB_IO_MAX ((uInt)-1)
59 #ifdef PNG_WRITE_SUPPORTED
61 typedef struct png_compression_buffer
63 struct png_compression_buffer *next;
65 } png_compression_buffer, *png_compression_bufferp;
67 #define PNG_COMPRESSION_BUFFER_SIZE(pp)\
68 (offsetof(png_compression_buffer, output) + (pp)->zbuffer_size)
79 #ifdef PNG_COLORSPACE_SUPPORTED
94 typedef struct png_XYZ
102 #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
112 typedef struct png_colorspace
114 #ifdef PNG_GAMMA_SUPPORTED
118 #ifdef PNG_COLORSPACE_SUPPORTED
119 png_xy end_points_xy;
120 png_XYZ end_points_XYZ;
128 typedef const png_colorspace *
PNG_RESTRICT png_const_colorspacerp;
131 #define PNG_COLORSPACE_HAVE_GAMMA 0x0001
132 #define PNG_COLORSPACE_HAVE_ENDPOINTS 0x0002
133 #define PNG_COLORSPACE_HAVE_INTENT 0x0004
134 #define PNG_COLORSPACE_FROM_gAMA 0x0008
135 #define PNG_COLORSPACE_FROM_cHRM 0x0010
136 #define PNG_COLORSPACE_FROM_sRGB 0x0020
137 #define PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB 0x0040
138 #define PNG_COLORSPACE_MATCHES_sRGB 0x0080
139 #define PNG_COLORSPACE_INVALID 0x8000
140 #define PNG_COLORSPACE_CANCEL(flags) (0xffff ^ (flags))
145 #ifdef PNG_SETJMP_SUPPORTED
146 jmp_buf jmp_buf_local;
147 png_longjmp_ptr longjmp_fn;
148 jmp_buf *jmp_buf_ptr;
152 #ifdef PNG_WARNINGS_SUPPORTED
153 png_error_ptr warning_fn;
160 #ifdef PNG_READ_USER_TRANSFORM_SUPPORTED
161 png_user_transform_ptr read_user_transform_fn;
164 #ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTED
165 png_user_transform_ptr write_user_transform_fn;
169 #ifdef PNG_USER_TRANSFORM_PTR_SUPPORTED
170 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
171 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
173 png_byte user_transform_depth;
174 png_byte user_transform_channels;
185 #ifdef PNG_WRITE_SUPPORTED
186 png_compression_bufferp zbuffer_list;
191 int zlib_window_bits;
196 #ifdef PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED
198 int zlib_text_method;
199 int zlib_text_window_bits;
200 int zlib_text_mem_level;
201 int zlib_text_strategy;
205 #ifdef PNG_WRITE_SUPPORTED
208 int zlib_set_window_bits;
209 int zlib_set_mem_level;
210 int zlib_set_strategy;
231 #ifdef PNG_READ_EXPAND_SUPPORTED
235 #ifdef PNG_WRITE_FILTER_SUPPORTED
247 #ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
262 #ifdef PNG_WRITE_SUPPORTED
263 png_byte usr_channels;
270 #if ZLIB_VERNUM >= 0x1240
271 png_byte zstream_start;
273 #if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED)
277 #if defined(PNG_bKGD_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) ||\
278 defined(PNG_READ_ALPHA_MODE_SUPPORTED)
279 png_byte background_gamma_type;
282 #ifdef PNG_READ_GAMMA_SUPPORTED
287 #ifdef PNG_WRITE_FLUSH_SUPPORTED
288 png_flush_ptr output_flush_fn;
293 #ifdef PNG_READ_GAMMA_SUPPORTED
299 #if defined(PNG_READ_BACKGROUND_SUPPORTED) || \
300 defined(PNG_READ_ALPHA_MODE_SUPPORTED) || \
301 defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
309 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_sBIT_SUPPORTED)
313 #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED)
317 #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) \
318 || defined(PNG_READ_EXPAND_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED)
325 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED
326 png_progressive_info_ptr info_fn;
327 png_progressive_row_ptr row_fn;
328 png_progressive_end_ptr end_fn;
335 size_t save_buffer_size;
336 size_t save_buffer_max;
338 size_t current_buffer_size;
344 #if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__)
353 #ifdef PNG_READ_QUANTIZE_SUPPORTED
359 #ifdef PNG_SET_OPTION_SUPPORTED
363 #if PNG_LIBPNG_VER < 10700
365 #ifdef PNG_TIME_RFC1123_SUPPORTED
366 char time_buffer[29];
374 #ifdef PNG_USER_CHUNKS_SUPPORTED
376 #ifdef PNG_READ_USER_CHUNKS_SUPPORTED
377 png_user_chunk_ptr read_user_chunk_fn;
381 #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED
383 unsigned int num_chunk_list;
389 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED
390 png_byte rgb_to_gray_status;
392 png_byte rgb_to_gray_coefficients_set;
400 #if defined(PNG_MNG_FEATURES_SUPPORTED)
406 #ifdef PNG_MNG_FEATURES_SUPPORTED
407 png_byte filter_type;
413 #ifdef PNG_USER_MEM_SUPPORTED
415 png_malloc_ptr malloc_fn;
416 png_free_ptr free_fn;
422 #ifdef PNG_READ_QUANTIZE_SUPPORTED
434 #ifdef PNG_USER_LIMITS_SUPPORTED
450 #ifdef PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
460 #ifdef PNG_READ_SUPPORTED
465 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED
469 #ifdef PNG_IO_STATE_SUPPORTED
481 #ifdef PNG_READ_SUPPORTED
482 #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
483 png_colorspace colorspace;
#define Z_MEM_ERROR
Definition: zlib.h:183
png_byte location
Definition: png.h:634
#define PNG_BGR
Definition: pngpriv.h:642
Byte FAR Bytef
Definition: zconf.h:400
png_uint_32 width
Definition: png.h:2675
void png_handle_sPLT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1640
void PNGAPI 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:994
#define PNG_SCALE_16_TO_8
Definition: pngpriv.h:669
void png_handle_IHDR(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:839
void png_read_finish_row(png_structrp png_ptr)
Definition: pngrutil.c:4326
#define PNG_MNG_FEATURES_SUPPORTED
Definition: pnglibconf.h:44
#define P_sRGB
Definition: pngread.c:1256
png_uint_32 colormap_entries
Definition: png.h:2679
int ZEXPORT inflateValidate(z_streamp strm, int check)
Definition: inflate.c:1526
void png_read_finish_IDAT(png_structrp png_ptr)
Definition: pngrutil.c:4278
#define PNG_IMAGE_PIXEL_COMPONENT_SIZE(fmt)
Definition: png.h:2887
z_stream zstream
Definition: pngstruct.h:183
png_uint_32 crc
Definition: png.c:2247
#define PNG_FREE_TRNS
Definition: png.h:1759
const typedef png_byte * png_const_bytep
Definition: pngconf.h:580
static void png_do_chop(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2450
#define PNG_CHUNK_ANCILLARY(c)
Definition: pngpriv.h:897
#define PNG_FLAG_MNG_EMPTY_PLTE
Definition: png.h:857
png_uint_32 iwidth
Definition: pngstruct.h:218
#define PNG_AFTER_IDAT
Definition: png.h:646
#define PNG_FREE_ROWS
Definition: png.h:1751
void PNGFAPI png_set_gAMA_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point file_gamma)
Definition: pngset.c:186
#define PNG_FP_MIN
Definition: png.h:659
#define P_LINEAR8
Definition: pngread.c:1259
#define PNG_RGB_INDEX(r, g, b)
Definition: pngread.c:2080
#define PNG_QUANTIZE_BLUE_BITS
Definition: pnglibconf.h:202
#define PNG_FREE_SPLT
Definition: png.h:1750
void PNGAPI png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
Definition: pngread.c:1005
png_set_rgb_to_gray_fixed
Definition: png.h:1083
int png_safe_execute(png_imagep image_in, int(*function)(png_voidp), png_voidp arg)
Definition: pngerror.c:936
#define png_sCAL
Definition: pngpriv.h:867
#define PNG_TEXT_COMPRESSION_zTXt
Definition: png.h:589
png_uint_32(PNGAPI png_get_uint_32)(png_const_bytep buf)
Definition: pngrutil.c:67
#define PNG_16_TO_8
Definition: pngpriv.h:652
int file_encoding
Definition: pngread.c:1289
#define PNG_FILLER_AFTER
Definition: png.h:1249
#define PNG_QUANTIZE_GREEN_BITS
Definition: pnglibconf.h:203
#define PNG_EXPAND
Definition: pngpriv.h:654
void PNGFAPI 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:137
#define PNG_GAMMA_MAC_18
Definition: png.h:1148
png_fixed_point png_reciprocal(png_fixed_point a)
Definition: png.c:3488
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
#define PNG_sRGB_FROM_LINEAR(linear)
Definition: pngpriv.h:952
png_uint_32 row_number
Definition: pngstruct.h:219
#define PNG_GRAY_COLORMAP_ENTRIES
Definition: pngread.c:1997
png_voidp error_ptr
Definition: pngstruct.h:155
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_X
Definition: png.h:1949
struct png_dsort_struct * next
Definition: pngrtran.c:420
png_rw_ptr read_data_fn
Definition: pngstruct.h:157
size_t info_rowbytes
Definition: pngstruct.h:239
static void PNGCBAPI png_image_memory_read(png_structp png_ptr, png_bytep out, size_t need)
Definition: pngread.c:1535
#define PNG_HANDLE_CHUNK_IF_SAFE
Definition: png.h:2347
#define PNG_RGB_COLORMAP_ENTRIES
Definition: pngread.c:2077
void png_build_gamma_table(png_structrp png_ptr, int bit_depth)
Definition: png.c:4196
#define PNG_FREE_HIST
Definition: png.h:1748
#define png_eXIf
Definition: pngpriv.h:854
#define PNG_DEFAULT_sRGB
Definition: png.h:1147
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_blue_Y
Definition: png.h:1949
static int png_inflate(png_structrp png_ptr, png_uint_32 owner, int finish, png_const_bytep input, png_uint_32p input_size_ptr, png_bytep output, png_alloc_size_t *output_size_ptr)
Definition: pngrutil.c:485
#define PNG_ALPHA_STANDARD
Definition: png.h:1131
png_byte second
Definition: png.h:607
void PNGAPI png_set_sRGB(png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
Definition: pngset.c:653
#define PNG_FORMAT_FLAG_ASSOCIATED_ALPHA
Definition: png.h:2790
#define PNG_TRANSFORM_STRIP_ALPHA
Definition: png.h:834
#define PNG_INVERT_ALPHA
Definition: pngpriv.h:661
#define PNG_INFO_tIME
Definition: png.h:741
png_uint_16 blue
Definition: png.h:493
void png_handle_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1817
static void png_do_gamma(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
Definition: pngrtran.c:3944
#define png_tRNS
Definition: pngpriv.h:873
png_byte filter
Definition: pngstruct.h:253
#define PNG_CMAP_RGB
Definition: pngread.c:1267
#define PNG_IMAGE_FLAG_16BIT_sRGB
Definition: png.h:2953
#define PNG_UINT_31_MAX
Definition: png.h:649
offset_y
Definition: g29_auto.py:163
#define PNG_CRC_ERROR_QUIT
Definition: png.h:1437
#define PNG_HAVE_PLTE
Definition: png.h:645
#define PNG_READ_PACK_SUPPORTED
Definition: pnglibconf.h:69
#define PNG_IO_READING
Definition: png.h:2423
void * png_voidp
Definition: pngconf.h:577
png_fixed_point png_fixed(png_const_structrp png_ptr, double fp, png_const_charp text)
Definition: png.c:3316
#define PNG_INFO_tRNS
Definition: png.h:736
#define PNG_TRANSFORM_EXPAND
Definition: png.h:837
png_structrp int error_action
Definition: png.h:1083
void PNGAPI png_set_PLTE(png_structrp png_ptr, png_inforp info_ptr, png_const_colorp palette, int num_palette)
Definition: pngset.c:572
void PNGAPI png_read_update_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:267
void PNGAPI png_set_chunk_malloc_max(png_structrp png_ptr, png_alloc_size_t user_chunk_malloc_max)
Definition: pngset.c:1660
#define PNG_CMAP_RGB_ALPHA_BACKGROUND
Definition: pngread.c:1275
#define PNG_FLAG_APP_WARNINGS_WARN
Definition: pngpriv.h:700
void PNGAPI png_set_unknown_chunks(png_const_structrp png_ptr, png_inforp info_ptr, png_const_unknown_chunkp unknowns, int num_unknowns)
Definition: pngset.c:1200
static int png_gamma_threshold(png_fixed_point screen_gamma, png_fixed_point file_gamma)
Definition: pngrtran.c:1092
#define png_PLTE
Definition: pngpriv.h:851
#define PNG_CMAP_RGB_BACKGROUND
Definition: pngread.c:1274
static int png_inflate_read(png_structrp png_ptr, png_bytep read_buffer, uInt read_size, png_uint_32p chunk_bytes, png_bytep next_out, png_alloc_size_t *out_size, int finish)
Definition: pngrutil.c:774
#define PNG_OPTION_ON
Definition: png.h:3217
static void png_init_filter_functions(png_structrp pp)
Definition: pngrutil.c:4094
#define PNG_FIXED_ERROR
Definition: pngrutil.c:38
#define PNG_BACKGROUND_EXPAND
Definition: pngpriv.h:650
void PNGAPI png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:232
#define png_zTXt
Definition: pngpriv.h:874
static int png_cache_unknown_chunk(png_structrp png_ptr, png_uint_32 length)
Definition: pngrutil.c:2863
struct png_sPLT_entry_struct png_sPLT_entry
#define png_iTXt
Definition: pngpriv.h:862
#define PNG_INFO_pCAL
Definition: png.h:742
static void png_read_filter_row_paeth_multibyte_pixel(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:4043
#define PNG_COLOR_DIST(c1, c2)
Definition: pngpriv.h:722
#define PNGCBAPI
Definition: pngconf.h:258
#define PNG_INFO_oFFs
Definition: png.h:740
void PNGAPI png_set_swap_alpha(png_structrp png_ptr)
Definition: pngtrans.c:223
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
static png_fixed_point convert_gamma_value(png_structrp png_ptr, double output_gamma)
Definition: pngrtran.c:262
void PNGAPI 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:688
int PNGAPI png_image_begin_read_from_memory(png_imagep image, png_const_voidp memory, size_t size)
Definition: pngread.c:1564
#define png_aligncastconst(type, value)
Definition: pngpriv.h:506
#define PNG_IMAGE_VERSION
Definition: png.h:2668
png_set_alpha_mode_fixed
Definition: png.h:1139
struct png_dsort_struct png_dsort
#define PNG_RGB_TO_GRAY_ERR
Definition: pngpriv.h:663
static int png_image_read_init(png_imagep image)
Definition: pngread.c:1300
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point * int_red_Y
Definition: png.h:1949
char * png_charp
Definition: pngconf.h:589
void png_formatted_warning(png_const_structrp png_ptr, png_warning_parameters p, png_const_charp message)
Definition: pngerror.c:284
#define PNG_GAMMA_sRGB
Definition: png.h:1149
#define Z_DATA_ERROR
Definition: zlib.h:182
#define PNG_IO_CHUNK_CRC
Definition: png.h:2428
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point * int_red_Z
Definition: png.h:1949
#define PNG_UNEXPECTED_ZLIB_RETURN
Definition: pngpriv.h:973
#define PNG_TRANSFORM_INVERT_MONO
Definition: png.h:838
void png_init_read_transformations(png_structrp png_ptr)
Definition: pngrtran.c:1291
png_voidp buffer
Definition: pngread.c:1281
int PNGAPI png_set_interlace_handling(png_structrp png_ptr)
Definition: pngtrans.c:99
void PNGAPI png_set_scale_16(png_structrp png_ptr)
Definition: pngrtran.c:183
#define PNG_GRAY_TO_RGB
Definition: pngpriv.h:656
static void png_read_filter_row_up(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:3949
void PNGAPI png_set_gAMA(png_const_structrp png_ptr, png_inforp info_ptr, double file_gamma)
Definition: pngset.c:200
png_uint_32 flags
Definition: png.h:2678
png_uint_16 frequency
Definition: png.h:522
#define PNG_FREE_SCAL
Definition: png.h:1753
#define PNG_CMAP_TRANS_BACKGROUND
Definition: pngread.c:1273
#define PNG_INTERLACE_NONE
Definition: png.h:687
png_info *PNG_RESTRICT png_inforp
Definition: png.h:471
#define PNG_EQUATION_HYPERBOLIC
Definition: png.h:700
png_sPLT_entryp entries
Definition: png.h:537
uint8_t type
Definition: UsbCore.h:184
png_byte ** png_bytepp
Definition: pngconf.h:606
png_uint_32 PNGAPI png_permit_mng_features(png_structrp png_ptr, png_uint_32 mng_features)
Definition: pngset.c:1329
#define PNG_BACKGROUND_GAMMA_UNIQUE
Definition: png.h:1310
#define PNG_COMPOSE
Definition: pngpriv.h:649
png_uint_32 width
Definition: pngstruct.h:213
#define Z_FINISH
Definition: zlib.h:172
png_voidp first_row
Definition: pngread.c:1287
png_write_status_ptr write_row_fn
Definition: pngstruct.h:324
#define abs(x)
Definition: wiring_constants.h:32
void png_handle_sCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2376
static int make_gray_file_colormap(png_image_read_control *display)
Definition: pngread.c:1977
#define PNG_READ_ALPHA_MODE_SUPPORTED
Definition: pnglibconf.h:50
#define PNG_FLAG_ROW_INIT
Definition: pngpriv.h:685
#define Z_STREAM_ERROR
Definition: zlib.h:181
#define PNG_IS_READ_STRUCT
Definition: pngpriv.h:639
uint8_t data[8]
Definition: masstorage.h:49
#define PNG_FP_IS_POSITIVE(state)
Definition: pngpriv.h:1939
#define PNG_EQUATION_LAST
Definition: png.h:701
png_charp name
Definition: png.h:535
#define PNG_EXPAND_tRNS
Definition: pngpriv.h:668
void png_handle_PLTE(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:913
png_uint_32 PNGAPI png_get_uint_31(png_const_structrp png_ptr, png_const_bytep buf)
Definition: pngrutil.c:22
#define PNG_UINT_32_MAX
Definition: png.h:650
png_uint_16 gray
Definition: png.h:494
png_byte transformed_pixel_depth
Definition: pngstruct.h:268
png_byte * png_bytep
Definition: pngconf.h:579
png_const_structrp png_const_inforp double double * red_Y
Definition: png.h:1939
uint8_t i
Definition: screen_test_graph.c:72
#define PNG_ALPHA_ASSOCIATED
Definition: png.h:1132
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_Y
Definition: png.h:1949
static void png_do_read_invert_alpha(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2571
#define PNG_PASS_COLS(width, pass)
Definition: png.h:2468
static void png_do_encode_alpha(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
Definition: pngrtran.c:4145
int png_crc_error(png_structrp png_ptr)
Definition: pngrutil.c:251
png_uint_16 png_gamma_correct(png_structrp png_ptr, unsigned int value, png_fixed_point gamma_val)
Definition: png.c:3947
#define PNG_INVERT_MONO
Definition: pngpriv.h:647
static int make_gray_colormap(png_image_read_control *display)
Definition: pngread.c:1988
static void png_read_filter_row_paeth_1byte_pixel(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:3992
#define PNG_INFO_PLTE
Definition: png.h:735
static int png_image_read_colormap(png_voidp argument)
Definition: pngread.c:2084
static volatile fsensor_t state
Definition: filament_sensor.c:23
void PNGAPI png_set_rgb_to_gray(png_structrp png_ptr, int error_action, double red, double green)
Definition: pngrtran.c:1059
#define PNG_ERROR_ACTION_WARN
Definition: png.h:1077
#define PNG_WARNING_PARAMETERS(p)
Definition: pngpriv.h:454
void PNGAPI png_set_shift(png_structrp png_ptr, png_const_color_8p true_bits)
Definition: pngtrans.c:84
#define PNG_READ_FILLER_SUPPORTED
Definition: pnglibconf.h:59
const typedef png_struct *PNG_RESTRICT png_const_structrp
Definition: png.h:470
png_byte do_filter
Definition: pngstruct.h:256
static void png_read_destroy(png_structrp png_ptr)
Definition: pngread.c:940
#define PNG_IMAGE_SAMPLE_SIZE(fmt)
Definition: png.h:2855
void PNGAPI png_set_invert_mono(png_structrp png_ptr)
Definition: pngtrans.c:250
void png_do_read_interlace(png_row_infop row_info, png_bytep row, int pass, png_uint_32 transformations)
Definition: pngrutil.c:3684
const typedef png_color * png_const_colorp
Definition: png.h:485
void png_combine_row(png_const_structrp png_ptr, png_bytep dp, int display)
Definition: pngrutil.c:3200
#define PNG_FORMAT_FLAG_AFIRST
Definition: png.h:2787
void PNGAPI png_set_eXIf(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep eXIf_buf)
Definition: pngset.c:139
#define PNG_TEXT_COMPRESSION_LAST
Definition: png.h:592
void PNGAPI png_set_sBIT(png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_8p sig_bit)
Definition: pngset.c:638
#define PNG_FORMAT_FLAG_BGR
Definition: png.h:2783
#define PNG_COLOR_TYPE_RGB_ALPHA
Definition: png.h:671
void png_check_chunk_name(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition: pngrutil.c:3134
#define PNG_GAMMA_MAC_OLD
Definition: pngpriv.h:904
unsigned int for_write
Definition: pngpriv.h:2044
size_t old_big_row_buf_size
Definition: pngstruct.h:458
void PNGAPI 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
#define PNG_IMAGE_FLAG_COLORSPACE_NOT_sRGB
Definition: png.h:2937
png_const_structrp png_const_inforp int png_fixed_point * width
Definition: png.h:2161
#define PNG_FLAG_ASSUME_sRGB
Definition: pngpriv.h:691
png_structrp png_const_color_16p int int need_expand
Definition: png.h:1302
void png_free_buffer_list(png_structrp png_ptr, png_compression_bufferp *listp)
Definition: pngwutil.c:439
#define PNG_CHUNK_CRITICAL(c)
Definition: pngpriv.h:898
#define PNG_FLAG_CRC_CRITICAL_IGNORE
Definition: pngpriv.h:690
void png_handle_tEXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2515
png_uint_32 crc
Definition: pngstruct.h:242
png_byte color_type
Definition: pngstruct.h:257
#define PNG_READ_EXPAND_SUPPORTED
Definition: pnglibconf.h:58
static int png_image_read_background(png_voidp argument)
Definition: pngread.c:3386
void PNGAPI png_set_strip_16(png_structrp png_ptr)
Definition: pngrtran.c:197
#define PNG_GAMMA_MAC_INVERSE
Definition: pngpriv.h:905
#define png_debug2(l, m, p1, p2)
Definition: pngdebug.h:151
#define PNG_SIZE_MAX
Definition: png.h:651
void PNGAPI png_set_compression_buffer_size(png_structrp png_ptr, size_t size)
Definition: pngset.c:1566
#define PNG_GAMMA_LINEAR
Definition: png.h:1150
static void png_do_unpack(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2152
#define png_iCCP
Definition: pngpriv.h:861
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point * int_red_X
Definition: png.h:1949
#define inflateInit(strm)
Definition: zlib.h:1795
void PNGAPI 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:312
const typedef png_sPLT_t * png_const_sPLT_tp
Definition: png.h:541
png_byte name[5]
Definition: png.h:624
static void png_init_palette_transformations(png_structrp png_ptr)
Definition: pngrtran.c:1117
#define png_tEXt
Definition: pngpriv.h:871
#define PNG_CRC_NO_CHANGE
Definition: png.h:1441
#define PNG_HAVE_CHUNK_AFTER_IDAT
Definition: pngpriv.h:637
#define PNG_INTRAPIXEL_DIFFERENCING
Definition: png.h:683
png_uint_32 free_me
Definition: pngstruct.h:372
static int png_image_read_colormapped(png_voidp argument)
Definition: pngread.c:3127
#define png_voidcast(type, value)
Definition: pngpriv.h:494
const typedef png_unknown_chunk * png_const_unknown_chunkp
Definition: png.h:639
png_voidp local_row
Definition: pngread.c:1286
png_const_structrp png_const_inforp double * red_X
Definition: png.h:1939
#define PNG_IO_SIGNATURE
Definition: png.h:2425
#define NULL
Definition: usbd_def.h:53
png_uint_32 width
Definition: png.h:756
png_uint_32 chunk_name
Definition: pngstruct.h:220
#define PNG_HANDLE_CHUNK_LAST
Definition: png.h:2349
#define XYZ
Definition: macros.h:27
png_dsort ** png_dsortpp
Definition: pngrtran.c:425
void PNGAPI png_set_check_for_invalid_index(png_structrp png_ptr, int allowed)
Definition: pngset.c:1701
png_sPLT_entry * png_sPLT_entryp
Definition: png.h:524
png_set_background_fixed
Definition: png.h:1302
#define PNG_READ_STRIP_ALPHA_SUPPORTED
Definition: pnglibconf.h:75
ptrdiff_t row_bytes
Definition: pngread.c:1288
void png_handle_pHYs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2154
png_byte compression_type
Definition: pngstruct.h:432
#define png_IEND
Definition: pngpriv.h:849
void PNGAPI png_set_strip_alpha(png_structrp png_ptr)
Definition: pngrtran.c:210
png_structrp png_ptr
Definition: png.h:1083
#define PNG_FORMAT_FLAG_LINEAR
Definition: png.h:2779
#define png_sPLT
Definition: pngpriv.h:868
int png_check_fp_number(png_const_charp string, size_t size, int *statep, png_size_tp whereami)
Definition: png.c:2712
#define PNG_ALLOCATED
Definition: pngconf.h:439
png_dsort * png_dsortp
Definition: pngrtran.c:424
#define PNG_COLOR_TYPE_RGB
Definition: png.h:670
png_const_structrp png_const_inforp info_ptr
Definition: png.h:1939
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
Definition: inflate.c:157
#define PNG_FLAG_MNG_FILTER_64
Definition: png.h:858
size_t text_length
Definition: png.h:572
png_bytep big_row_buf
Definition: pngstruct.h:420
png_uint_16 year
Definition: png.h:602
png_byte right
Definition: pngrtran.c:422
#define PNG_TRANSFORM_PACKSWAP
Definition: png.h:836
static png_bytep png_read_buffer(png_structrp png_ptr, png_alloc_size_t new_size, int warn)
Definition: pngrutil.c:298
png_byte month
Definition: png.h:603
#define PNG_INFO_bKGD
Definition: png.h:737
static png_fixed_point translate_gamma_flags(png_structrp png_ptr, png_fixed_point output_gamma, int is_screen)
Definition: pngrtran.c:223
png_bytep prev_row
Definition: pngstruct.h:221
#define PNG_FORMAT_FLAG_COLOR
Definition: png.h:2778
void png_do_invert(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:262
#define PNG_SWAP_BYTES
Definition: pngpriv.h:646
void PNGAPI png_start_read_image(png_structrp png_ptr)
Definition: pngread.c:298
void png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info)
Definition: pngtrans.c:699
void PNGAPI png_set_palette_to_rgb(png_structrp png_ptr)
Definition: pngrtran.c:902
#define PNG_CMAP_NONE
Definition: pngread.c:1264
void png_do_bgr(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:619
#define PNG_DIV51(v8)
Definition: pngread.c:1656
unsigned int png_uint_32
Definition: pngconf.h:511
#define png_aligncast(type, value)
Definition: pngpriv.h:505
void PNGCBAPI png_default_read_data(png_structp png_ptr, png_bytep data, size_t length)
Definition: pngrio.c:50
#define PNG_TRANSFORM_STRIP_16
Definition: png.h:833
#define PNG_INFO_eXIf
Definition: png.h:748
png_uint_32 usr_width
Definition: pngstruct.h:216
void PNGAPI png_image_free(png_imagep image)
Definition: png.c:4582
static png_byte check_location(png_const_structrp png_ptr, int location)
Definition: pngset.c:1163
void PNGAPI png_set_rows(png_const_structrp png_ptr, png_inforp info_ptr, png_bytepp row_pointers)
Definition: pngset.c:1546
#define PNG_TEXT_COMPRESSION_NONE
Definition: png.h:588
#define PNGAPI
Definition: pngconf.h:261
#define PNG_EQUATION_ARBITRARY
Definition: png.h:699
#define inflateInit2(strm, windowBits)
Definition: zlib.h:1800
#define PNGFAPI
Definition: pngpriv.h:471
png_uint_16(PNGAPI png_get_uint_16)(png_const_bytep buf)
Definition: pngrutil.c:102
#define PNG_RGB_TO_GRAY_WARN
Definition: pngpriv.h:664
#define PNG_ALPHA_PNG
Definition: png.h:1130
#define PNG_FREE_EXIF
Definition: png.h:1761
#define PNG_TRANSFORM_EXPAND_16
Definition: png.h:851
#define PNG_MAX_PALETTE_LENGTH
Definition: png.h:725
static int make_ga_colormap(png_image_read_control *display)
Definition: pngread.c:2000
#define PNG_SKIP_CHUNKS(p)
Definition: pngread.c:1647
static void png_do_read_swap_alpha(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2475
#define PNG_PASS_ROW_OFFSET(pass)
Definition: png.h:2451
const typedef png_uint_16 * png_const_uint_16p
Definition: pngconf.h:586
unsigned char Byte
Definition: zconf.h:391
#define PNG_USER_CHUNK_MALLOC_MAX
Definition: pnglibconf.h:208
#define PNG_HAVE_IHDR
Definition: png.h:644
#define PNG_PACKSWAP
Definition: pngpriv.h:658
#define PNG_FORMAT_FLAG_COLORMAP
Definition: png.h:2780
#define PNG_EQUATION_LINEAR
Definition: png.h:697
void PNGAPI png_set_expand(png_structrp png_ptr)
Definition: pngrtran.c:872
void PNGAPI png_set_hIST(png_const_structrp png_ptr, png_inforp info_ptr, png_const_uint_16p hist)
Definition: pngset.c:210
#define PNG_HAVE_IDAT
Definition: pngpriv.h:626
#define PNG_NUMBER_FORMAT_02x
Definition: pngpriv.h:1762
static int png_image_read_header(png_voidp argument)
Definition: pngread.c:1401
#define PNG_FLAG_CRC_ANCILLARY_USE
Definition: pngpriv.h:687
void png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info)
Definition: pngrtran.c:4736
#define Z_NO_FLUSH
Definition: zlib.h:168
png_structrp int png_fixed_point red
Definition: png.h:1083
#define PNG_FREE_ICCP
Definition: png.h:1749
void PNGAPI png_chunk_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:497
png_const_colorp background
Definition: pngread.c:1284
#define PNG_ITXT_COMPRESSION_zTXt
Definition: png.h:591
void PNGAPI png_set_gray_to_rgb(png_structrp png_ptr)
Definition: pngrtran.c:955
png_rw_ptr write_data_fn
Definition: pngstruct.h:156
png_bytep row_buf
Definition: pngstruct.h:226
static int png_gamma_not_sRGB(png_fixed_point g)
Definition: pngread.c:1382
#define PNG_PASS_START_COL(pass)
Definition: png.h:2444
#define PNGZ_MSG_CAST(s)
Definition: pngstruct.h:40
void PNGAPI png_set_add_alpha(png_structrp png_ptr, png_uint_32 filler, int filler_loc)
Definition: pngtrans.c:205
void PNGFAPI png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y)
Definition: pngset.c:40
void png_crc_read(png_structrp png_ptr, png_bytep buf, png_uint_32 length)
Definition: pngrutil.c:196
void png_chunk_report(png_const_structrp png_ptr, png_const_charp message, int error)
Definition: pngerror.c:531
void png_handle_hIST(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2102
png_uint_32 version
Definition: png.h:2674
#define P_FILE
Definition: pngread.c:1258
void png_read_transform_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngrtran.c:1940
void PNGAPI png_set_text(png_const_structrp png_ptr, png_inforp info_ptr, png_const_textp text_ptr, int num_text)
Definition: pngset.c:762
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:2442
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_Z
Definition: png.h:1949
#define PNG_IMAGE_PIXEL_CHANNELS(fmt)
Definition: png.h:2881
png_const_structrp png_const_inforp double double double double double double double * blue_X
Definition: png.h:1939
png_byte channels
Definition: png.h:760
void png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, size_t length)
Definition: png.c:139
#define PNG_ALL_MNG_FEATURES
Definition: png.h:859
PNG_FUNCTION(png_structp, PNGAPI png_create_read_struct,(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn), PNG_ALLOCATED)
Definition: pngread.c:25
png_colorp palette
Definition: pngstruct.h:243
#define PNG_FREE_PLTE
Definition: png.h:1758
#define PNG_TRANSFORM_INVERT_ALPHA
Definition: png.h:843
void png_handle_zTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2596
#define PNG_BACKGROUND_IS_GRAY
Definition: pngpriv.h:635
png_uint_16 green
Definition: png.h:492
#define ZLIB_IO_MAX
Definition: pngstruct.h:56
png_uint_32 png_check_keyword(png_structrp png_ptr, png_const_charp key, png_bytep new_key)
Definition: pngset.c:1726
#define PNG_COLOR_TYPE_GRAY
Definition: png.h:668
const typedef png_uint_16p * png_const_uint_16pp
Definition: pngpriv.h:937
png_byte color_type
Definition: png.h:758
void PNGAPI png_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:362
#define PNG_HANDLE_CHUNK_ALWAYS
Definition: png.h:2348
#define PNG_HANDLE_CHUNK_NEVER
Definition: png.h:2346
png_byte blue
Definition: png.h:482
static void png_read_filter_row_sub(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:3931
#define PNG_INTERLACE_ADAM7_PASSES
Definition: png.h:2437
png_charp key
Definition: png.h:569
png_charp text
Definition: png.h:570
png_uint_16 num_palette
Definition: pngstruct.h:244
#define png_debug(l, m)
Definition: pngdebug.h:145
#define PNG_TRANSFORM_PACKING
Definition: png.h:835
static void png_do_compose(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
Definition: pngrtran.c:3200
void png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, size_t size, double fp, unsigned int precision)
Definition: png.c:2903
void PNGAPI 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_type, int compression_type, int filter_type)
Definition: pngset.c:254
png_byte compression
Definition: pngstruct.h:252
png_byte green
Definition: png.h:481
png_uint_16 alpha
Definition: png.h:521
png_int_32 row_stride
Definition: pngread.c:1282
#define PNG_CRC_WARN_DISCARD
Definition: png.h:1438
void PNGAPI png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 mask, int num)
Definition: png.c:471
#define PNG_ITXT_COMPRESSION_NONE
Definition: png.h:590
#define PNG_INTERLACE
Definition: pngpriv.h:643
Byte * voidp
Definition: zconf.h:414
#define PNG_CHUNK_FROM_STRING(s)
Definition: pngpriv.h:879
void png_icc_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
Definition: png.c:2428
void PNGAPI png_set_expand_16(png_structrp png_ptr)
Definition: pngrtran.c:942
void PNGAPI png_set_invert_alpha(png_structrp png_ptr)
Definition: pngtrans.c:237
#define png_IDAT
Definition: pngpriv.h:848
#define PNG_FLAG_DETECT_UNINITIALIZED
Definition: pngpriv.h:693
png_byte png_gamma_8bit_correct(unsigned int value, png_fixed_point gamma_val)
Definition: png.c:3864
#define PNG_FILLER
Definition: pngpriv.h:657
void
Definition: png.h:1083
int png_muldiv(png_fixed_point_p res, png_fixed_point a, png_int_32 times, png_int_32 divisor)
Definition: png.c:3349
#define png_get_uint_16(buf)
Definition: png.h:2599
png_int_32 png_fixed_point
Definition: pngconf.h:574
void png_read_IDAT_data(png_structrp png_ptr, png_bytep output, png_alloc_size_t avail_out)
Definition: pngrutil.c:4149
void png_handle_sBIT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1158
const typedef char * png_const_charp
Definition: pngconf.h:590
static int make_rgb_colormap(png_image_read_control *display)
Definition: pngread.c:2055
#define PNG_COMPRESSION_TYPE_BASE
Definition: png.h:678
void PNGAPI png_read_png(png_structrp png_ptr, png_inforp info_ptr, int transforms, voidp params)
Definition: pngread.c:1043
png_const_structrp png_const_inforp double double double double * green_X
Definition: png.h:1939
png_byte PNGAPI png_get_channels(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:467
#define Z_OK
Definition: zlib.h:177
int png_image_error(png_imagep image, png_const_charp error_message)
Definition: png.c:4598
#define PNG_FILTER_VALUE_NONE
Definition: png.h:1476
#define png_IHDR
Definition: pngpriv.h:850
size_t PNGAPI png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:30
void PNGAPI png_set_crc_action(png_structrp png_ptr, int crit_action, int ancil_action)
Definition: pngrtran.c:36
#define png_cHRM
Definition: pngpriv.h:853
#define Z_SYNC_FLUSH
Definition: zlib.h:170
png_struct *PNG_RESTRICT png_structrp
Definition: png.h:469
int PNGAPI png_image_begin_read_from_stdio(png_imagep image, FILE *file)
Definition: pngread.c:1466
int png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred)
Definition: png.c:1720
void png_colorspace_sync_info(png_const_structrp png_ptr, png_inforp info_ptr)
Definition: png.c:1169
#define PNG_QUANTIZE_RED_BITS
Definition: pnglibconf.h:204
#define PNG_ERROR_ACTION_ERROR
Definition: png.h:1078
void PNGAPI png_set_alpha_mode(png_structrp png_ptr, int mode, double output_gamma)
Definition: pngrtran.c:400
static void png_read_filter_row_avg(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:3965
static png_uint_32 png_colormap_compose(png_image_read_control *display, png_uint_32 foreground, int foreground_encoding, png_uint_32 alpha, png_uint_32 background, int encoding)
Definition: pngread.c:1719
#define PNG_FILTER_VALUE_LAST
Definition: png.h:1481
png_const_bytep memory
Definition: pngpriv.h:2041
void PNGAPI png_set_chunk_cache_max(png_structrp png_ptr, png_uint_32 user_chunk_cache_max)
Definition: pngset.c:1652
void PNGAPI png_set_sCAL(png_const_structrp png_ptr, png_inforp info_ptr, int unit, double width, double height)
Definition: pngset.c:497
unsigned int owned_file
Definition: pngpriv.h:2045
void PNGAPI png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_16p background)
Definition: pngset.c:25
Definition: pngpriv.h:2035
void PNGAPI png_set_benign_errors(png_structrp png_ptr, int allowed)
Definition: pngset.c:1671
#define PNG_INFO_sCAL
Definition: png.h:746
png_uint_32 format
Definition: png.h:2677
#define PNG_FREE_TEXT
Definition: png.h:1760
png_uint_32 flags
Definition: pngstruct.h:179
size_t itxt_length
Definition: png.h:573
#define PNG_FILTER_VALUE_AVG
Definition: png.h:1479
#define PNG_HANDLE_CHUNK_AS_DEFAULT
Definition: png.h:2345
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
const typedef png_text * png_const_textp
Definition: png.h:580
void(* read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngstruct.h:478
png_uint_16 png_gamma_16bit_correct(unsigned int value, png_fixed_point gamma_val)
Definition: png.c:3912
while(sofevent)
Definition: USB_HOST_SHIELD.h:456
#define PNG_PASS_START_ROW(pass)
Definition: png.h:2443
#define PNG_CRC_DEFAULT
Definition: png.h:1436
list a
Definition: createSpeedLookupTable.py:29
void PNGAPI png_read_image(png_structrp png_ptr, png_bytepp image)
Definition: pngread.c:700
#define PNG_FILTER_VALUE_PAETH
Definition: png.h:1480
#define L(CODE)
Definition: macros.h:76
#define PNG_HAVE_IEND
Definition: pngpriv.h:628
int PNGAPI png_image_begin_read_from_file(png_imagep image, const char *file_name)
Definition: pngread.c:1496
void png_zstream_error(png_structrp png_ptr, int ret)
Definition: png.c:998
#define png_get_uint_32(buf)
Definition: png.h:2598
#define PNG_CMAP_TRANS
Definition: pngread.c:1266
#define PNG_MAXIMUM_INFLATE_WINDOW
Definition: png.h:3202
png_charp lang_key
Definition: png.h:576
void PNGAPI png_set_packswap(png_structrp png_ptr)
Definition: pngtrans.c:70
void png_read_sig(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngrutil.c:121
void PNGAPI png_set_eXIf_1(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 num_exif, png_bytep eXIf_buf)
Definition: pngset.c:148
png_byte depth
Definition: png.h:536
#define PNG_FILTER_VALUE_UP
Definition: png.h:1478
static int png_image_read_and_map(png_voidp argument)
Definition: pngread.c:2938
#define Z_STREAM_END
Definition: zlib.h:178
png_byte pixel_depth
Definition: png.h:761
png_uint_16 green
Definition: png.h:519
png_fixed_point gamma_to_linear
Definition: pngread.c:1290
png_byte * data
Definition: png.h:625
#define PNG_INTERLACE_ADAM7
Definition: png.h:688
void png_reset_crc(png_structrp png_ptr)
Definition: png.c:127
#define PNG_IMAGE_SAMPLE_CHANNELS(fmt)
Definition: png.h:2845
#define PNG_TRANSFORM_BGR
Definition: png.h:840
void PNGFAPI 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_uint_32 * png_uint_32p
Definition: pngconf.h:581
#define PNG_INFO_sPLT
Definition: png.h:745
size_t rowbytes
Definition: pngstruct.h:217
#define PNG_READ_RGB_TO_GRAY_SUPPORTED
Definition: pnglibconf.h:71
static void set_file_encoding(png_image_read_control *display)
Definition: pngread.c:1660
#define PNG_PASS_COL_OFFSET(pass)
Definition: png.h:2452
static png_uint_32 png_image_format(png_structrp png_ptr)
Definition: pngread.c:1349
void png_colorspace_sync(png_const_structrp png_ptr, png_inforp info_ptr)
Definition: png.c:1215
void png_handle_IEND(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1100
#define PNG_ADD_ALPHA
Definition: pngpriv.h:667
void png_do_swap(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:319
#define PNG_FILLER_BEFORE
Definition: png.h:1248
#define PNG_IDAT_READ_SIZE
Definition: pnglibconf.h:195
#define P_LINEAR
Definition: pngread.c:1257
#define PNG_ALPHA_OPTIMIZED
Definition: png.h:1134
#define PNG_IO_CHUNK_DATA
Definition: png.h:2427
#define png_composite(composite, fg, alpha, bg)
Definition: png.h:2510
void png_warning_parameter(png_warning_parameters p, int number, png_const_charp string)
Definition: pngerror.c:247
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:4131
#define MASK(pass, depth, display, png)
Definition: pngrtran.c:418
void PNGAPI 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:430
int png_crc_finish(png_structrp png_ptr, png_uint_32 skip)
Definition: pngrutil.c:211
Definition: pngstruct.h:143
char ** png_charpp
Definition: pngconf.h:612
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:2014
Definition: pngread.c:1277
png_voidp colormap
Definition: pngread.c:1283
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:1981
png_uint_16 ** png_uint_16pp
Definition: pngconf.h:609
png_bytep big_prev_row
Definition: pngstruct.h:475
png_read_status_ptr read_row_fn
Definition: pngstruct.h:323
display_t * display
Definition: display.c:6
void png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1362
int png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred)
Definition: png.c:1757
const typedef void * png_const_voidp
Definition: pngconf.h:578
static png_fixed_point png_get_fixed_point(png_structrp png_ptr, png_const_bytep buf)
Definition: pngrutil.c:41
void png_colorspace_set_rgb_coefficients(png_structrp png_ptr)
Definition: png.c:2469
#define PNG_RGB_TO_GRAY
Definition: pngpriv.h:665
#define PNG_CRC_QUIET_USE
Definition: png.h:1440
void png_handle_gAMA(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1120
static int png_decompress_chunk(png_structrp png_ptr, png_uint_32 chunklength, png_uint_32 prefix_size, png_alloc_size_t *newlength, int terminate)
Definition: pngrutil.c:610
png_const_structrp png_const_inforp double double double * red_Z
Definition: png.h:1939
#define PNG_FLAG_APP_ERRORS_WARN
Definition: pngpriv.h:701
void PNGCBAPI png_safe_warning(png_structp png_nonconst_ptr, png_const_charp warning_message)
Definition: pngerror.c:921
png_uint_32 height
Definition: png.h:2676
static int png_image_read_composite(png_voidp argument)
Definition: pngread.c:3259
#define PNG_FLAG_CRC_CRITICAL_USE
Definition: pngpriv.h:689
void PNGAPI png_set_read_fn(png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn)
Definition: pngrio.c:87
#define PNG_INFO_pHYs
Definition: png.h:739
#define PNG_FILTER_VALUE_SUB
Definition: png.h:1477
png_const_structrp png_const_inforp double double double double double double * green_Z
Definition: png.h:1939
#define PNG_BACKGROUND_GAMMA_UNKNOWN
Definition: png.h:1307
const typedef png_uint_32 * png_const_uint_32p
Definition: pngconf.h:582
png_int_32 nentries
Definition: png.h:538
static unsigned int decode_gamma(png_image_read_control *display, png_uint_32 value, int encoding)
Definition: pngread.c:1680
void PNGAPI png_set_packing(png_structrp png_ptr)
Definition: pngtrans.c:50
#define PNG_sCAL_PRECISION
Definition: pnglibconf.h:216
png_uint_16 blue
Definition: png.h:520
else png_error(png_ptr, "png_image_write_to_memory: PNG too big")
void PNGAPI png_set_swap(png_structrp png_ptr)
Definition: pngtrans.c:35
void png_handle_unknown(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length, int keep)
Definition: pngrutil.c:2922
#define PNG_INFLATE(pp, flush)
Definition: pngpriv.h:1398
void PNGAPI png_set_keep_unknown_chunks(png_structrp png_ptr, int keep, png_const_bytep chunk_list, int num_chunks_in)
Definition: pngset.c:1372
png_uint_16 * png_uint_16p
Definition: pngconf.h:585
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:2547
static void png_do_scale_16_to_8(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2389
png_voidp io_ptr
Definition: pngstruct.h:158
png_fixed_point png_reciprocal2(png_fixed_point a, png_fixed_point b)
Definition: png.c:3543
png_structrp png_const_color_16p int background_gamma_code
Definition: png.h:1302
#define png_hIST
Definition: pngpriv.h:860
#define png_debug1(l, m, p1)
Definition: pngdebug.h:148
png_uint_32 num_rows
Definition: pngstruct.h:215
#define PNG_BACKGROUND_GAMMA_SCREEN
Definition: png.h:1308
#define png_oFFs
Definition: pngpriv.h:863
#define PNG_LIBPNG_VER_STRING
Definition: png.h:280
png_byte pixel_depth
Definition: pngstruct.h:260
#define PNG_CHUNK_WRITE_ERROR
Definition: pngpriv.h:1843
static void png_do_expand_16(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:4609
png_byte maximum_pixel_depth
Definition: pngstruct.h:266
static void png_do_expand_palette(png_structrp png_ptr, png_row_infop row_info, png_bytep row, png_const_colorp palette, png_const_bytep trans_alpha, int num_trans)
Definition: pngrtran.c:4209
png_uint_32 idat_size
Definition: pngstruct.h:241
#define PNG_FLAG_ZSTREAM_INITIALIZED
Definition: pngpriv.h:680
int PNGAPI png_image_finish_read(png_imagep image, png_const_colorp background, void *buffer, png_int_32 row_stride, void *colormap)
Definition: pngread.c:4102
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_blue_X
Definition: png.h:1949
#define PNG_ERROR_ACTION_NONE
Definition: png.h:1076
void PNGAPI 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:556
#define PNG_FLAG_BENIGN_ERRORS_WARN
Definition: pngpriv.h:699
void png_handle_pCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2247
void PNGAPI png_read_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:92
size_t png_alloc_size_t
Definition: pngconf.h:557
#define PNG_FLAG_CRC_ANCILLARY_NOWARN
Definition: pngpriv.h:688
void png_do_packswap(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:455
void png_destroy_png_struct(png_structrp png_ptr)
Definition: pngmem.c:25
void PNGAPI 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
static void png_do_read_filler(png_row_infop row_info, png_bytep row, png_uint_32 filler, png_uint_32 flags)
Definition: pngrtran.c:2673
void PNGAPI png_set_read_user_transform_fn(png_structrp png_ptr, png_user_transform_ptr read_user_transform_fn)
Definition: pngrtran.c:1073
#define PNG_SHIFT
Definition: pngpriv.h:645
png_byte usr_bit_depth
Definition: pngstruct.h:259
png_structrp png_fixed_point screen_gamma
Definition: png.h:1352
png_byte minute
Definition: png.h:606
void PNGAPI png_set_read_status_fn(png_structrp png_ptr, png_read_status_ptr read_row_fn)
Definition: pngread.c:1031
png_byte index
Definition: png.h:490
void png_handle_tIME(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2469
#define PNG_BACKGROUND_GAMMA_FILE
Definition: png.h:1309
#define PNG_GA_COLORMAP_ENTRIES
Definition: pngread.c:2052
#define png_pHYs
Definition: pngpriv.h:865
#define PNG_CMAP_RGB_ALPHA
Definition: pngread.c:1268
png_byte channels
Definition: pngstruct.h:261
#define PNG_ROWBYTES(pixel_bits, width)
Definition: pngpriv.h:738
void PNGAPI 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:1531
void PNGFAPI png_set_rgb_to_gray_fixed(png_structrp png_ptr, int error_action, png_fixed_point red, png_fixed_point green)
Definition: pngrtran.c:970
png_byte bit_depth
Definition: pngstruct.h:258
void PNGAPI png_set_tRNS_to_alpha(png_structrp png_ptr)
Definition: pngrtran.c:926
void png_read_start_row(png_structrp png_ptr)
Definition: pngrutil.c:4391
void png_handle_cHRM(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1240
#define PNG_FLAG_FILLER_AFTER
Definition: pngpriv.h:686
static void png_do_quantize(png_row_infop row_info, png_bytep row, png_const_bytep palette_lookup, png_const_bytep quantize_lookup)
Definition: pngrtran.c:4639
#define PNG_TRANSFORM_GRAY_TO_RGB
Definition: png.h:849
static int png_rtran_ok(png_structrp png_ptr, int need_IHDR)
Definition: pngrtran.c:110
png_byte sig_bytes
Definition: pngstruct.h:265
#define PNG_CMAP_NONE_BACKGROUND
Definition: pngread.c:1271
png_uint_16 red
Definition: png.h:518
#define png_sBIT
Definition: pngpriv.h:866
#define PNG_COLOR_MASK_COLOR
Definition: png.h:664
static unsigned int add_one_chunk(png_bytep list, unsigned int count, png_const_bytep add, int keep)
Definition: pngset.c:1344
void PNGAPI 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:295
#define PNG_HAVE_PNG_SIGNATURE
Definition: pngpriv.h:636
#define PNG_ALPHA_BROKEN
Definition: png.h:1135
#define PNG_FREE_PCAL
Definition: png.h:1752
#define PNG_TRANSFORM_SWAP_ALPHA
Definition: png.h:841
#define PNG_sCAL_MAX_DIGITS
Definition: pngpriv.h:1855
void PNGFAPI png_set_gamma_fixed(png_structrp png_ptr, png_fixed_point scrn_gamma, png_fixed_point file_gamma)
Definition: pngrtran.c:818
void png_handle_iTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2713
void PNGAPI png_read_end(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:766
static void png_do_unshift(png_row_infop row_info, png_bytep row, png_const_color_8p sig_bits)
Definition: pngrtran.c:2250
#define PNG_CSTRING_FROM_CHUNK(s, c)
Definition: pngpriv.h:893
#define P_NOTSET
Definition: pngread.c:1255
png_byte red
Definition: png.h:480
png_uint_16 num_trans
Definition: pngstruct.h:251
#define png_gAMA
Definition: pngpriv.h:856
void PNGAPI 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:527
int
Definition: createSpeedLookupTable.py:15
int png_gamma_significant(png_fixed_point gamma_val)
Definition: png.c:3509
static void png_do_read_intrapixel(png_row_infop row_info, png_bytep row)
Definition: pngread.c:321
png_uint_32 mode
Definition: pngstruct.h:178
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:2197
void png_ascii_from_fixed(png_const_structrp png_ptr, png_charp ascii, size_t size, png_fixed_point fp)
Definition: png.c:3233
void PNGAPI png_set_user_limits(png_structrp png_ptr, png_uint_32 user_width_max, png_uint_32 user_height_max)
Definition: pngset.c:1636
#define PNG_READ_BACKGROUND_SUPPORTED
Definition: pnglibconf.h:52
const typedef png_color_8 * png_const_color_8p
Definition: png.h:509
#define png_composite_16(composite, fg, alpha, bg)
Definition: png.h:2519
#define PNG_FLAG_CRC_CRITICAL_MASK
Definition: pngpriv.h:714
#define PNG_FLAG_ZSTREAM_ENDED
Definition: pngpriv.h:682
size_t size
Definition: pngpriv.h:2042
void png_destroy_gamma_table(png_structrp png_ptr)
Definition: png.c:4136
const typedef png_color_16 * png_const_color_16p
Definition: png.h:497
#define PNG_PACK
Definition: pngpriv.h:644
png_imagep image
Definition: pngread.c:1280
#define PNG_FLAG_OPTIMIZE_ALPHA
Definition: pngpriv.h:692
#define png_pCAL
Definition: pngpriv.h:864
void png_read_data(png_structrp png_ptr, png_bytep data, size_t length)
Definition: pngrio.c:32
#define PNG_FLAG_CRC_ANCILLARY_MASK
Definition: pngpriv.h:711
const png_uint_16 png_sRGB_table[256]
Definition: png.c:4373
#define PNG_COLOR_MASK_PALETTE
Definition: png.h:663
#define PNG_INFO_sBIT
Definition: png.h:733
void PNGFAPI png_set_alpha_mode_fixed(png_structrp png_ptr, int mode, png_fixed_point output_gamma)
Definition: pngrtran.c:287
int png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent)
Definition: png.c:1872
static void png_init_rgb_transformations(png_structrp png_ptr)
Definition: pngrtran.c:1206
#define PNG_QUANTIZE
Definition: pngpriv.h:648
void png_handle_oFFs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2200
#define PNG_RESTRICT
Definition: pngconf.h:445
png_structrp png_const_color_16p background_color
Definition: png.h:1302
png_const_structrp png_const_inforp double double double double double double double double * blue_Y
Definition: png.h:1939
static void png_do_expand(png_row_infop row_info, png_bytep row, png_const_color_16p trans_color)
Definition: pngrtran.c:4379
#define png_get_int_32(buf)
Definition: png.h:2600
void PNGAPI png_chunk_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:514
#define png_isaligned(ptr, type)
Definition: pngpriv.h:605
unsigned int uInt
Definition: zconf.h:393
#define png_tIME
Definition: pngpriv.h:872
#define PNG_WROTE_tIME
Definition: pngpriv.h:633
int colormap_processing
Definition: pngread.c:1291
void PNGAPI png_read_rows(png_structrp png_ptr, png_bytepp row, png_bytepp display_row, png_uint_32 num_rows)
Definition: pngread.c:645
#define PNG_STRIP_ALPHA
Definition: pngpriv.h:660
#define PNG_TRANSFORM_SWAP_ENDIAN
Definition: png.h:842
#define PNG_FP_MAX
Definition: png.h:658
void png_handle_bKGD(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1921
png_byte interlaced
Definition: pngstruct.h:254
size_t png_safecat(png_charp buffer, size_t bufsize, size_t pos, png_const_charp string)
Definition: pngerror.c:112
png_uint_32 length
Definition: png.c:2247
#define PNG_EQUATION_BASE_E
Definition: png.h:698
#define PNG_INFO_hIST
Definition: png.h:738
png_uint_32 png_read_chunk_header(png_structrp png_ptr)
Definition: pngrutil.c:156
#define PNG_GAMMA
Definition: pngpriv.h:655
png_byte day
Definition: png.h:604
void png_check_chunk_length(png_const_structrp png_ptr, png_uint_32 length)
Definition: pngrutil.c:3153
void PNGAPI 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:428
void PNGAPI png_read_row(png_structrp png_ptr, png_bytep row, png_bytep dsp_row)
Definition: pngread.c:383
png_const_structrp png_const_inforp double double double double double * green_Y
Definition: png.h:1939
int png_chunk_unknown_handling(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition: png.c:961
void PNGAPI png_set_sRGB_gAMA_and_cHRM(png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
Definition: pngset.c:665
void png_zfree(voidpf png_ptr, voidpf ptr)
Definition: png.c:118
png_charp lang
Definition: png.h:574
static int png_image_read_direct(png_voidp argument)
Definition: pngread.c:3666
int ZEXPORT inflateEnd(z_streamp strm)
Definition: inflate.c:1277
png_structrp int mode
Definition: png.h:1139
#define PNG_FP_1
Definition: png.h:656
void png_app_warning(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:392
size_t rowbytes
Definition: png.h:757
static void png_do_gray_to_rgb(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2860
png_infop info_ptr
Definition: pngpriv.h:2038
void png_app_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:405
#define PNG_INFO_iCCP
Definition: png.h:744
void png_handle_sRGB(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1312
int ZEXPORT inflate(z_streamp strm, int flush)
Definition: inflate.c:622
#define PNG_TRANSFORM_SHIFT
Definition: png.h:839
#define PNG_CRC_WARN_USE
Definition: png.h:1439
list b
Definition: createSpeedLookupTable.py:30
png_byte bit_depth
Definition: png.h:759
#define PNG_ENCODE_ALPHA
Definition: pngpriv.h:666
int png_check_fp_string(png_const_charp string, size_t size)
Definition: png.c:2839
#define PNG_FORMAT_FLAG_ALPHA
Definition: png.h:2777
static int png_inflate_claim(png_structrp png_ptr, png_uint_32 owner)
Definition: pngrutil.c:342
#define PNGZ_INPUT_CAST(b)
Definition: pngstruct.h:41
#define PNG_COLOR_TYPE_GRAY_ALPHA
Definition: png.h:672
#define PNG_INFLATE_BUF_SIZE
Definition: pnglibconf.h:196
size_t size
Definition: png.h:626
#define PNG_FREE_UNKN
Definition: png.h:1755
png_uint_16 red
Definition: png.h:491
#define PNG_GAMMA_sRGB_INVERSE
Definition: pngpriv.h:906
static void png_image_skip_unused_chunks(png_structrp png_ptr)
Definition: pngread.c:1603
png_byte hour
Definition: png.h:605
png_structp png_ptr
Definition: pngpriv.h:2037
int ZEXPORT inflateReset(z_streamp strm)
Definition: inflate.c:144
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:773
void PNGAPI png_set_expand_gray_1_2_4_to_8(png_structrp png_ptr)
Definition: pngrtran.c:914
#define PNG_CMAP_GA
Definition: pngread.c:1265
void PNGAPI png_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:216
png_int_32(PNGAPI png_get_int_32)(png_const_bytep buf)
Definition: pngrutil.c:84
#define PNG_EXPAND_16
Definition: pngpriv.h:651
#define png_bKGD
Definition: pngpriv.h:852
int compression
Definition: png.h:564
png_uint_32 height
Definition: pngstruct.h:214
#define PNG_DIV257(v16)
Definition: pngpriv.h:735
#define PNG_COLOR_MASK_ALPHA
Definition: png.h:665
void png_handle_eXIf(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2039
#define PNG_INFO_IDAT
Definition: png.h:747
void PNGAPI png_set_sPLT(png_const_structrp png_ptr, png_inforp info_ptr, png_const_sPLT_tp entries, int nentries)
Definition: pngset.c:1062
void PNGAPI png_set_gamma(png_structrp png_ptr, double scrn_gamma, double file_gamma)
Definition: pngrtran.c:858
#define PNG_STRING_FROM_CHUNK(s, c)
Definition: pngpriv.h:886
png_uint_32 transformations
Definition: pngstruct.h:180
void PNGAPI 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:167
void PNGAPI png_set_tIME(png_const_structrp png_ptr, png_inforp info_ptr, png_const_timep mod_time)
Definition: pngset.c:968
void PNGAPI png_destroy_info_struct(png_const_structrp png_ptr, png_infopp info_ptr_ptr)
Definition: png.c:386
const typedef png_time * png_const_timep
Definition: png.h:610
int PNGAPI png_sig_cmp(png_const_bytep sig, size_t start, size_t num_to_check)
Definition: png.c:74
#define PNG_RGB_TO_GRAY_DEFAULT
Definition: png.h:1079
png_byte left
Definition: pngrtran.c:421
png_error_ptr error_fn
Definition: pngstruct.h:151
#define PNG_COLOR_TYPE_PALETTE
Definition: png.h:669
#define PNG_SWAP_ALPHA
Definition: pngpriv.h:659
static void png_create_colormap_entry(png_image_read_control *display, png_uint_32 ip, png_uint_32 red, png_uint_32 green, png_uint_32 blue, png_uint_32 alpha, int encoding)
Definition: pngread.c:1756
static int png_do_rgb_to_gray(png_structrp png_ptr, png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2999
#define png_sRGB
Definition: pngpriv.h:869
void png_warning_parameter_signed(png_warning_parameters p, int number, int format, png_int_32 value)
Definition: pngerror.c:263
png_uint_32 zowner
Definition: pngstruct.h:182
#define PNG_USER_TRANSFORM
Definition: pngpriv.h:662
offset_x
Definition: g29_auto.py:158
static png_bytep size_t size
Definition: pngwrite.c:2170
void png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA)
Definition: png.c:1114
#define PNG_IO_CHUNK_HDR
Definition: png.h:2426
void PNGAPI png_set_unknown_chunk_location(png_const_structrp png_ptr, png_inforp info_ptr, int chunk, int location)
Definition: pngset.c:1299
#define PNG_CMAP_GA_BACKGROUND
Definition: pngread.c:1272
void PNGAPI png_set_invalid(png_const_structrp png_ptr, png_inforp info_ptr, int mask)
Definition: pngset.c:1626
png_controlp opaque
Definition: png.h:2673
void PNGAPI png_set_bgr(png_structrp png_ptr)
Definition: pngtrans.c:21
png_byte pass
Definition: pngstruct.h:255
png_uint_16 intent
Definition: png.c:2251
void png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
Definition: pngtrans.c:495
#define PNG_IGNORE_ADLER32
Definition: png.h:3207