Prusa MINI Firmware overview
pngstruct.h
Go to the documentation of this file.
1 
2 /* pngstruct.h - header file for PNG reference library
3  *
4  * Copyright (c) 2018 Cosmin Truta
5  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
6  * Copyright (c) 1996-1997 Andreas Dilger
7  * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
8  *
9  * This code is released under the libpng license.
10  * For conditions of distribution and use, see the disclaimer
11  * and license in png.h
12  */
13 
14 /* The structure that holds the information to read and write PNG files.
15  * The only people who need to care about what is inside of this are the
16  * people who will be modifying the library for their own special needs.
17  * It should NOT be accessed directly by an application.
18  */
19 
20 #ifndef PNGSTRUCT_H
21 #define PNGSTRUCT_H
22 /* zlib.h defines the structure z_stream, an instance of which is included
23  * in this structure and is required for decompressing the LZ compressed
24  * data in PNG files.
25  */
26 #ifndef ZLIB_CONST
27  /* We must ensure that zlib uses 'const' in declarations. */
28 # define ZLIB_CONST
29 #endif
30 #include "zlib.h"
31 #ifdef const
32  /* zlib.h sometimes #defines const to nothing, undo this. */
33 # undef const
34 #endif
35 
36 /* zlib.h has mediocre z_const use before 1.2.6, this stuff is for compatibility
37  * with older builds.
38  */
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)
42 #else
43 # define PNGZ_MSG_CAST(s) (s)
44 # define PNGZ_INPUT_CAST(b) (b)
45 #endif
46 
47 /* zlib.h declares a magic type 'uInt' that limits the amount of data that zlib
48  * can handle at once. This type need be no larger than 16 bits (so maximum of
49  * 65535), this define allows us to discover how big it is, but limited by the
50  * maximum for size_t. The value can be overridden in a library build
51  * (pngusr.h, or set it in CPPFLAGS) and it works to set it to a considerably
52  * lower value (e.g. 255 works). A lower value may help memory usage (slightly)
53  * and may even improve performance on some systems (and degrade it on others.)
54  */
55 #ifndef ZLIB_IO_MAX
56 # define ZLIB_IO_MAX ((uInt)-1)
57 #endif
58 
59 #ifdef PNG_WRITE_SUPPORTED
60 /* The type of a compression buffer list used by the write code. */
61 typedef struct png_compression_buffer
62 {
63  struct png_compression_buffer *next;
64  png_byte output[1]; /* actually zbuf_size */
65 } png_compression_buffer, *png_compression_bufferp;
66 
67 #define PNG_COMPRESSION_BUFFER_SIZE(pp)\
68  (offsetof(png_compression_buffer, output) + (pp)->zbuffer_size)
69 #endif
70 
71 /* Colorspace support; structures used in png_struct, png_info and in internal
72  * functions to hold and communicate information about the color space.
73  *
74  * PNG_COLORSPACE_SUPPORTED is only required if the application will perform
75  * colorspace corrections, otherwise all the colorspace information can be
76  * skipped and the size of libpng can be reduced (significantly) by compiling
77  * out the colorspace support.
78  */
79 #ifdef PNG_COLORSPACE_SUPPORTED
80 /* The chromaticities of the red, green and blue colorants and the chromaticity
81  * of the corresponding white point (i.e. of rgb(1.0,1.0,1.0)).
82  */
83 typedef struct png_xy
84 {
85  png_fixed_point redx, redy;
86  png_fixed_point greenx, greeny;
87  png_fixed_point bluex, bluey;
88  png_fixed_point whitex, whitey;
89 } png_xy;
90 
91 /* The same data as above but encoded as CIE XYZ values. When this data comes
92  * from chromaticities the sum of the Y values is assumed to be 1.0
93  */
94 typedef struct png_XYZ
95 {
98  png_fixed_point blue_X, blue_Y, blue_Z;
99 } png_XYZ;
100 #endif /* COLORSPACE */
101 
102 #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
103 /* A colorspace is all the above plus, potentially, profile information;
104  * however at present libpng does not use the profile internally so it is only
105  * stored in the png_info struct (if iCCP is supported.) The rendering intent
106  * is retained here and is checked.
107  *
108  * The file gamma encoding information is also stored here and gamma correction
109  * is done by libpng, whereas color correction must currently be done by the
110  * application.
111  */
112 typedef struct png_colorspace
113 {
114 #ifdef PNG_GAMMA_SUPPORTED
115  png_fixed_point gamma; /* File gamma */
116 #endif
117 
118 #ifdef PNG_COLORSPACE_SUPPORTED
119  png_xy end_points_xy; /* End points as chromaticities */
120  png_XYZ end_points_XYZ; /* End points as CIE XYZ colorant values */
121  png_uint_16 rendering_intent; /* Rendering intent of a profile */
122 #endif
123 
124  /* Flags are always defined to simplify the code. */
125  png_uint_16 flags; /* As defined below */
126 } png_colorspace, * PNG_RESTRICT png_colorspacerp;
127 
128 typedef const png_colorspace * PNG_RESTRICT png_const_colorspacerp;
129 
130 /* General flags for the 'flags' field */
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 /* exact match on profile */
139 #define PNG_COLORSPACE_INVALID 0x8000
140 #define PNG_COLORSPACE_CANCEL(flags) (0xffff ^ (flags))
141 #endif /* COLORSPACE || GAMMA */
142 
144 {
145 #ifdef PNG_SETJMP_SUPPORTED
146  jmp_buf jmp_buf_local; /* New name in 1.6.0 for jmp_buf in png_struct */
147  png_longjmp_ptr longjmp_fn;/* setjmp non-local goto function. */
148  jmp_buf *jmp_buf_ptr; /* passed to longjmp_fn */
149  size_t jmp_buf_size; /* size of the above, if allocated */
150 #endif
151  png_error_ptr error_fn; /* function for printing errors and aborting */
152 #ifdef PNG_WARNINGS_SUPPORTED
153  png_error_ptr warning_fn; /* function for printing warnings */
154 #endif
155  png_voidp error_ptr; /* user supplied struct for error functions */
156  png_rw_ptr write_data_fn; /* function for writing output data */
157  png_rw_ptr read_data_fn; /* function for reading input data */
158  png_voidp io_ptr; /* ptr to application struct for I/O functions */
159 
160 #ifdef PNG_READ_USER_TRANSFORM_SUPPORTED
161  png_user_transform_ptr read_user_transform_fn; /* user read transform */
162 #endif
163 
164 #ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTED
165  png_user_transform_ptr write_user_transform_fn; /* user write transform */
166 #endif
167 
168 /* These were added in libpng-1.0.2 */
169 #ifdef PNG_USER_TRANSFORM_PTR_SUPPORTED
170 #if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
171  defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
172  png_voidp user_transform_ptr; /* user supplied struct for user transform */
173  png_byte user_transform_depth; /* bit depth of user transformed pixels */
174  png_byte user_transform_channels; /* channels in user transformed pixels */
175 #endif
176 #endif
177 
178  png_uint_32 mode; /* tells us where we are in the PNG file */
179  png_uint_32 flags; /* flags indicating various things to libpng */
180  png_uint_32 transformations; /* which transformations to perform */
181 
182  png_uint_32 zowner; /* ID (chunk type) of zstream owner, 0 if none */
183  z_stream zstream; /* decompression structure */
184 
185 #ifdef PNG_WRITE_SUPPORTED
186  png_compression_bufferp zbuffer_list; /* Created on demand during write */
187  uInt zbuffer_size; /* size of the actual buffer */
188 
189  int zlib_level; /* holds zlib compression level */
190  int zlib_method; /* holds zlib compression method */
191  int zlib_window_bits; /* holds zlib compression window bits */
192  int zlib_mem_level; /* holds zlib compression memory level */
193  int zlib_strategy; /* holds zlib compression strategy */
194 #endif
195 /* Added at libpng 1.5.4 */
196 #ifdef PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED
197  int zlib_text_level; /* holds zlib compression level */
198  int zlib_text_method; /* holds zlib compression method */
199  int zlib_text_window_bits; /* holds zlib compression window bits */
200  int zlib_text_mem_level; /* holds zlib compression memory level */
201  int zlib_text_strategy; /* holds zlib compression strategy */
202 #endif
203 /* End of material added at libpng 1.5.4 */
204 /* Added at libpng 1.6.0 */
205 #ifdef PNG_WRITE_SUPPORTED
206  int zlib_set_level; /* Actual values set into the zstream on write */
207  int zlib_set_method;
208  int zlib_set_window_bits;
209  int zlib_set_mem_level;
210  int zlib_set_strategy;
211 #endif
212 
213  png_uint_32 width; /* width of image in pixels */
214  png_uint_32 height; /* height of image in pixels */
215  png_uint_32 num_rows; /* number of rows in current pass */
216  png_uint_32 usr_width; /* width of row at start of write */
217  size_t rowbytes; /* size of row in bytes */
218  png_uint_32 iwidth; /* width of current interlaced row in pixels */
219  png_uint_32 row_number; /* current row in interlace pass */
220  png_uint_32 chunk_name; /* PNG_CHUNK() id of current chunk */
221  png_bytep prev_row; /* buffer to save previous (unfiltered) row.
222  * While reading this is a pointer into
223  * big_prev_row; while writing it is separately
224  * allocated if needed.
225  */
226  png_bytep row_buf; /* buffer to save current (unfiltered) row.
227  * While reading, this is a pointer into
228  * big_row_buf; while writing it is separately
229  * allocated.
230  */
231 #ifdef PNG_READ_EXPAND_SUPPORTED
232  /* Buffer to accelerate palette transformations. */
233  png_bytep riffled_palette;
234 #endif
235 #ifdef PNG_WRITE_FILTER_SUPPORTED
236  png_bytep try_row; /* buffer to save trial row when filtering */
237  png_bytep tst_row; /* buffer to save best trial row when filtering */
238 #endif
239  size_t info_rowbytes; /* Added in 1.5.4: cache of updated row bytes */
240 
241  png_uint_32 idat_size; /* current IDAT size for read */
242  png_uint_32 crc; /* current chunk CRC value */
243  png_colorp palette; /* palette from the input file */
244  png_uint_16 num_palette; /* number of color entries in palette */
245 
246 /* Added at libpng-1.5.10 */
247 #ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
248  int num_palette_max; /* maximum palette index found in IDAT */
249 #endif
250 
251  png_uint_16 num_trans; /* number of transparency values */
252  png_byte compression; /* file compression type (always 0) */
253  png_byte filter; /* file filter type (always 0) */
254  png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
255  png_byte pass; /* current interlace pass (0 - 6) */
256  png_byte do_filter; /* row filter flags (see PNG_FILTER_ in png.h ) */
257  png_byte color_type; /* color type of file */
258  png_byte bit_depth; /* bit depth of file */
259  png_byte usr_bit_depth; /* bit depth of users row: write only */
260  png_byte pixel_depth; /* number of bits per pixel */
261  png_byte channels; /* number of channels in file */
262 #ifdef PNG_WRITE_SUPPORTED
263  png_byte usr_channels; /* channels at start of write: write only */
264 #endif
265  png_byte sig_bytes; /* magic bytes read/written from start of file */
267  /* pixel depth used for the row buffers */
269  /* pixel depth after read/write transforms */
270 #if ZLIB_VERNUM >= 0x1240
271  png_byte zstream_start; /* at start of an input zlib stream */
272 #endif /* Zlib >= 1.2.4 */
273 #if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED)
274  png_uint_16 filler; /* filler bytes for pixel expansion */
275 #endif
276 
277 #if defined(PNG_bKGD_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) ||\
278  defined(PNG_READ_ALPHA_MODE_SUPPORTED)
279  png_byte background_gamma_type;
280  png_fixed_point background_gamma;
281  png_color_16 background; /* background color in screen gamma space */
282 #ifdef PNG_READ_GAMMA_SUPPORTED
283  png_color_16 background_1; /* background normalized to gamma 1.0 */
284 #endif
285 #endif /* bKGD */
286 
287 #ifdef PNG_WRITE_FLUSH_SUPPORTED
288  png_flush_ptr output_flush_fn; /* Function for flushing output */
289  png_uint_32 flush_dist; /* how many rows apart to flush, 0 - no flush */
290  png_uint_32 flush_rows; /* number of rows written since last flush */
291 #endif
292 
293 #ifdef PNG_READ_GAMMA_SUPPORTED
294  int gamma_shift; /* number of "insignificant" bits in 16-bit gamma */
295  png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */
296 
297  png_bytep gamma_table; /* gamma table for 8-bit depth files */
298  png_uint_16pp gamma_16_table; /* gamma table for 16-bit depth files */
299 #if defined(PNG_READ_BACKGROUND_SUPPORTED) || \
300  defined(PNG_READ_ALPHA_MODE_SUPPORTED) || \
301  defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
302  png_bytep gamma_from_1; /* converts from 1.0 to screen */
303  png_bytep gamma_to_1; /* converts from file to 1.0 */
304  png_uint_16pp gamma_16_from_1; /* converts from 1.0 to screen */
305  png_uint_16pp gamma_16_to_1; /* converts from file to 1.0 */
306 #endif /* READ_BACKGROUND || READ_ALPHA_MODE || RGB_TO_GRAY */
307 #endif
308 
309 #if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_sBIT_SUPPORTED)
310  png_color_8 sig_bit; /* significant bits in each available channel */
311 #endif
312 
313 #if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED)
314  png_color_8 shift; /* shift for significant bit transformation */
315 #endif
316 
317 #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) \
318  || defined(PNG_READ_EXPAND_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED)
319  png_bytep trans_alpha; /* alpha values for paletted files */
320  png_color_16 trans_color; /* transparent color for non-paletted files */
321 #endif
322 
323  png_read_status_ptr read_row_fn; /* called after each row is decoded */
324  png_write_status_ptr write_row_fn; /* called after each row is encoded */
325 #ifdef PNG_PROGRESSIVE_READ_SUPPORTED
326  png_progressive_info_ptr info_fn; /* called after header data fully read */
327  png_progressive_row_ptr row_fn; /* called after a prog. row is decoded */
328  png_progressive_end_ptr end_fn; /* called after image is complete */
329  png_bytep save_buffer_ptr; /* current location in save_buffer */
330  png_bytep save_buffer; /* buffer for previously read data */
331  png_bytep current_buffer_ptr; /* current location in current_buffer */
332  png_bytep current_buffer; /* buffer for recently used data */
333  png_uint_32 push_length; /* size of current input chunk */
334  png_uint_32 skip_length; /* bytes to skip in input data */
335  size_t save_buffer_size; /* amount of data now in save_buffer */
336  size_t save_buffer_max; /* total size of save_buffer */
337  size_t buffer_size; /* total amount of available input data */
338  size_t current_buffer_size; /* amount of data now in current_buffer */
339  int process_mode; /* what push library is currently doing */
340  int cur_palette; /* current push library palette index */
341 
342 #endif /* PROGRESSIVE_READ */
343 
344 #if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__)
345 /* For the Borland special 64K segment handler */
346  png_bytepp offset_table_ptr;
347  png_bytep offset_table;
348  png_uint_16 offset_table_number;
349  png_uint_16 offset_table_count;
350  png_uint_16 offset_table_count_free;
351 #endif
352 
353 #ifdef PNG_READ_QUANTIZE_SUPPORTED
354  png_bytep palette_lookup; /* lookup table for quantizing */
355  png_bytep quantize_index; /* index translation for palette files */
356 #endif
357 
358 /* Options */
359 #ifdef PNG_SET_OPTION_SUPPORTED
360  png_uint_32 options; /* On/off state (up to 16 options) */
361 #endif
362 
363 #if PNG_LIBPNG_VER < 10700
364 /* To do: remove this from libpng-1.7 */
365 #ifdef PNG_TIME_RFC1123_SUPPORTED
366  char time_buffer[29]; /* String to hold RFC 1123 time text */
367 #endif
368 #endif
369 
370 /* New members added in libpng-1.0.6 */
371 
372  png_uint_32 free_me; /* flags items libpng is responsible for freeing */
373 
374 #ifdef PNG_USER_CHUNKS_SUPPORTED
375  png_voidp user_chunk_ptr;
376 #ifdef PNG_READ_USER_CHUNKS_SUPPORTED
377  png_user_chunk_ptr read_user_chunk_fn; /* user read chunk handler */
378 #endif
379 #endif
380 
381 #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED
382  int unknown_default; /* As PNG_HANDLE_* */
383  unsigned int num_chunk_list; /* Number of entries in the list */
384  png_bytep chunk_list; /* List of png_byte[5]; the textual chunk name
385  * followed by a PNG_HANDLE_* byte */
386 #endif
387 
388 /* New members added in libpng-1.0.3 */
389 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED
390  png_byte rgb_to_gray_status;
391  /* Added in libpng 1.5.5 to record setting of coefficients: */
392  png_byte rgb_to_gray_coefficients_set;
393  /* These were changed from png_byte in libpng-1.0.6 */
394  png_uint_16 rgb_to_gray_red_coeff;
395  png_uint_16 rgb_to_gray_green_coeff;
396  /* deleted in 1.5.5: rgb_to_gray_blue_coeff; */
397 #endif
398 
399 /* New member added in libpng-1.0.4 (renamed in 1.0.9) */
400 #if defined(PNG_MNG_FEATURES_SUPPORTED)
401 /* Changed from png_byte to png_uint_32 at version 1.2.0 */
402  png_uint_32 mng_features_permitted;
403 #endif
404 
405 /* New member added in libpng-1.0.9, ifdef'ed out in 1.0.12, enabled in 1.2.0 */
406 #ifdef PNG_MNG_FEATURES_SUPPORTED
407  png_byte filter_type;
408 #endif
409 
410 /* New members added in libpng-1.2.0 */
411 
412 /* New members added in libpng-1.0.2 but first enabled by default in 1.2.0 */
413 #ifdef PNG_USER_MEM_SUPPORTED
414  png_voidp mem_ptr; /* user supplied struct for mem functions */
415  png_malloc_ptr malloc_fn; /* function for allocating memory */
416  png_free_ptr free_fn; /* function for freeing memory */
417 #endif
418 
419 /* New member added in libpng-1.0.13 and 1.2.0 */
420  png_bytep big_row_buf; /* buffer to save current (unfiltered) row */
421 
422 #ifdef PNG_READ_QUANTIZE_SUPPORTED
423 /* The following three members were added at version 1.0.14 and 1.2.4 */
424  png_bytep quantize_sort; /* working sort array */
425  png_bytep index_to_palette; /* where the original index currently is
426  in the palette */
427  png_bytep palette_to_index; /* which original index points to this
428  palette color */
429 #endif
430 
431 /* New members added in libpng-1.0.16 and 1.2.6 */
433 
434 #ifdef PNG_USER_LIMITS_SUPPORTED
435  png_uint_32 user_width_max;
436  png_uint_32 user_height_max;
437 
438  /* Added in libpng-1.4.0: Total number of sPLT, text, and unknown
439  * chunks that can be stored (0 means unlimited).
440  */
441  png_uint_32 user_chunk_cache_max;
442 
443  /* Total memory that a zTXt, sPLT, iTXt, iCCP, or unknown chunk
444  * can occupy when decompressed. 0 means unlimited.
445  */
446  png_alloc_size_t user_chunk_malloc_max;
447 #endif
448 
449 /* New member added in libpng-1.0.25 and 1.2.17 */
450 #ifdef PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
451  /* Temporary storage for unknown chunk that the library doesn't recognize,
452  * used while reading the chunk.
453  */
454  png_unknown_chunk unknown_chunk;
455 #endif
456 
457 /* New member added in libpng-1.2.26 */
459 
460 #ifdef PNG_READ_SUPPORTED
461 /* New member added in libpng-1.2.30 */
462  png_bytep read_buffer; /* buffer for reading chunk data */
463  png_alloc_size_t read_buffer_size; /* current size of the buffer */
464 #endif
465 #ifdef PNG_SEQUENTIAL_READ_SUPPORTED
466  uInt IDAT_read_size; /* limit on read buffer size for IDAT */
467 #endif
468 
469 #ifdef PNG_IO_STATE_SUPPORTED
470 /* New member added in libpng-1.4.0 */
471  png_uint_32 io_state;
472 #endif
473 
474 /* New member added in libpng-1.5.6 */
476 
477 /* New member added in libpng-1.5.7 */
480 
481 #ifdef PNG_READ_SUPPORTED
482 #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
483  png_colorspace colorspace;
484 #endif
485 #endif
486 };
487 #endif /* PNGSTRUCT_H */
Z_MEM_ERROR
#define Z_MEM_ERROR
Definition: zlib.h:183
png_unknown_chunk_t::location
png_byte location
Definition: png.h:634
PNG_BGR
#define PNG_BGR
Definition: pngpriv.h:642
Bytef
Byte FAR Bytef
Definition: zconf.h:400
png_image::width
png_uint_32 width
Definition: png.h:2675
png_handle_sPLT
void png_handle_sPLT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1640
png_set_tRNS
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
PNG_SCALE_16_TO_8
#define PNG_SCALE_16_TO_8
Definition: pngpriv.h:669
png_handle_IHDR
void png_handle_IHDR(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:839
png_read_finish_row
void png_read_finish_row(png_structrp png_ptr)
Definition: pngrutil.c:4326
PNG_MNG_FEATURES_SUPPORTED
#define PNG_MNG_FEATURES_SUPPORTED
Definition: pnglibconf.h:44
P_sRGB
#define P_sRGB
Definition: pngread.c:1256
png_image::colormap_entries
png_uint_32 colormap_entries
Definition: png.h:2679
inflateValidate
int ZEXPORT inflateValidate(z_streamp strm, int check)
Definition: inflate.c:1526
png_read_finish_IDAT
void png_read_finish_IDAT(png_structrp png_ptr)
Definition: pngrutil.c:4278
PNG_IMAGE_PIXEL_COMPONENT_SIZE
#define PNG_IMAGE_PIXEL_COMPONENT_SIZE(fmt)
Definition: png.h:2887
png_struct_def::zstream
z_stream zstream
Definition: pngstruct.h:183
png_sPLT_entry_struct
Definition: png.h:516
crc
png_uint_32 crc
Definition: png.c:2247
PNG_FREE_TRNS
#define PNG_FREE_TRNS
Definition: png.h:1759
png_const_bytep
const typedef png_byte * png_const_bytep
Definition: pngconf.h:580
png_do_chop
static void png_do_chop(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2450
PNG_CHUNK_ANCILLARY
#define PNG_CHUNK_ANCILLARY(c)
Definition: pngpriv.h:897
PNG_FLAG_MNG_EMPTY_PLTE
#define PNG_FLAG_MNG_EMPTY_PLTE
Definition: png.h:857
png_struct_def::iwidth
png_uint_32 iwidth
Definition: pngstruct.h:218
PNG_AFTER_IDAT
#define PNG_AFTER_IDAT
Definition: png.h:646
PNG_FREE_ROWS
#define PNG_FREE_ROWS
Definition: png.h:1751
png_set_gAMA_fixed
void PNGFAPI png_set_gAMA_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point file_gamma)
Definition: pngset.c:186
PNG_FP_MIN
#define PNG_FP_MIN
Definition: png.h:659
P_LINEAR8
#define P_LINEAR8
Definition: pngread.c:1259
PNG_RGB_INDEX
#define PNG_RGB_INDEX(r, g, b)
Definition: pngread.c:2080
PNG_QUANTIZE_BLUE_BITS
#define PNG_QUANTIZE_BLUE_BITS
Definition: pnglibconf.h:202
PNG_FREE_SPLT
#define PNG_FREE_SPLT
Definition: png.h:1750
png_destroy_read_struct
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
png_set_rgb_to_gray_fixed
Definition: png.h:1083
png_safe_execute
int png_safe_execute(png_imagep image_in, int(*function)(png_voidp), png_voidp arg)
Definition: pngerror.c:936
png_sCAL
#define png_sCAL
Definition: pngpriv.h:867
PNG_TEXT_COMPRESSION_zTXt
#define PNG_TEXT_COMPRESSION_zTXt
Definition: png.h:589
png_uint_32
png_uint_32(PNGAPI png_get_uint_32)(png_const_bytep buf)
Definition: pngrutil.c:67
PNG_16_TO_8
#define PNG_16_TO_8
Definition: pngpriv.h:652
png_image_read_control::file_encoding
int file_encoding
Definition: pngread.c:1289
PNG_FILLER_AFTER
#define PNG_FILLER_AFTER
Definition: png.h:1249
PNG_QUANTIZE_GREEN_BITS
#define PNG_QUANTIZE_GREEN_BITS
Definition: pnglibconf.h:203
PNG_EXPAND
#define PNG_EXPAND
Definition: pngpriv.h:654
png_set_background_fixed
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
PNG_GAMMA_MAC_18
#define PNG_GAMMA_MAC_18
Definition: png.h:1148
png_reciprocal
png_fixed_point png_reciprocal(png_fixed_point a)
Definition: png.c:3488
PNG_UNUSED
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
PNG_sRGB_FROM_LINEAR
#define PNG_sRGB_FROM_LINEAR(linear)
Definition: pngpriv.h:952
png_struct_def::row_number
png_uint_32 row_number
Definition: pngstruct.h:219
PNG_GRAY_COLORMAP_ENTRIES
#define PNG_GRAY_COLORMAP_ENTRIES
Definition: pngread.c:1997
png_struct_def::error_ptr
png_voidp error_ptr
Definition: pngstruct.h:155
int_green_X
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
png_dsort_struct::next
struct png_dsort_struct * next
Definition: pngrtran.c:420
png_struct_def::read_data_fn
png_rw_ptr read_data_fn
Definition: pngstruct.h:157
png_struct_def::info_rowbytes
size_t info_rowbytes
Definition: pngstruct.h:239
png_image_memory_read
static void PNGCBAPI png_image_memory_read(png_structp png_ptr, png_bytep out, size_t need)
Definition: pngread.c:1535
PNG_HANDLE_CHUNK_IF_SAFE
#define PNG_HANDLE_CHUNK_IF_SAFE
Definition: png.h:2347
PNG_RGB_COLORMAP_ENTRIES
#define PNG_RGB_COLORMAP_ENTRIES
Definition: pngread.c:2077
png_build_gamma_table
void png_build_gamma_table(png_structrp png_ptr, int bit_depth)
Definition: png.c:4196
PNG_FREE_HIST
#define PNG_FREE_HIST
Definition: png.h:1748
png_eXIf
#define png_eXIf
Definition: pngpriv.h:854
PNG_DEFAULT_sRGB
#define PNG_DEFAULT_sRGB
Definition: png.h:1147
int_blue_Y
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
png_inflate
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
PNG_ALPHA_STANDARD
#define PNG_ALPHA_STANDARD
Definition: png.h:1131
png_time_struct::second
png_byte second
Definition: png.h:607
png_set_sRGB
void PNGAPI png_set_sRGB(png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
Definition: pngset.c:653
PNG_FORMAT_FLAG_ASSOCIATED_ALPHA
#define PNG_FORMAT_FLAG_ASSOCIATED_ALPHA
Definition: png.h:2790
PNG_TRANSFORM_STRIP_ALPHA
#define PNG_TRANSFORM_STRIP_ALPHA
Definition: png.h:834
PNG_INVERT_ALPHA
#define PNG_INVERT_ALPHA
Definition: pngpriv.h:661
PNG_INFO_tIME
#define PNG_INFO_tIME
Definition: png.h:741
png_color_16_struct::blue
png_uint_16 blue
Definition: png.h:493
png_handle_tRNS
void png_handle_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1817
png_do_gamma
static void png_do_gamma(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
Definition: pngrtran.c:3944
png_tRNS
#define png_tRNS
Definition: pngpriv.h:873
png_struct_def::filter
png_byte filter
Definition: pngstruct.h:253
PNG_CMAP_RGB
#define PNG_CMAP_RGB
Definition: pngread.c:1267
PNG_IMAGE_FLAG_16BIT_sRGB
#define PNG_IMAGE_FLAG_16BIT_sRGB
Definition: png.h:2953
PNG_UINT_31_MAX
#define PNG_UINT_31_MAX
Definition: png.h:649
g29_auto.offset_y
offset_y
Definition: g29_auto.py:163
PNG_CRC_ERROR_QUIT
#define PNG_CRC_ERROR_QUIT
Definition: png.h:1437
PNG_HAVE_PLTE
#define PNG_HAVE_PLTE
Definition: png.h:645
PNG_READ_PACK_SUPPORTED
#define PNG_READ_PACK_SUPPORTED
Definition: pnglibconf.h:69
PNG_IO_READING
#define PNG_IO_READING
Definition: png.h:2423
png_voidp
void * png_voidp
Definition: pngconf.h:577
png_color_16_struct
Definition: png.h:488
png_fixed
png_fixed_point png_fixed(png_const_structrp png_ptr, double fp, png_const_charp text)
Definition: png.c:3316
PNG_INFO_tRNS
#define PNG_INFO_tRNS
Definition: png.h:736
PNG_TRANSFORM_EXPAND
#define PNG_TRANSFORM_EXPAND
Definition: png.h:837
error_action
png_structrp int error_action
Definition: png.h:1083
png_set_PLTE
void PNGAPI png_set_PLTE(png_structrp png_ptr, png_inforp info_ptr, png_const_colorp palette, int num_palette)
Definition: pngset.c:572
png_read_update_info
void PNGAPI png_read_update_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:267
png_set_chunk_malloc_max
void PNGAPI png_set_chunk_malloc_max(png_structrp png_ptr, png_alloc_size_t user_chunk_malloc_max)
Definition: pngset.c:1660
PNG_CMAP_RGB_ALPHA_BACKGROUND
#define PNG_CMAP_RGB_ALPHA_BACKGROUND
Definition: pngread.c:1275
PNG_FLAG_APP_WARNINGS_WARN
#define PNG_FLAG_APP_WARNINGS_WARN
Definition: pngpriv.h:700
png_set_unknown_chunks
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
png_gamma_threshold
static int png_gamma_threshold(png_fixed_point screen_gamma, png_fixed_point file_gamma)
Definition: pngrtran.c:1092
png_PLTE
#define png_PLTE
Definition: pngpriv.h:851
PNG_CMAP_RGB_BACKGROUND
#define PNG_CMAP_RGB_BACKGROUND
Definition: pngread.c:1274
png_inflate_read
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
PNG_OPTION_ON
#define PNG_OPTION_ON
Definition: png.h:3217
png_init_filter_functions
static void png_init_filter_functions(png_structrp pp)
Definition: pngrutil.c:4094
PNG_FIXED_ERROR
#define PNG_FIXED_ERROR
Definition: pngrutil.c:38
PNG_BACKGROUND_EXPAND
#define PNG_BACKGROUND_EXPAND
Definition: pngpriv.h:650
png_free
void PNGAPI png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:232
png_zTXt
#define png_zTXt
Definition: pngpriv.h:874
png_cache_unknown_chunk
static int png_cache_unknown_chunk(png_structrp png_ptr, png_uint_32 length)
Definition: pngrutil.c:2863
png_sPLT_entry
struct png_sPLT_entry_struct png_sPLT_entry
png_iTXt
#define png_iTXt
Definition: pngpriv.h:862
PNG_INFO_pCAL
#define PNG_INFO_pCAL
Definition: png.h:742
png_read_filter_row_paeth_multibyte_pixel
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
PNG_COLOR_DIST
#define PNG_COLOR_DIST(c1, c2)
Definition: pngpriv.h:722
PNGCBAPI
#define PNGCBAPI
Definition: pngconf.h:258
PNG_INFO_oFFs
#define PNG_INFO_oFFs
Definition: png.h:740
png_set_swap_alpha
void PNGAPI png_set_swap_alpha(png_structrp png_ptr)
Definition: pngtrans.c:223
unit
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
convert_gamma_value
static png_fixed_point convert_gamma_value(png_structrp png_ptr, double output_gamma)
Definition: pngrtran.c:262
png_set_iCCP
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
png_image_begin_read_from_memory
int PNGAPI png_image_begin_read_from_memory(png_imagep image, png_const_voidp memory, size_t size)
Definition: pngread.c:1564
png_aligncastconst
#define png_aligncastconst(type, value)
Definition: pngpriv.h:506
PNG_IMAGE_VERSION
#define PNG_IMAGE_VERSION
Definition: png.h:2668
png_set_alpha_mode_fixed
png_set_alpha_mode_fixed
Definition: png.h:1139
png_dsort
struct png_dsort_struct png_dsort
PNG_RGB_TO_GRAY_ERR
#define PNG_RGB_TO_GRAY_ERR
Definition: pngpriv.h:663
png_image_read_init
static int png_image_read_init(png_imagep image)
Definition: pngread.c:1300
int_red_Y
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
png_charp
char * png_charp
Definition: pngconf.h:589
png_formatted_warning
void png_formatted_warning(png_const_structrp png_ptr, png_warning_parameters p, png_const_charp message)
Definition: pngerror.c:284
PNG_GAMMA_sRGB
#define PNG_GAMMA_sRGB
Definition: png.h:1149
Z_DATA_ERROR
#define Z_DATA_ERROR
Definition: zlib.h:182
PNG_IO_CHUNK_CRC
#define PNG_IO_CHUNK_CRC
Definition: png.h:2428
int_red_Z
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
PNG_UNEXPECTED_ZLIB_RETURN
#define PNG_UNEXPECTED_ZLIB_RETURN
Definition: pngpriv.h:973
PNG_TRANSFORM_INVERT_MONO
#define PNG_TRANSFORM_INVERT_MONO
Definition: png.h:838
png_init_read_transformations
void png_init_read_transformations(png_structrp png_ptr)
Definition: pngrtran.c:1291
png_image_read_control::buffer
png_voidp buffer
Definition: pngread.c:1281
png_set_interlace_handling
int PNGAPI png_set_interlace_handling(png_structrp png_ptr)
Definition: pngtrans.c:99
png_set_scale_16
void PNGAPI png_set_scale_16(png_structrp png_ptr)
Definition: pngrtran.c:183
PNG_GRAY_TO_RGB
#define PNG_GRAY_TO_RGB
Definition: pngpriv.h:656
png_read_filter_row_up
static void png_read_filter_row_up(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:3949
png_set_gAMA
void PNGAPI png_set_gAMA(png_const_structrp png_ptr, png_inforp info_ptr, double file_gamma)
Definition: pngset.c:200
png_image::flags
png_uint_32 flags
Definition: png.h:2678
png_sPLT_entry_struct::frequency
png_uint_16 frequency
Definition: png.h:522
PNG_FREE_SCAL
#define PNG_FREE_SCAL
Definition: png.h:1753
PNG_CMAP_TRANS_BACKGROUND
#define PNG_CMAP_TRANS_BACKGROUND
Definition: pngread.c:1273
PNG_INTERLACE_NONE
#define PNG_INTERLACE_NONE
Definition: png.h:687
pngpriv.h
png_inforp
png_info *PNG_RESTRICT png_inforp
Definition: png.h:471
PNG_EQUATION_HYPERBOLIC
#define PNG_EQUATION_HYPERBOLIC
Definition: png.h:700
png_sPLT_struct::entries
png_sPLT_entryp entries
Definition: png.h:537
type
uint8_t type
Definition: UsbCore.h:184
png_bytepp
png_byte ** png_bytepp
Definition: pngconf.h:606
png_permit_mng_features
png_uint_32 PNGAPI png_permit_mng_features(png_structrp png_ptr, png_uint_32 mng_features)
Definition: pngset.c:1329
PNG_BACKGROUND_GAMMA_UNIQUE
#define PNG_BACKGROUND_GAMMA_UNIQUE
Definition: png.h:1310
PNG_COMPOSE
#define PNG_COMPOSE
Definition: pngpriv.h:649
png_struct_def::width
png_uint_32 width
Definition: pngstruct.h:213
Z_FINISH
#define Z_FINISH
Definition: zlib.h:172
png_image_read_control::first_row
png_voidp first_row
Definition: pngread.c:1287
png_struct_def::write_row_fn
png_write_status_ptr write_row_fn
Definition: pngstruct.h:324
abs
#define abs(x)
Definition: wiring_constants.h:32
png_handle_sCAL
void png_handle_sCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2376
make_gray_file_colormap
static int make_gray_file_colormap(png_image_read_control *display)
Definition: pngread.c:1977
PNG_READ_ALPHA_MODE_SUPPORTED
#define PNG_READ_ALPHA_MODE_SUPPORTED
Definition: pnglibconf.h:50
PNG_FLAG_ROW_INIT
#define PNG_FLAG_ROW_INIT
Definition: pngpriv.h:685
Z_STREAM_ERROR
#define Z_STREAM_ERROR
Definition: zlib.h:181
PNG_IS_READ_STRUCT
#define PNG_IS_READ_STRUCT
Definition: pngpriv.h:639
data
uint8_t data[8]
Definition: masstorage.h:49
PNG_FP_IS_POSITIVE
#define PNG_FP_IS_POSITIVE(state)
Definition: pngpriv.h:1939
PNG_EQUATION_LAST
#define PNG_EQUATION_LAST
Definition: png.h:701
png_sPLT_struct::name
png_charp name
Definition: png.h:535
PNG_EXPAND_tRNS
#define PNG_EXPAND_tRNS
Definition: pngpriv.h:668
png_handle_PLTE
void png_handle_PLTE(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:913
png_get_uint_31
png_uint_32 PNGAPI png_get_uint_31(png_const_structrp png_ptr, png_const_bytep buf)
Definition: pngrutil.c:22
PNG_UINT_32_MAX
#define PNG_UINT_32_MAX
Definition: png.h:650
png_color_16_struct::gray
png_uint_16 gray
Definition: png.h:494
png_struct_def::transformed_pixel_depth
png_byte transformed_pixel_depth
Definition: pngstruct.h:268
png_bytep
png_byte * png_bytep
Definition: pngconf.h:579
red_Y
png_const_structrp png_const_inforp double double * red_Y
Definition: png.h:1939
i
uint8_t i
Definition: screen_test_graph.c:72
PNG_ALPHA_ASSOCIATED
#define PNG_ALPHA_ASSOCIATED
Definition: png.h:1132
int_green_Y
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
png_do_read_invert_alpha
static void png_do_read_invert_alpha(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2571
PNG_PASS_COLS
#define PNG_PASS_COLS(width, pass)
Definition: png.h:2468
png_do_encode_alpha
static void png_do_encode_alpha(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
Definition: pngrtran.c:4145
png_crc_error
int png_crc_error(png_structrp png_ptr)
Definition: pngrutil.c:251
png_gamma_correct
png_uint_16 png_gamma_correct(png_structrp png_ptr, unsigned int value, png_fixed_point gamma_val)
Definition: png.c:3947
PNG_INVERT_MONO
#define PNG_INVERT_MONO
Definition: pngpriv.h:647
make_gray_colormap
static int make_gray_colormap(png_image_read_control *display)
Definition: pngread.c:1988
png_read_filter_row_paeth_1byte_pixel
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
PNG_INFO_PLTE
#define PNG_INFO_PLTE
Definition: png.h:735
png_image_read_colormap
static int png_image_read_colormap(png_voidp argument)
Definition: pngread.c:2084
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
png_set_rgb_to_gray
void PNGAPI png_set_rgb_to_gray(png_structrp png_ptr, int error_action, double red, double green)
Definition: pngrtran.c:1059
PNG_ERROR_ACTION_WARN
#define PNG_ERROR_ACTION_WARN
Definition: png.h:1077
PNG_WARNING_PARAMETERS
#define PNG_WARNING_PARAMETERS(p)
Definition: pngpriv.h:454
png_set_shift
void PNGAPI png_set_shift(png_structrp png_ptr, png_const_color_8p true_bits)
Definition: pngtrans.c:84
PNG_READ_FILLER_SUPPORTED
#define PNG_READ_FILLER_SUPPORTED
Definition: pnglibconf.h:59
png_const_structrp
const typedef png_struct *PNG_RESTRICT png_const_structrp
Definition: png.h:470
png_struct_def::do_filter
png_byte do_filter
Definition: pngstruct.h:256
png_read_destroy
static void png_read_destroy(png_structrp png_ptr)
Definition: pngread.c:940
PNG_IMAGE_SAMPLE_SIZE
#define PNG_IMAGE_SAMPLE_SIZE(fmt)
Definition: png.h:2855
png_set_invert_mono
void PNGAPI png_set_invert_mono(png_structrp png_ptr)
Definition: pngtrans.c:250
png_do_read_interlace
void png_do_read_interlace(png_row_infop row_info, png_bytep row, int pass, png_uint_32 transformations)
Definition: pngrutil.c:3684
png_const_colorp
const typedef png_color * png_const_colorp
Definition: png.h:485
png_combine_row
void png_combine_row(png_const_structrp png_ptr, png_bytep dp, int display)
Definition: pngrutil.c:3200
PNG_FORMAT_FLAG_AFIRST
#define PNG_FORMAT_FLAG_AFIRST
Definition: png.h:2787
png_set_eXIf
void PNGAPI png_set_eXIf(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep eXIf_buf)
Definition: pngset.c:139
PNG_TEXT_COMPRESSION_LAST
#define PNG_TEXT_COMPRESSION_LAST
Definition: png.h:592
png_set_sBIT
void PNGAPI png_set_sBIT(png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_8p sig_bit)
Definition: pngset.c:638
PNG_FORMAT_FLAG_BGR
#define PNG_FORMAT_FLAG_BGR
Definition: png.h:2783
PNG_COLOR_TYPE_RGB_ALPHA
#define PNG_COLOR_TYPE_RGB_ALPHA
Definition: png.h:671
png_check_chunk_name
void png_check_chunk_name(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition: pngrutil.c:3134
PNG_GAMMA_MAC_OLD
#define PNG_GAMMA_MAC_OLD
Definition: pngpriv.h:904
png_control::for_write
unsigned int for_write
Definition: pngpriv.h:2044
png_struct_def::old_big_row_buf_size
size_t old_big_row_buf_size
Definition: pngstruct.h:458
png_set_cHRM
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
PNG_IMAGE_FLAG_COLORSPACE_NOT_sRGB
#define PNG_IMAGE_FLAG_COLORSPACE_NOT_sRGB
Definition: png.h:2937
width
png_const_structrp png_const_inforp int png_fixed_point * width
Definition: png.h:2161
PNG_FLAG_ASSUME_sRGB
#define PNG_FLAG_ASSUME_sRGB
Definition: pngpriv.h:691
need_expand
png_structrp png_const_color_16p int int need_expand
Definition: png.h:1302
png_free_buffer_list
void png_free_buffer_list(png_structrp png_ptr, png_compression_bufferp *listp)
Definition: pngwutil.c:439
PNG_CHUNK_CRITICAL
#define PNG_CHUNK_CRITICAL(c)
Definition: pngpriv.h:898
PNG_FLAG_CRC_CRITICAL_IGNORE
#define PNG_FLAG_CRC_CRITICAL_IGNORE
Definition: pngpriv.h:690
png_handle_tEXt
void png_handle_tEXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2515
png_struct_def::crc
png_uint_32 crc
Definition: pngstruct.h:242
png_struct_def::color_type
png_byte color_type
Definition: pngstruct.h:257
PNG_READ_EXPAND_SUPPORTED
#define PNG_READ_EXPAND_SUPPORTED
Definition: pnglibconf.h:58
png_image_read_background
static int png_image_read_background(png_voidp argument)
Definition: pngread.c:3386
png_set_strip_16
void PNGAPI png_set_strip_16(png_structrp png_ptr)
Definition: pngrtran.c:197
PNG_GAMMA_MAC_INVERSE
#define PNG_GAMMA_MAC_INVERSE
Definition: pngpriv.h:905
png_debug2
#define png_debug2(l, m, p1, p2)
Definition: pngdebug.h:151
PNG_SIZE_MAX
#define PNG_SIZE_MAX
Definition: png.h:651
png_set_compression_buffer_size
void PNGAPI png_set_compression_buffer_size(png_structrp png_ptr, size_t size)
Definition: pngset.c:1566
PNG_GAMMA_LINEAR
#define PNG_GAMMA_LINEAR
Definition: png.h:1150
png_do_unpack
static void png_do_unpack(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2152
png_iCCP
#define png_iCCP
Definition: pngpriv.h:861
int_red_X
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
inflateInit
#define inflateInit(strm)
Definition: zlib.h:1795
png_set_pCAL
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
png_const_sPLT_tp
const typedef png_sPLT_t * png_const_sPLT_tp
Definition: png.h:541
png_unknown_chunk_t::name
png_byte name[5]
Definition: png.h:624
png_init_palette_transformations
static void png_init_palette_transformations(png_structrp png_ptr)
Definition: pngrtran.c:1117
png_tEXt
#define png_tEXt
Definition: pngpriv.h:871
PNG_CRC_NO_CHANGE
#define PNG_CRC_NO_CHANGE
Definition: png.h:1441
PNG_HAVE_CHUNK_AFTER_IDAT
#define PNG_HAVE_CHUNK_AFTER_IDAT
Definition: pngpriv.h:637
PNG_INTRAPIXEL_DIFFERENCING
#define PNG_INTRAPIXEL_DIFFERENCING
Definition: png.h:683
png_struct_def::free_me
png_uint_32 free_me
Definition: pngstruct.h:372
png_image_read_colormapped
static int png_image_read_colormapped(png_voidp argument)
Definition: pngread.c:3127
png_voidcast
#define png_voidcast(type, value)
Definition: pngpriv.h:494
png_const_unknown_chunkp
const typedef png_unknown_chunk * png_const_unknown_chunkp
Definition: png.h:639
png_image_read_control::local_row
png_voidp local_row
Definition: pngread.c:1286
red_X
png_const_structrp png_const_inforp double * red_X
Definition: png.h:1939
PNG_IO_SIGNATURE
#define PNG_IO_SIGNATURE
Definition: png.h:2425
NULL
#define NULL
Definition: usbd_def.h:53
png_row_info_struct::width
png_uint_32 width
Definition: png.h:756
png_struct_def::chunk_name
png_uint_32 chunk_name
Definition: pngstruct.h:220
PNG_HANDLE_CHUNK_LAST
#define PNG_HANDLE_CHUNK_LAST
Definition: png.h:2349
XYZ
#define XYZ
Definition: macros.h:27
png_dsortpp
png_dsort ** png_dsortpp
Definition: pngrtran.c:425
png_set_check_for_invalid_index
void PNGAPI png_set_check_for_invalid_index(png_structrp png_ptr, int allowed)
Definition: pngset.c:1701
png_sPLT_entryp
png_sPLT_entry * png_sPLT_entryp
Definition: png.h:524
png_set_background_fixed
png_set_background_fixed
Definition: png.h:1302
PNG_READ_STRIP_ALPHA_SUPPORTED
#define PNG_READ_STRIP_ALPHA_SUPPORTED
Definition: pnglibconf.h:75
png_image_read_control::row_bytes
ptrdiff_t row_bytes
Definition: pngread.c:1288
png_handle_pHYs
void png_handle_pHYs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2154
png_struct_def::compression_type
png_byte compression_type
Definition: pngstruct.h:432
png_IEND
#define png_IEND
Definition: pngpriv.h:849
png_set_strip_alpha
void PNGAPI png_set_strip_alpha(png_structrp png_ptr)
Definition: pngrtran.c:210
png_ptr
png_structrp png_ptr
Definition: png.h:1083
PNG_FORMAT_FLAG_LINEAR
#define PNG_FORMAT_FLAG_LINEAR
Definition: png.h:2779
png_sPLT
#define png_sPLT
Definition: pngpriv.h:868
png_check_fp_number
int png_check_fp_number(png_const_charp string, size_t size, int *statep, png_size_tp whereami)
Definition: png.c:2712
PNG_ALLOCATED
#define PNG_ALLOCATED
Definition: pngconf.h:439
png_dsortp
png_dsort * png_dsortp
Definition: pngrtran.c:424
PNG_COLOR_TYPE_RGB
#define PNG_COLOR_TYPE_RGB
Definition: png.h:670
info_ptr
png_const_structrp png_const_inforp info_ptr
Definition: png.h:1939
inflateReset2
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
Definition: inflate.c:157
PNG_FLAG_MNG_FILTER_64
#define PNG_FLAG_MNG_FILTER_64
Definition: png.h:858
png_text_struct::text_length
size_t text_length
Definition: png.h:572
png_struct_def::big_row_buf
png_bytep big_row_buf
Definition: pngstruct.h:420
png_time_struct::year
png_uint_16 year
Definition: png.h:602
png_dsort_struct::right
png_byte right
Definition: pngrtran.c:422
PNG_TRANSFORM_PACKSWAP
#define PNG_TRANSFORM_PACKSWAP
Definition: png.h:836
png_read_buffer
static png_bytep png_read_buffer(png_structrp png_ptr, png_alloc_size_t new_size, int warn)
Definition: pngrutil.c:298
png_time_struct::month
png_byte month
Definition: png.h:603
PNG_INFO_bKGD
#define PNG_INFO_bKGD
Definition: png.h:737
translate_gamma_flags
static png_fixed_point translate_gamma_flags(png_structrp png_ptr, png_fixed_point output_gamma, int is_screen)
Definition: pngrtran.c:223
png_text_struct
Definition: png.h:562
png_struct_def::prev_row
png_bytep prev_row
Definition: pngstruct.h:221
PNG_FORMAT_FLAG_COLOR
#define PNG_FORMAT_FLAG_COLOR
Definition: png.h:2778
png_do_invert
void png_do_invert(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:262
PNG_SWAP_BYTES
#define PNG_SWAP_BYTES
Definition: pngpriv.h:646
png_start_read_image
void PNGAPI png_start_read_image(png_structrp png_ptr)
Definition: pngread.c:298
png_do_check_palette_indexes
void png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info)
Definition: pngtrans.c:699
png_set_palette_to_rgb
void PNGAPI png_set_palette_to_rgb(png_structrp png_ptr)
Definition: pngrtran.c:902
PNG_CMAP_NONE
#define PNG_CMAP_NONE
Definition: pngread.c:1264
png_do_bgr
void png_do_bgr(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:619
PNG_DIV51
#define PNG_DIV51(v8)
Definition: pngread.c:1656
png_uint_32
unsigned int png_uint_32
Definition: pngconf.h:511
png_aligncast
#define png_aligncast(type, value)
Definition: pngpriv.h:505
png_default_read_data
void PNGCBAPI png_default_read_data(png_structp png_ptr, png_bytep data, size_t length)
Definition: pngrio.c:50
PNG_TRANSFORM_STRIP_16
#define PNG_TRANSFORM_STRIP_16
Definition: png.h:833
PNG_INFO_eXIf
#define PNG_INFO_eXIf
Definition: png.h:748
png_struct_def::usr_width
png_uint_32 usr_width
Definition: pngstruct.h:216
png_image_free
void PNGAPI png_image_free(png_imagep image)
Definition: png.c:4582
check_location
static png_byte check_location(png_const_structrp png_ptr, int location)
Definition: pngset.c:1163
png_set_rows
void PNGAPI png_set_rows(png_const_structrp png_ptr, png_inforp info_ptr, png_bytepp row_pointers)
Definition: pngset.c:1546
PNG_TEXT_COMPRESSION_NONE
#define PNG_TEXT_COMPRESSION_NONE
Definition: png.h:588
PNGAPI
#define PNGAPI
Definition: pngconf.h:261
PNG_EQUATION_ARBITRARY
#define PNG_EQUATION_ARBITRARY
Definition: png.h:699
inflateInit2
#define inflateInit2(strm, windowBits)
Definition: zlib.h:1800
PNGFAPI
#define PNGFAPI
Definition: pngpriv.h:471
png_uint_16
png_uint_16(PNGAPI png_get_uint_16)(png_const_bytep buf)
Definition: pngrutil.c:102
PNG_RGB_TO_GRAY_WARN
#define PNG_RGB_TO_GRAY_WARN
Definition: pngpriv.h:664
PNG_ALPHA_PNG
#define PNG_ALPHA_PNG
Definition: png.h:1130
PNG_FREE_EXIF
#define PNG_FREE_EXIF
Definition: png.h:1761
PNG_TRANSFORM_EXPAND_16
#define PNG_TRANSFORM_EXPAND_16
Definition: png.h:851
PNG_MAX_PALETTE_LENGTH
#define PNG_MAX_PALETTE_LENGTH
Definition: png.h:725
make_ga_colormap
static int make_ga_colormap(png_image_read_control *display)
Definition: pngread.c:2000
PNG_SKIP_CHUNKS
#define PNG_SKIP_CHUNKS(p)
Definition: pngread.c:1647
png_do_read_swap_alpha
static void png_do_read_swap_alpha(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2475
PNG_PASS_ROW_OFFSET
#define PNG_PASS_ROW_OFFSET(pass)
Definition: png.h:2451
png_const_uint_16p
const typedef png_uint_16 * png_const_uint_16p
Definition: pngconf.h:586
Byte
unsigned char Byte
Definition: zconf.h:391
PNG_USER_CHUNK_MALLOC_MAX
#define PNG_USER_CHUNK_MALLOC_MAX
Definition: pnglibconf.h:208
PNG_HAVE_IHDR
#define PNG_HAVE_IHDR
Definition: png.h:644
PNG_PACKSWAP
#define PNG_PACKSWAP
Definition: pngpriv.h:658
PNG_FORMAT_FLAG_COLORMAP
#define PNG_FORMAT_FLAG_COLORMAP
Definition: png.h:2780
PNG_EQUATION_LINEAR
#define PNG_EQUATION_LINEAR
Definition: png.h:697
png_set_expand
void PNGAPI png_set_expand(png_structrp png_ptr)
Definition: pngrtran.c:872
png_set_hIST
void PNGAPI png_set_hIST(png_const_structrp png_ptr, png_inforp info_ptr, png_const_uint_16p hist)
Definition: pngset.c:210
PNG_HAVE_IDAT
#define PNG_HAVE_IDAT
Definition: pngpriv.h:626
PNG_NUMBER_FORMAT_02x
#define PNG_NUMBER_FORMAT_02x
Definition: pngpriv.h:1762
png_image_read_header
static int png_image_read_header(png_voidp argument)
Definition: pngread.c:1401
PNG_FLAG_CRC_ANCILLARY_USE
#define PNG_FLAG_CRC_ANCILLARY_USE
Definition: pngpriv.h:687
png_do_read_transformations
void png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info)
Definition: pngrtran.c:4736
Z_NO_FLUSH
#define Z_NO_FLUSH
Definition: zlib.h:168
red
png_structrp int png_fixed_point red
Definition: png.h:1083
PNG_FREE_ICCP
#define PNG_FREE_ICCP
Definition: png.h:1749
png_chunk_warning
void PNGAPI png_chunk_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:497
png_image_read_control::background
png_const_colorp background
Definition: pngread.c:1284
PNG_ITXT_COMPRESSION_zTXt
#define PNG_ITXT_COMPRESSION_zTXt
Definition: png.h:591
png_set_gray_to_rgb
void PNGAPI png_set_gray_to_rgb(png_structrp png_ptr)
Definition: pngrtran.c:955
png_struct_def::write_data_fn
png_rw_ptr write_data_fn
Definition: pngstruct.h:156
png_struct_def::row_buf
png_bytep row_buf
Definition: pngstruct.h:226
png_gamma_not_sRGB
static int png_gamma_not_sRGB(png_fixed_point g)
Definition: pngread.c:1382
PNG_PASS_START_COL
#define PNG_PASS_START_COL(pass)
Definition: png.h:2444
PNGZ_MSG_CAST
#define PNGZ_MSG_CAST(s)
Definition: pngstruct.h:40
png_set_add_alpha
void PNGAPI png_set_add_alpha(png_structrp png_ptr, png_uint_32 filler, int filler_loc)
Definition: pngtrans.c:205
png_set_cHRM_fixed
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
png_crc_read
void png_crc_read(png_structrp png_ptr, png_bytep buf, png_uint_32 length)
Definition: pngrutil.c:196
errno
int errno
png_chunk_report
void png_chunk_report(png_const_structrp png_ptr, png_const_charp message, int error)
Definition: pngerror.c:531
png_handle_hIST
void png_handle_hIST(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2102
png_image::version
png_uint_32 version
Definition: png.h:2674
P_FILE
#define P_FILE
Definition: pngread.c:1258
png_read_transform_info
void png_read_transform_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngrtran.c:1940
png_set_text
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
png_colorspace_set_ICC
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_info_def
Definition: pnginfo.h:55
int_green_Z
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
PNG_IMAGE_PIXEL_CHANNELS
#define PNG_IMAGE_PIXEL_CHANNELS(fmt)
Definition: png.h:2881
blue_X
png_const_structrp png_const_inforp double double double double double double double * blue_X
Definition: png.h:1939
png_row_info_struct::channels
png_byte channels
Definition: png.h:760
png_calculate_crc
void png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, size_t length)
Definition: png.c:139
PNG_ALL_MNG_FEATURES
#define PNG_ALL_MNG_FEATURES
Definition: png.h:859
PNG_FUNCTION
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_struct_def::palette
png_colorp palette
Definition: pngstruct.h:243
PNG_FREE_PLTE
#define PNG_FREE_PLTE
Definition: png.h:1758
PNG_TRANSFORM_INVERT_ALPHA
#define PNG_TRANSFORM_INVERT_ALPHA
Definition: png.h:843
png_handle_zTXt
void png_handle_zTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2596
PNG_BACKGROUND_IS_GRAY
#define PNG_BACKGROUND_IS_GRAY
Definition: pngpriv.h:635
png_color_16_struct::green
png_uint_16 green
Definition: png.h:492
ZLIB_IO_MAX
#define ZLIB_IO_MAX
Definition: pngstruct.h:56
png_check_keyword
png_uint_32 png_check_keyword(png_structrp png_ptr, png_const_charp key, png_bytep new_key)
Definition: pngset.c:1726
PNG_COLOR_TYPE_GRAY
#define PNG_COLOR_TYPE_GRAY
Definition: png.h:668
png_const_uint_16pp
const typedef png_uint_16p * png_const_uint_16pp
Definition: pngpriv.h:937
png_row_info_struct::color_type
png_byte color_type
Definition: png.h:758
png_benign_error
void PNGAPI png_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:362
PNG_HANDLE_CHUNK_ALWAYS
#define PNG_HANDLE_CHUNK_ALWAYS
Definition: png.h:2348
PNG_HANDLE_CHUNK_NEVER
#define PNG_HANDLE_CHUNK_NEVER
Definition: png.h:2346
png_color_struct::blue
png_byte blue
Definition: png.h:482
png_read_filter_row_sub
static void png_read_filter_row_sub(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:3931
PNG_INTERLACE_ADAM7_PASSES
#define PNG_INTERLACE_ADAM7_PASSES
Definition: png.h:2437
png_text_struct::key
png_charp key
Definition: png.h:569
png_text_struct::text
png_charp text
Definition: png.h:570
png_struct_def::num_palette
png_uint_16 num_palette
Definition: pngstruct.h:244
png_debug
#define png_debug(l, m)
Definition: pngdebug.h:145
PNG_TRANSFORM_PACKING
#define PNG_TRANSFORM_PACKING
Definition: png.h:835
png_do_compose
static void png_do_compose(png_row_infop row_info, png_bytep row, png_structrp png_ptr)
Definition: pngrtran.c:3200
png_ascii_from_fp
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
png_set_IHDR
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
B_MASKS
#define B_MASKS(d, s)
png_time_struct
Definition: png.h:600
png_struct_def::compression
png_byte compression
Definition: pngstruct.h:252
png_color_struct::green
png_byte green
Definition: png.h:481
png_sPLT_entry_struct::alpha
png_uint_16 alpha
Definition: png.h:521
png_image_read_control::row_stride
png_int_32 row_stride
Definition: pngread.c:1282
PNG_CRC_WARN_DISCARD
#define PNG_CRC_WARN_DISCARD
Definition: png.h:1438
png_free_data
void PNGAPI png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 mask, int num)
Definition: png.c:471
PNG_ITXT_COMPRESSION_NONE
#define PNG_ITXT_COMPRESSION_NONE
Definition: png.h:590
PNG_INTERLACE
#define PNG_INTERLACE
Definition: pngpriv.h:643
voidp
Byte * voidp
Definition: zconf.h:414
PNG_CHUNK_FROM_STRING
#define PNG_CHUNK_FROM_STRING(s)
Definition: pngpriv.h:879
png_icc_set_sRGB
void png_icc_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
Definition: png.c:2428
png_set_expand_16
void PNGAPI png_set_expand_16(png_structrp png_ptr)
Definition: pngrtran.c:942
png_set_invert_alpha
void PNGAPI png_set_invert_alpha(png_structrp png_ptr)
Definition: pngtrans.c:237
png_IDAT
#define png_IDAT
Definition: pngpriv.h:848
PNG_FLAG_DETECT_UNINITIALIZED
#define PNG_FLAG_DETECT_UNINITIALIZED
Definition: pngpriv.h:693
png_gamma_8bit_correct
png_byte png_gamma_8bit_correct(unsigned int value, png_fixed_point gamma_val)
Definition: png.c:3864
PNG_FILLER
#define PNG_FILLER
Definition: pngpriv.h:657
void
void
Definition: png.h:1083
png_muldiv
int png_muldiv(png_fixed_point_p res, png_fixed_point a, png_int_32 times, png_int_32 divisor)
Definition: png.c:3349
png_get_uint_16
#define png_get_uint_16(buf)
Definition: png.h:2599
png_fixed_point
png_int_32 png_fixed_point
Definition: pngconf.h:574
png_read_IDAT_data
void png_read_IDAT_data(png_structrp png_ptr, png_bytep output, png_alloc_size_t avail_out)
Definition: pngrutil.c:4149
png_handle_sBIT
void png_handle_sBIT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1158
png_const_charp
const typedef char * png_const_charp
Definition: pngconf.h:590
make_rgb_colormap
static int make_rgb_colormap(png_image_read_control *display)
Definition: pngread.c:2055
PNG_COMPRESSION_TYPE_BASE
#define PNG_COMPRESSION_TYPE_BASE
Definition: png.h:678
png_read_png
void PNGAPI png_read_png(png_structrp png_ptr, png_inforp info_ptr, int transforms, voidp params)
Definition: pngread.c:1043
png_color_8_struct
Definition: png.h:500
green_X
png_const_structrp png_const_inforp double double double double * green_X
Definition: png.h:1939
png_get_channels
png_byte PNGAPI png_get_channels(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:467
Z_OK
#define Z_OK
Definition: zlib.h:177
png_image_error
int png_image_error(png_imagep image, png_const_charp error_message)
Definition: png.c:4598
PNG_FILTER_VALUE_NONE
#define PNG_FILTER_VALUE_NONE
Definition: png.h:1476
png_IHDR
#define png_IHDR
Definition: pngpriv.h:850
png_get_rowbytes
size_t PNGAPI png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:30
png_set_crc_action
void PNGAPI png_set_crc_action(png_structrp png_ptr, int crit_action, int ancil_action)
Definition: pngrtran.c:36
png_cHRM
#define png_cHRM
Definition: pngpriv.h:853
Z_SYNC_FLUSH
#define Z_SYNC_FLUSH
Definition: zlib.h:170
png_structrp
png_struct *PNG_RESTRICT png_structrp
Definition: png.h:469
png_image_begin_read_from_stdio
int PNGAPI png_image_begin_read_from_stdio(png_imagep image, FILE *file)
Definition: pngread.c:1466
png_colorspace_set_chromaticities
int png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred)
Definition: png.c:1720
png_colorspace_sync_info
void png_colorspace_sync_info(png_const_structrp png_ptr, png_inforp info_ptr)
Definition: png.c:1169
PNG_QUANTIZE_RED_BITS
#define PNG_QUANTIZE_RED_BITS
Definition: pnglibconf.h:204
PNG_ERROR_ACTION_ERROR
#define PNG_ERROR_ACTION_ERROR
Definition: png.h:1078
png_set_alpha_mode
void PNGAPI png_set_alpha_mode(png_structrp png_ptr, int mode, double output_gamma)
Definition: pngrtran.c:400
png_read_filter_row_avg
static void png_read_filter_row_avg(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition: pngrutil.c:3965
png_colormap_compose
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
PNG_FILTER_VALUE_LAST
#define PNG_FILTER_VALUE_LAST
Definition: png.h:1481
png_control::memory
png_const_bytep memory
Definition: pngpriv.h:2041
png_set_chunk_cache_max
void PNGAPI png_set_chunk_cache_max(png_structrp png_ptr, png_uint_32 user_chunk_cache_max)
Definition: pngset.c:1652
png_set_sCAL
void PNGAPI png_set_sCAL(png_const_structrp png_ptr, png_inforp info_ptr, int unit, double width, double height)
Definition: pngset.c:497
png_control::owned_file
unsigned int owned_file
Definition: pngpriv.h:2045
png_color_struct
Definition: png.h:478
png_set_bKGD
void PNGAPI png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_16p background)
Definition: pngset.c:25
png_control
Definition: pngpriv.h:2035
png_set_benign_errors
void PNGAPI png_set_benign_errors(png_structrp png_ptr, int allowed)
Definition: pngset.c:1671
PNG_INFO_sCAL
#define PNG_INFO_sCAL
Definition: png.h:746
png_image::format
png_uint_32 format
Definition: png.h:2677
PNG_FREE_TEXT
#define PNG_FREE_TEXT
Definition: png.h:1760
png_struct_def::flags
png_uint_32 flags
Definition: pngstruct.h:179
png_text_struct::itxt_length
size_t itxt_length
Definition: png.h:573
PNG_FILTER_VALUE_AVG
#define PNG_FILTER_VALUE_AVG
Definition: png.h:1479
PNG_HANDLE_CHUNK_AS_DEFAULT
#define PNG_HANDLE_CHUNK_AS_DEFAULT
Definition: png.h:2345
if
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
png_const_textp
const typedef png_text * png_const_textp
Definition: png.h:580
png_struct_def::read_filter
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_gamma_16bit_correct
png_uint_16 png_gamma_16bit_correct(unsigned int value, png_fixed_point gamma_val)
Definition: png.c:3912
while
while(sofevent)
Definition: USB_HOST_SHIELD.h:456
PNG_PASS_START_ROW
#define PNG_PASS_START_ROW(pass)
Definition: png.h:2443
PNG_CRC_DEFAULT
#define PNG_CRC_DEFAULT
Definition: png.h:1436
createSpeedLookupTable.a
list a
Definition: createSpeedLookupTable.py:29
png_read_image
void PNGAPI png_read_image(png_structrp png_ptr, png_bytepp image)
Definition: pngread.c:700
PNG_FILTER_VALUE_PAETH
#define PNG_FILTER_VALUE_PAETH
Definition: png.h:1480
L
#define L(CODE)
Definition: macros.h:76
PNG_HAVE_IEND
#define PNG_HAVE_IEND
Definition: pngpriv.h:628
png_image_begin_read_from_file
int PNGAPI png_image_begin_read_from_file(png_imagep image, const char *file_name)
Definition: pngread.c:1496
png_zstream_error
void png_zstream_error(png_structrp png_ptr, int ret)
Definition: png.c:998
png_get_uint_32
#define png_get_uint_32(buf)
Definition: png.h:2598
PNG_CMAP_TRANS
#define PNG_CMAP_TRANS
Definition: pngread.c:1266
PNG_MAXIMUM_INFLATE_WINDOW
#define PNG_MAXIMUM_INFLATE_WINDOW
Definition: png.h:3202
png_text_struct::lang_key
png_charp lang_key
Definition: png.h:576
png_set_packswap
void PNGAPI png_set_packswap(png_structrp png_ptr)
Definition: pngtrans.c:70
png_read_sig
void png_read_sig(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngrutil.c:121
png_set_eXIf_1
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_sPLT_struct::depth
png_byte depth
Definition: png.h:536
PNG_FILTER_VALUE_UP
#define PNG_FILTER_VALUE_UP
Definition: png.h:1478
png_image_read_and_map
static int png_image_read_and_map(png_voidp argument)
Definition: pngread.c:2938
Z_STREAM_END
#define Z_STREAM_END
Definition: zlib.h:178
png_row_info_struct::pixel_depth
png_byte pixel_depth
Definition: png.h:761
png_sPLT_entry_struct::green
png_uint_16 green
Definition: png.h:519
png_image_read_control::gamma_to_linear
png_fixed_point gamma_to_linear
Definition: pngread.c:1290
png_unknown_chunk_t::data
png_byte * data
Definition: png.h:625
PNG_INTERLACE_ADAM7
#define PNG_INTERLACE_ADAM7
Definition: png.h:688
png_reset_crc
void png_reset_crc(png_structrp png_ptr)
Definition: png.c:127
PNG_IMAGE_SAMPLE_CHANNELS
#define PNG_IMAGE_SAMPLE_CHANNELS(fmt)
Definition: png.h:2845
PNG_TRANSFORM_BGR
#define PNG_TRANSFORM_BGR
Definition: png.h:840
png_set_cHRM_XYZ_fixed
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_32p
png_uint_32 * png_uint_32p
Definition: pngconf.h:581
PNG_INFO_sPLT
#define PNG_INFO_sPLT
Definition: png.h:745
png_struct_def::rowbytes
size_t rowbytes
Definition: pngstruct.h:217
z_stream_s
Definition: zlib.h:86
PNG_READ_RGB_TO_GRAY_SUPPORTED
#define PNG_READ_RGB_TO_GRAY_SUPPORTED
Definition: pnglibconf.h:71
set_file_encoding
static void set_file_encoding(png_image_read_control *display)
Definition: pngread.c:1660
PNG_PASS_COL_OFFSET
#define PNG_PASS_COL_OFFSET(pass)
Definition: png.h:2452
png_image_format
static png_uint_32 png_image_format(png_structrp png_ptr)
Definition: pngread.c:1349
png_colorspace_sync
void png_colorspace_sync(png_const_structrp png_ptr, png_inforp info_ptr)
Definition: png.c:1215
png_handle_IEND
void png_handle_IEND(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1100
PNG_ADD_ALPHA
#define PNG_ADD_ALPHA
Definition: pngpriv.h:667
png_do_swap
void png_do_swap(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:319
PNG_FILLER_BEFORE
#define PNG_FILLER_BEFORE
Definition: png.h:1248
PNG_IDAT_READ_SIZE
#define PNG_IDAT_READ_SIZE
Definition: pnglibconf.h:195
P_LINEAR
#define P_LINEAR
Definition: pngread.c:1257
PNG_ALPHA_OPTIMIZED
#define PNG_ALPHA_OPTIMIZED
Definition: png.h:1134
PNG_IO_CHUNK_DATA
#define PNG_IO_CHUNK_DATA
Definition: png.h:2427
png_composite
#define png_composite(composite, fg, alpha, bg)
Definition: png.h:2510
png_warning_parameter
void png_warning_parameter(png_warning_parameters p, int number, png_const_charp string)
Definition: pngerror.c:247
png_read_filter_row
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
MASK
#define MASK(pass, depth, display, png)
png_dsort_struct
Definition: pngrtran.c:418
png_set_sCAL_s
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
png_crc_finish
int png_crc_finish(png_structrp png_ptr, png_uint_32 skip)
Definition: pngrutil.c:211
png_struct_def
Definition: pngstruct.h:143
png_charpp
char ** png_charpp
Definition: pngconf.h:612
png_icc_check_header
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
png_image_read_control
Definition: pngread.c:1277
png_image_read_control::colormap
png_voidp colormap
Definition: pngread.c:1283
png_icc_check_length
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_16pp
png_uint_16 ** png_uint_16pp
Definition: pngconf.h:609
png_struct_def::big_prev_row
png_bytep big_prev_row
Definition: pngstruct.h:475
png_struct_def::read_row_fn
png_read_status_ptr read_row_fn
Definition: pngstruct.h:323
display
display_t * display
Definition: display.c:6
png_handle_iCCP
void png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1362
png_colorspace_set_endpoints
int png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred)
Definition: png.c:1757
png_const_voidp
const typedef void * png_const_voidp
Definition: pngconf.h:578
png_get_fixed_point
static png_fixed_point png_get_fixed_point(png_structrp png_ptr, png_const_bytep buf)
Definition: pngrutil.c:41
png_image
Definition: png.h:2671
png_colorspace_set_rgb_coefficients
void png_colorspace_set_rgb_coefficients(png_structrp png_ptr)
Definition: png.c:2469
PNG_RGB_TO_GRAY
#define PNG_RGB_TO_GRAY
Definition: pngpriv.h:665
PNG_CRC_QUIET_USE
#define PNG_CRC_QUIET_USE
Definition: png.h:1440
png_handle_gAMA
void png_handle_gAMA(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1120
png_decompress_chunk
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
red_Z
png_const_structrp png_const_inforp double double double * red_Z
Definition: png.h:1939
PNG_FLAG_APP_ERRORS_WARN
#define PNG_FLAG_APP_ERRORS_WARN
Definition: pngpriv.h:701
png_safe_warning
void PNGCBAPI png_safe_warning(png_structp png_nonconst_ptr, png_const_charp warning_message)
Definition: pngerror.c:921
png_image::height
png_uint_32 height
Definition: png.h:2676
png_image_read_composite
static int png_image_read_composite(png_voidp argument)
Definition: pngread.c:3259
PNG_FLAG_CRC_CRITICAL_USE
#define PNG_FLAG_CRC_CRITICAL_USE
Definition: pngpriv.h:689
png_set_read_fn
void PNGAPI png_set_read_fn(png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn)
Definition: pngrio.c:87
PNG_INFO_pHYs
#define PNG_INFO_pHYs
Definition: png.h:739
PNG_FILTER_VALUE_SUB
#define PNG_FILTER_VALUE_SUB
Definition: png.h:1477
CHOP
#define CHOP(x)
green_Z
png_const_structrp png_const_inforp double double double double double double * green_Z
Definition: png.h:1939
PNG_BACKGROUND_GAMMA_UNKNOWN
#define PNG_BACKGROUND_GAMMA_UNKNOWN
Definition: png.h:1307
png_const_uint_32p
const typedef png_uint_32 * png_const_uint_32p
Definition: pngconf.h:582
png_sPLT_struct::nentries
png_int_32 nentries
Definition: png.h:538
decode_gamma
static unsigned int decode_gamma(png_image_read_control *display, png_uint_32 value, int encoding)
Definition: pngread.c:1680
png_set_packing
void PNGAPI png_set_packing(png_structrp png_ptr)
Definition: pngtrans.c:50
PNG_sCAL_PRECISION
#define PNG_sCAL_PRECISION
Definition: pnglibconf.h:216
png_sPLT_entry_struct::blue
png_uint_16 blue
Definition: png.h:520
png_error
else png_error(png_ptr, "png_image_write_to_memory: PNG too big")
png_set_swap
void PNGAPI png_set_swap(png_structrp png_ptr)
Definition: pngtrans.c:35
png_handle_unknown
void png_handle_unknown(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length, int keep)
Definition: pngrutil.c:2922
PNG_INFLATE
#define PNG_INFLATE(pp, flush)
Definition: pngpriv.h:1398
png_set_keep_unknown_chunks
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_16p
png_uint_16 * png_uint_16p
Definition: pngconf.h:585
png_check_IHDR
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
png_do_scale_16_to_8
static void png_do_scale_16_to_8(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2389
png_struct_def::io_ptr
png_voidp io_ptr
Definition: pngstruct.h:158
png_reciprocal2
png_fixed_point png_reciprocal2(png_fixed_point a, png_fixed_point b)
Definition: png.c:3543
background_gamma_code
png_structrp png_const_color_16p int background_gamma_code
Definition: png.h:1302
png_hIST
#define png_hIST
Definition: pngpriv.h:860
png_debug1
#define png_debug1(l, m, p1)
Definition: pngdebug.h:148
png_struct_def::num_rows
png_uint_32 num_rows
Definition: pngstruct.h:215
PNG_BACKGROUND_GAMMA_SCREEN
#define PNG_BACKGROUND_GAMMA_SCREEN
Definition: png.h:1308
png_oFFs
#define png_oFFs
Definition: pngpriv.h:863
PNG_LIBPNG_VER_STRING
#define PNG_LIBPNG_VER_STRING
Definition: png.h:280
png_struct_def::pixel_depth
png_byte pixel_depth
Definition: pngstruct.h:260
PNG_CHUNK_WRITE_ERROR
#define PNG_CHUNK_WRITE_ERROR
Definition: pngpriv.h:1843
png_do_expand_16
static void png_do_expand_16(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:4609
png_struct_def::maximum_pixel_depth
png_byte maximum_pixel_depth
Definition: pngstruct.h:266
png_do_expand_palette
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_struct_def::idat_size
png_uint_32 idat_size
Definition: pngstruct.h:241
PNG_FLAG_ZSTREAM_INITIALIZED
#define PNG_FLAG_ZSTREAM_INITIALIZED
Definition: pngpriv.h:680
png_image_finish_read
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
int_blue_X
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
PNG_ERROR_ACTION_NONE
#define PNG_ERROR_ACTION_NONE
Definition: png.h:1076
png_set_pHYs
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
PNG_FLAG_BENIGN_ERRORS_WARN
#define PNG_FLAG_BENIGN_ERRORS_WARN
Definition: pngpriv.h:699
png_handle_pCAL
void png_handle_pCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2247
png_read_info
void PNGAPI png_read_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:92
png_alloc_size_t
size_t png_alloc_size_t
Definition: pngconf.h:557
PNG_FLAG_CRC_ANCILLARY_NOWARN
#define PNG_FLAG_CRC_ANCILLARY_NOWARN
Definition: pngpriv.h:688
png_do_packswap
void png_do_packswap(png_row_infop row_info, png_bytep row)
Definition: pngtrans.c:455
png_destroy_png_struct
void png_destroy_png_struct(png_structrp png_ptr)
Definition: pngmem.c:25
png_set_cHRM_XYZ
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
png_do_read_filler
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
png_set_read_user_transform_fn
void PNGAPI png_set_read_user_transform_fn(png_structrp png_ptr, png_user_transform_ptr read_user_transform_fn)
Definition: pngrtran.c:1073
PNG_SHIFT
#define PNG_SHIFT
Definition: pngpriv.h:645
png_struct_def::usr_bit_depth
png_byte usr_bit_depth
Definition: pngstruct.h:259
screen_gamma
png_structrp png_fixed_point screen_gamma
Definition: png.h:1352
png_time_struct::minute
png_byte minute
Definition: png.h:606
png_set_read_status_fn
void PNGAPI png_set_read_status_fn(png_structrp png_ptr, png_read_status_ptr read_row_fn)
Definition: pngread.c:1031
png_color_16_struct::index
png_byte index
Definition: png.h:490
png_handle_tIME
void png_handle_tIME(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2469
PNG_BACKGROUND_GAMMA_FILE
#define PNG_BACKGROUND_GAMMA_FILE
Definition: png.h:1309
PNG_GA_COLORMAP_ENTRIES
#define PNG_GA_COLORMAP_ENTRIES
Definition: pngread.c:2052
png_pHYs
#define png_pHYs
Definition: pngpriv.h:865
PNG_CMAP_RGB_ALPHA
#define PNG_CMAP_RGB_ALPHA
Definition: pngread.c:1268
png_struct_def::channels
png_byte channels
Definition: pngstruct.h:261
PNG_ROWBYTES
#define PNG_ROWBYTES(pixel_bits, width)
Definition: pngpriv.h:738
png_set_read_user_chunk_fn
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
png_set_rgb_to_gray_fixed
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_struct_def::bit_depth
png_byte bit_depth
Definition: pngstruct.h:258
png_set_tRNS_to_alpha
void PNGAPI png_set_tRNS_to_alpha(png_structrp png_ptr)
Definition: pngrtran.c:926
png_read_start_row
void png_read_start_row(png_structrp png_ptr)
Definition: pngrutil.c:4391
png_handle_cHRM
void png_handle_cHRM(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1240
PNG_FLAG_FILLER_AFTER
#define PNG_FLAG_FILLER_AFTER
Definition: pngpriv.h:686
png_do_quantize
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
PNG_TRANSFORM_GRAY_TO_RGB
#define PNG_TRANSFORM_GRAY_TO_RGB
Definition: png.h:849
png_rtran_ok
static int png_rtran_ok(png_structrp png_ptr, int need_IHDR)
Definition: pngrtran.c:110
png_struct_def::sig_bytes
png_byte sig_bytes
Definition: pngstruct.h:265
PNG_CMAP_NONE_BACKGROUND
#define PNG_CMAP_NONE_BACKGROUND
Definition: pngread.c:1271
png_sPLT_entry_struct::red
png_uint_16 red
Definition: png.h:518
png_sBIT
#define png_sBIT
Definition: pngpriv.h:866
PNG_COLOR_MASK_COLOR
#define PNG_COLOR_MASK_COLOR
Definition: png.h:664
add_one_chunk
static unsigned int add_one_chunk(png_bytep list, unsigned int count, png_const_bytep add, int keep)
Definition: pngset.c:1344
png_set_oFFs
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
PNG_HAVE_PNG_SIGNATURE
#define PNG_HAVE_PNG_SIGNATURE
Definition: pngpriv.h:636
PNG_ALPHA_BROKEN
#define PNG_ALPHA_BROKEN
Definition: png.h:1135
PNG_FREE_PCAL
#define PNG_FREE_PCAL
Definition: png.h:1752
PNG_TRANSFORM_SWAP_ALPHA
#define PNG_TRANSFORM_SWAP_ALPHA
Definition: png.h:841
S_MASKS
#define S_MASKS(d, s)
PNG_sCAL_MAX_DIGITS
#define PNG_sCAL_MAX_DIGITS
Definition: pngpriv.h:1855
png_set_gamma_fixed
void PNGFAPI png_set_gamma_fixed(png_structrp png_ptr, png_fixed_point scrn_gamma, png_fixed_point file_gamma)
Definition: pngrtran.c:818
png_handle_iTXt
void png_handle_iTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2713
png_read_end
void PNGAPI png_read_end(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:766
png_do_unshift
static void png_do_unshift(png_row_infop row_info, png_bytep row, png_const_color_8p sig_bits)
Definition: pngrtran.c:2250
PNG_CSTRING_FROM_CHUNK
#define PNG_CSTRING_FROM_CHUNK(s, c)
Definition: pngpriv.h:893
P_NOTSET
#define P_NOTSET
Definition: pngread.c:1255
png_color_struct::red
png_byte red
Definition: png.h:480
png_struct_def::num_trans
png_uint_16 num_trans
Definition: pngstruct.h:251
png_gAMA
#define png_gAMA
Definition: pngpriv.h:856
png_set_sCAL_fixed
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
createSpeedLookupTable.int
int
Definition: createSpeedLookupTable.py:15
png_gamma_significant
int png_gamma_significant(png_fixed_point gamma_val)
Definition: png.c:3509
png_do_read_intrapixel
static void png_do_read_intrapixel(png_row_infop row_info, png_bytep row)
Definition: pngread.c:321
png_struct_def::mode
png_uint_32 mode
Definition: pngstruct.h:178
png_icc_check_tag_table
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
png_ascii_from_fixed
void png_ascii_from_fixed(png_const_structrp png_ptr, png_charp ascii, size_t size, png_fixed_point fp)
Definition: png.c:3233
png_set_user_limits
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
PNG_READ_BACKGROUND_SUPPORTED
#define PNG_READ_BACKGROUND_SUPPORTED
Definition: pnglibconf.h:52
png_const_color_8p
const typedef png_color_8 * png_const_color_8p
Definition: png.h:509
png_composite_16
#define png_composite_16(composite, fg, alpha, bg)
Definition: png.h:2519
PNG_FLAG_CRC_CRITICAL_MASK
#define PNG_FLAG_CRC_CRITICAL_MASK
Definition: pngpriv.h:714
PNG_FLAG_ZSTREAM_ENDED
#define PNG_FLAG_ZSTREAM_ENDED
Definition: pngpriv.h:682
png_control::size
size_t size
Definition: pngpriv.h:2042
png_destroy_gamma_table
void png_destroy_gamma_table(png_structrp png_ptr)
Definition: png.c:4136
png_const_color_16p
const typedef png_color_16 * png_const_color_16p
Definition: png.h:497
png_row_info_struct
Definition: png.h:754
PNG_PACK
#define PNG_PACK
Definition: pngpriv.h:644
png_image_read_control::image
png_imagep image
Definition: pngread.c:1280
PNG_FLAG_OPTIMIZE_ALPHA
#define PNG_FLAG_OPTIMIZE_ALPHA
Definition: pngpriv.h:692
png_pCAL
#define png_pCAL
Definition: pngpriv.h:864
png_read_data
void png_read_data(png_structrp png_ptr, png_bytep data, size_t length)
Definition: pngrio.c:32
PNG_FLAG_CRC_ANCILLARY_MASK
#define PNG_FLAG_CRC_ANCILLARY_MASK
Definition: pngpriv.h:711
png_sRGB_table
const png_uint_16 png_sRGB_table[256]
Definition: png.c:4373
PNG_COLOR_MASK_PALETTE
#define PNG_COLOR_MASK_PALETTE
Definition: png.h:663
PNG_INFO_sBIT
#define PNG_INFO_sBIT
Definition: png.h:733
png_unknown_chunk_t
Definition: png.h:622
png_set_alpha_mode_fixed
void PNGFAPI png_set_alpha_mode_fixed(png_structrp png_ptr, int mode, png_fixed_point output_gamma)
Definition: pngrtran.c:287
png_colorspace_set_sRGB
int png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent)
Definition: png.c:1872
png_init_rgb_transformations
static void png_init_rgb_transformations(png_structrp png_ptr)
Definition: pngrtran.c:1206
PNG_QUANTIZE
#define PNG_QUANTIZE
Definition: pngpriv.h:648
png_handle_oFFs
void png_handle_oFFs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2200
PNG_RESTRICT
#define PNG_RESTRICT
Definition: pngconf.h:445
background_color
png_structrp png_const_color_16p background_color
Definition: png.h:1302
blue_Y
png_const_structrp png_const_inforp double double double double double double double double * blue_Y
Definition: png.h:1939
png_do_expand
static void png_do_expand(png_row_infop row_info, png_bytep row, png_const_color_16p trans_color)
Definition: pngrtran.c:4379
png_get_int_32
#define png_get_int_32(buf)
Definition: png.h:2600
png_chunk_benign_error
void PNGAPI png_chunk_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:514
png_isaligned
#define png_isaligned(ptr, type)
Definition: pngpriv.h:605
uInt
unsigned int uInt
Definition: zconf.h:393
png_tIME
#define png_tIME
Definition: pngpriv.h:872
PNG_WROTE_tIME
#define PNG_WROTE_tIME
Definition: pngpriv.h:633
png_image_read_control::colormap_processing
int colormap_processing
Definition: pngread.c:1291
png_read_rows
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
PNG_STRIP_ALPHA
#define PNG_STRIP_ALPHA
Definition: pngpriv.h:660
PNG_TRANSFORM_SWAP_ENDIAN
#define PNG_TRANSFORM_SWAP_ENDIAN
Definition: png.h:842
PNG_FP_MAX
#define PNG_FP_MAX
Definition: png.h:658
png_handle_bKGD
void png_handle_bKGD(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1921
png_struct_def::interlaced
png_byte interlaced
Definition: pngstruct.h:254
png_safecat
size_t png_safecat(png_charp buffer, size_t bufsize, size_t pos, png_const_charp string)
Definition: pngerror.c:112
length
png_uint_32 length
Definition: png.c:2247
PNG_EQUATION_BASE_E
#define PNG_EQUATION_BASE_E
Definition: png.h:698
PNG_INFO_hIST
#define PNG_INFO_hIST
Definition: png.h:738
png_read_chunk_header
png_uint_32 png_read_chunk_header(png_structrp png_ptr)
Definition: pngrutil.c:156
PNG_GAMMA
#define PNG_GAMMA
Definition: pngpriv.h:655
png_time_struct::day
png_byte day
Definition: png.h:604
png_check_chunk_length
void png_check_chunk_length(png_const_structrp png_ptr, png_uint_32 length)
Definition: pngrutil.c:3153
png_sPLT_struct
Definition: png.h:533
png_set_quantize
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
png_read_row
void PNGAPI png_read_row(png_structrp png_ptr, png_bytep row, png_bytep dsp_row)
Definition: pngread.c:383
green_Y
png_const_structrp png_const_inforp double double double double double * green_Y
Definition: png.h:1939
png_chunk_unknown_handling
int png_chunk_unknown_handling(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition: png.c:961
png_set_sRGB_gAMA_and_cHRM
void PNGAPI png_set_sRGB_gAMA_and_cHRM(png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
Definition: pngset.c:665
png_zfree
void png_zfree(voidpf png_ptr, voidpf ptr)
Definition: png.c:118
png_text_struct::lang
png_charp lang
Definition: png.h:574
png_image_read_direct
static int png_image_read_direct(png_voidp argument)
Definition: pngread.c:3666
inflateEnd
int ZEXPORT inflateEnd(z_streamp strm)
Definition: inflate.c:1277
mode
png_structrp int mode
Definition: png.h:1139
PNG_FP_1
#define PNG_FP_1
Definition: png.h:656
png_app_warning
void png_app_warning(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:392
png_row_info_struct::rowbytes
size_t rowbytes
Definition: png.h:757
png_do_gray_to_rgb
static void png_do_gray_to_rgb(png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2860
png_control::info_ptr
png_infop info_ptr
Definition: pngpriv.h:2038
png_app_error
void png_app_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:405
PNG_INFO_iCCP
#define PNG_INFO_iCCP
Definition: png.h:744
png_handle_sRGB
void png_handle_sRGB(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1312
inflate
int ZEXPORT inflate(z_streamp strm, int flush)
Definition: inflate.c:622
PNG_TRANSFORM_SHIFT
#define PNG_TRANSFORM_SHIFT
Definition: png.h:839
PNG_CRC_WARN_USE
#define PNG_CRC_WARN_USE
Definition: png.h:1439
createSpeedLookupTable.b
list b
Definition: createSpeedLookupTable.py:30
png_row_info_struct::bit_depth
png_byte bit_depth
Definition: png.h:759
PNG_ENCODE_ALPHA
#define PNG_ENCODE_ALPHA
Definition: pngpriv.h:666
png_check_fp_string
int png_check_fp_string(png_const_charp string, size_t size)
Definition: png.c:2839
PNG_FORMAT_FLAG_ALPHA
#define PNG_FORMAT_FLAG_ALPHA
Definition: png.h:2777
png_inflate_claim
static int png_inflate_claim(png_structrp png_ptr, png_uint_32 owner)
Definition: pngrutil.c:342
PNGZ_INPUT_CAST
#define PNGZ_INPUT_CAST(b)
Definition: pngstruct.h:41
PNG_COLOR_TYPE_GRAY_ALPHA
#define PNG_COLOR_TYPE_GRAY_ALPHA
Definition: png.h:672
PNG_INFLATE_BUF_SIZE
#define PNG_INFLATE_BUF_SIZE
Definition: pnglibconf.h:196
png_unknown_chunk_t::size
size_t size
Definition: png.h:626
PNG_FREE_UNKN
#define PNG_FREE_UNKN
Definition: png.h:1755
png_color_16_struct::red
png_uint_16 red
Definition: png.h:491
PNG_GAMMA_sRGB_INVERSE
#define PNG_GAMMA_sRGB_INVERSE
Definition: pngpriv.h:906
png_image_skip_unused_chunks
static void png_image_skip_unused_chunks(png_structrp png_ptr)
Definition: pngread.c:1603
png_time_struct::hour
png_byte hour
Definition: png.h:605
png_control::png_ptr
png_structp png_ptr
Definition: pngpriv.h:2037
inflateReset
int ZEXPORT inflateReset(z_streamp strm)
Definition: inflate.c:144
png_set_text_2
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
png_set_expand_gray_1_2_4_to_8
void PNGAPI png_set_expand_gray_1_2_4_to_8(png_structrp png_ptr)
Definition: pngrtran.c:914
PNG_CMAP_GA
#define PNG_CMAP_GA
Definition: pngread.c:1265
png_warning
void PNGAPI png_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:216
png_int_32
png_int_32(PNGAPI png_get_int_32)(png_const_bytep buf)
Definition: pngrutil.c:84
PNG_EXPAND_16
#define PNG_EXPAND_16
Definition: pngpriv.h:651
png_bKGD
#define png_bKGD
Definition: pngpriv.h:852
png_text_struct::compression
int compression
Definition: png.h:564
png_struct_def::height
png_uint_32 height
Definition: pngstruct.h:214
PNG_DIV257
#define PNG_DIV257(v16)
Definition: pngpriv.h:735
PNG_COLOR_MASK_ALPHA
#define PNG_COLOR_MASK_ALPHA
Definition: png.h:665
png_handle_eXIf
void png_handle_eXIf(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2039
PNG_INFO_IDAT
#define PNG_INFO_IDAT
Definition: png.h:747
png_set_sPLT
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
png_set_gamma
void PNGAPI png_set_gamma(png_structrp png_ptr, double scrn_gamma, double file_gamma)
Definition: pngrtran.c:858
zlib.h
PNG_STRING_FROM_CHUNK
#define PNG_STRING_FROM_CHUNK(s, c)
Definition: pngpriv.h:886
png_struct_def::transformations
png_uint_32 transformations
Definition: pngstruct.h:180
png_set_background
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
png_set_tIME
void PNGAPI png_set_tIME(png_const_structrp png_ptr, png_inforp info_ptr, png_const_timep mod_time)
Definition: pngset.c:968
png_destroy_info_struct
void PNGAPI png_destroy_info_struct(png_const_structrp png_ptr, png_infopp info_ptr_ptr)
Definition: png.c:386
png_const_timep
const typedef png_time * png_const_timep
Definition: png.h:610
png_sig_cmp
int PNGAPI png_sig_cmp(png_const_bytep sig, size_t start, size_t num_to_check)
Definition: png.c:74
PNG_RGB_TO_GRAY_DEFAULT
#define PNG_RGB_TO_GRAY_DEFAULT
Definition: png.h:1079
png_dsort_struct::left
png_byte left
Definition: pngrtran.c:421
png_struct_def::error_fn
png_error_ptr error_fn
Definition: pngstruct.h:151
PNG_COLOR_TYPE_PALETTE
#define PNG_COLOR_TYPE_PALETTE
Definition: png.h:669
PNG_SWAP_ALPHA
#define PNG_SWAP_ALPHA
Definition: pngpriv.h:659
png_create_colormap_entry
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
png_do_rgb_to_gray
static int png_do_rgb_to_gray(png_structrp png_ptr, png_row_infop row_info, png_bytep row)
Definition: pngrtran.c:2999
png_sRGB
#define png_sRGB
Definition: pngpriv.h:869
png_warning_parameter_signed
void png_warning_parameter_signed(png_warning_parameters p, int number, int format, png_int_32 value)
Definition: pngerror.c:263
png_struct_def::zowner
png_uint_32 zowner
Definition: pngstruct.h:182
PNG_USER_TRANSFORM
#define PNG_USER_TRANSFORM
Definition: pngpriv.h:662
g29_auto.offset_x
offset_x
Definition: g29_auto.py:158
size
static png_bytep size_t size
Definition: pngwrite.c:2170
png_colorspace_set_gamma
void png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA)
Definition: png.c:1114
PNG_IO_CHUNK_HDR
#define PNG_IO_CHUNK_HDR
Definition: png.h:2426
png_set_unknown_chunk_location
void PNGAPI png_set_unknown_chunk_location(png_const_structrp png_ptr, png_inforp info_ptr, int chunk, int location)
Definition: pngset.c:1299
PNG_CMAP_GA_BACKGROUND
#define PNG_CMAP_GA_BACKGROUND
Definition: pngread.c:1272
png_set_invalid
void PNGAPI png_set_invalid(png_const_structrp png_ptr, png_inforp info_ptr, int mask)
Definition: pngset.c:1626
png_image::opaque
png_controlp opaque
Definition: png.h:2673
png_set_bgr
void PNGAPI png_set_bgr(png_structrp png_ptr)
Definition: pngtrans.c:21
png_struct_def::pass
png_byte pass
Definition: pngstruct.h:255
intent
png_uint_16 intent
Definition: png.c:2251
png_do_strip_channel
void png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
Definition: pngtrans.c:495
PNG_IGNORE_ADLER32
#define PNG_IGNORE_ADLER32
Definition: png.h:3207