Prusa MINI Firmware overview
pnginfo.h
Go to the documentation of this file.
1 
2 /* pnginfo.h - header file for PNG reference library
3  *
4  * Copyright (c) 2018 Cosmin Truta
5  * Copyright (c) 1998-2002,2004,2006-2013,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  /* png_info is a structure that holds the information in a PNG file so
15  * that the application can find out the characteristics of the image.
16  * If you are reading the file, this structure will tell you what is
17  * in the PNG file. If you are writing the file, fill in the information
18  * you want to put into the PNG file, using png_set_*() functions, then
19  * call png_write_info().
20  *
21  * The names chosen should be very close to the PNG specification, so
22  * consult that document for information about the meaning of each field.
23  *
24  * With libpng < 0.95, it was only possible to directly set and read the
25  * the values in the png_info_struct, which meant that the contents and
26  * order of the values had to remain fixed. With libpng 0.95 and later,
27  * however, there are now functions that abstract the contents of
28  * png_info_struct from the application, so this makes it easier to use
29  * libpng with dynamic libraries, and even makes it possible to use
30  * libraries that don't have all of the libpng ancillary chunk-handing
31  * functionality. In libpng-1.5.0 this was moved into a separate private
32  * file that is not visible to applications.
33  *
34  * The following members may have allocated storage attached that should be
35  * cleaned up before the structure is discarded: palette, trans, text,
36  * pcal_purpose, pcal_units, pcal_params, hist, iccp_name, iccp_profile,
37  * splt_palettes, scal_unit, row_pointers, and unknowns. By default, these
38  * are automatically freed when the info structure is deallocated, if they were
39  * allocated internally by libpng. This behavior can be changed by means
40  * of the png_data_freer() function.
41  *
42  * More allocation details: all the chunk-reading functions that
43  * change these members go through the corresponding png_set_*
44  * functions. A function to clear these members is available: see
45  * png_free_data(). The png_set_* functions do not depend on being
46  * able to point info structure members to any of the storage they are
47  * passed (they make their own copies), EXCEPT that the png_set_text
48  * functions use the same storage passed to them in the text_ptr or
49  * itxt_ptr structure argument, and the png_set_rows and png_set_unknowns
50  * functions do not make their own copies.
51  */
52 #ifndef PNGINFO_H
53 #define PNGINFO_H
54 
56 {
57  /* The following are necessary for every PNG file */
58  png_uint_32 width; /* width of image in pixels (from IHDR) */
59  png_uint_32 height; /* height of image in pixels (from IHDR) */
60  png_uint_32 valid; /* valid chunk data (see PNG_INFO_ below) */
61  size_t rowbytes; /* bytes needed to hold an untransformed row */
62  png_colorp palette; /* array of color values (valid & PNG_INFO_PLTE) */
63  png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */
64  png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
65  png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */
66  png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */
67  /* The following three should have been named *_method not *_type */
68  png_byte compression_type; /* must be PNG_COMPRESSION_TYPE_BASE (IHDR) */
69  png_byte filter_type; /* must be PNG_FILTER_TYPE_BASE (from IHDR) */
70  png_byte interlace_type; /* One of PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
71 
72  /* The following are set by png_set_IHDR, called from the application on
73  * write, but the are never actually used by the write code.
74  */
75  png_byte channels; /* number of data channels per pixel (1, 2, 3, 4) */
76  png_byte pixel_depth; /* number of bits per pixel */
77  png_byte spare_byte; /* to align the data, and for future use */
78 
79 #ifdef PNG_READ_SUPPORTED
80  /* This is never set during write */
81  png_byte signature[8]; /* magic bytes read by libpng from start of file */
82 #endif
83 
84  /* The rest of the data is optional. If you are reading, check the
85  * valid field to see if the information in these are valid. If you
86  * are writing, set the valid field to those chunks you want written,
87  * and initialize the appropriate fields below.
88  */
89 
90 #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
91  /* png_colorspace only contains 'flags' if neither GAMMA or COLORSPACE are
92  * defined. When COLORSPACE is switched on all the colorspace-defining
93  * chunks should be enabled, when GAMMA is switched on all the gamma-defining
94  * chunks should be enabled. If this is not done it becomes possible to read
95  * inconsistent PNG files and assign a probably incorrect interpretation to
96  * the information. (In other words, by carefully choosing which chunks to
97  * recognize the system configuration can select an interpretation for PNG
98  * files containing ambiguous data and this will result in inconsistent
99  * behavior between different libpng builds!)
100  */
101  png_colorspace colorspace;
102 #endif
103 
104 #ifdef PNG_iCCP_SUPPORTED
105  /* iCCP chunk data. */
106  png_charp iccp_name; /* profile name */
107  png_bytep iccp_profile; /* International Color Consortium profile data */
108  png_uint_32 iccp_proflen; /* ICC profile data length */
109 #endif
110 
111 #ifdef PNG_TEXT_SUPPORTED
112  /* The tEXt, and zTXt chunks contain human-readable textual data in
113  * uncompressed, compressed, and optionally compressed forms, respectively.
114  * The data in "text" is an array of pointers to uncompressed,
115  * null-terminated C strings. Each chunk has a keyword that describes the
116  * textual data contained in that chunk. Keywords are not required to be
117  * unique, and the text string may be empty. Any number of text chunks may
118  * be in an image.
119  */
120  int num_text; /* number of comments read or comments to write */
121  int max_text; /* current size of text array */
122  png_textp text; /* array of comments read or comments to write */
123 #endif /* TEXT */
124 
125 #ifdef PNG_tIME_SUPPORTED
126  /* The tIME chunk holds the last time the displayed image data was
127  * modified. See the png_time struct for the contents of this struct.
128  */
129  png_time mod_time;
130 #endif
131 
132 #ifdef PNG_sBIT_SUPPORTED
133  /* The sBIT chunk specifies the number of significant high-order bits
134  * in the pixel data. Values are in the range [1, bit_depth], and are
135  * only specified for the channels in the pixel data. The contents of
136  * the low-order bits is not specified. Data is valid if
137  * (valid & PNG_INFO_sBIT) is non-zero.
138  */
139  png_color_8 sig_bit; /* significant bits in color channels */
140 #endif
141 
142 #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_EXPAND_SUPPORTED) || \
143 defined(PNG_READ_BACKGROUND_SUPPORTED)
144  /* The tRNS chunk supplies transparency data for paletted images and
145  * other image types that don't need a full alpha channel. There are
146  * "num_trans" transparency values for a paletted image, stored in the
147  * same order as the palette colors, starting from index 0. Values
148  * for the data are in the range [0, 255], ranging from fully transparent
149  * to fully opaque, respectively. For non-paletted images, there is a
150  * single color specified that should be treated as fully transparent.
151  * Data is valid if (valid & PNG_INFO_tRNS) is non-zero.
152  */
153  png_bytep trans_alpha; /* alpha values for paletted image */
154  png_color_16 trans_color; /* transparent color for non-palette image */
155 #endif
156 
157 #if defined(PNG_bKGD_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED)
158  /* The bKGD chunk gives the suggested image background color if the
159  * display program does not have its own background color and the image
160  * is needs to composited onto a background before display. The colors
161  * in "background" are normally in the same color space/depth as the
162  * pixel data. Data is valid if (valid & PNG_INFO_bKGD) is non-zero.
163  */
164  png_color_16 background;
165 #endif
166 
167 #ifdef PNG_oFFs_SUPPORTED
168  /* The oFFs chunk gives the offset in "offset_unit_type" units rightwards
169  * and downwards from the top-left corner of the display, page, or other
170  * application-specific co-ordinate space. See the PNG_OFFSET_ defines
171  * below for the unit types. Valid if (valid & PNG_INFO_oFFs) non-zero.
172  */
173  png_int_32 x_offset; /* x offset on page */
174  png_int_32 y_offset; /* y offset on page */
175  png_byte offset_unit_type; /* offset units type */
176 #endif
177 
178 #ifdef PNG_pHYs_SUPPORTED
179  /* The pHYs chunk gives the physical pixel density of the image for
180  * display or printing in "phys_unit_type" units (see PNG_RESOLUTION_
181  * defines below). Data is valid if (valid & PNG_INFO_pHYs) is non-zero.
182  */
183  png_uint_32 x_pixels_per_unit; /* horizontal pixel density */
184  png_uint_32 y_pixels_per_unit; /* vertical pixel density */
185  png_byte phys_unit_type; /* resolution type (see PNG_RESOLUTION_ below) */
186 #endif
187 
188 #ifdef PNG_eXIf_SUPPORTED
189  int num_exif; /* Added at libpng-1.6.31 */
190  png_bytep exif;
191 # ifdef PNG_READ_eXIf_SUPPORTED
192  png_bytep eXIf_buf; /* Added at libpng-1.6.32 */
193 # endif
194 #endif
195 
196 #ifdef PNG_hIST_SUPPORTED
197  /* The hIST chunk contains the relative frequency or importance of the
198  * various palette entries, so that a viewer can intelligently select a
199  * reduced-color palette, if required. Data is an array of "num_palette"
200  * values in the range [0,65535]. Data valid if (valid & PNG_INFO_hIST)
201  * is non-zero.
202  */
203  png_uint_16p hist;
204 #endif
205 
206 #ifdef PNG_pCAL_SUPPORTED
207  /* The pCAL chunk describes a transformation between the stored pixel
208  * values and original physical data values used to create the image.
209  * The integer range [0, 2^bit_depth - 1] maps to the floating-point
210  * range given by [pcal_X0, pcal_X1], and are further transformed by a
211  * (possibly non-linear) transformation function given by "pcal_type"
212  * and "pcal_params" into "pcal_units". Please see the PNG_EQUATION_
213  * defines below, and the PNG-Group's PNG extensions document for a
214  * complete description of the transformations and how they should be
215  * implemented, and for a description of the ASCII parameter strings.
216  * Data values are valid if (valid & PNG_INFO_pCAL) non-zero.
217  */
218  png_charp pcal_purpose; /* pCAL chunk description string */
219  png_int_32 pcal_X0; /* minimum value */
220  png_int_32 pcal_X1; /* maximum value */
221  png_charp pcal_units; /* Latin-1 string giving physical units */
222  png_charpp pcal_params; /* ASCII strings containing parameter values */
223  png_byte pcal_type; /* equation type (see PNG_EQUATION_ below) */
224  png_byte pcal_nparams; /* number of parameters given in pcal_params */
225 #endif
226 
227 /* New members added in libpng-1.0.6 */
228  png_uint_32 free_me; /* flags items libpng is responsible for freeing */
229 
230 #ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED
231  /* Storage for unknown chunks that the library doesn't recognize. */
232  png_unknown_chunkp unknown_chunks;
233 
234  /* The type of this field is limited by the type of
235  * png_struct::user_chunk_cache_max, else overflow can occur.
236  */
237  int unknown_chunks_num;
238 #endif
239 
240 #ifdef PNG_sPLT_SUPPORTED
241  /* Data on sPLT chunks (there may be more than one). */
242  png_sPLT_tp splt_palettes;
243  int splt_palettes_num; /* Match type returned by png_get API */
244 #endif
245 
246 #ifdef PNG_sCAL_SUPPORTED
247  /* The sCAL chunk describes the actual physical dimensions of the
248  * subject matter of the graphic. The chunk contains a unit specification
249  * a byte value, and two ASCII strings representing floating-point
250  * values. The values are width and height corresponding to one pixel
251  * in the image. Data values are valid if (valid & PNG_INFO_sCAL) is
252  * non-zero.
253  */
254  png_byte scal_unit; /* unit of physical scale */
255  png_charp scal_s_width; /* string containing height */
256  png_charp scal_s_height; /* string containing width */
257 #endif
258 
259 #ifdef PNG_INFO_IMAGE_SUPPORTED
260  /* Memory has been allocated if (valid & PNG_ALLOCATED_INFO_ROWS)
261  non-zero */
262  /* Data valid if (valid & PNG_INFO_IDAT) non-zero */
263  png_bytepp row_pointers; /* the image bits */
264 #endif
265 
266 };
267 #endif /* PNGINFO_H */
PNG_FORMAT_NUMBER
#define PNG_FORMAT_NUMBER(buffer, format, number)
Definition: pngpriv.h:1748
png_get_unknown_chunks
int PNGAPI png_get_unknown_chunks(png_const_structrp png_ptr, png_inforp info_ptr, png_unknown_chunkpp unknowns)
Definition: pngget.c:1139
fixed_message_ln
#define fixed_message_ln
png_get_gAMA_fixed
png_uint_32 PNGAPI png_get_gAMA_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *file_gamma)
Definition: pngget.c:678
PNG_NORETURN
#define PNG_NORETURN
Definition: pngconf.h:436
png_const_bytep
const typedef png_byte * png_const_bytep
Definition: pngconf.h:580
png_info_def::width
png_uint_32 width
Definition: pnginfo.h:58
png_info_def::spare_byte
png_byte spare_byte
Definition: pnginfo.h:77
PNG_FLAG_STRIP_ERROR_NUMBERS
#define PNG_FLAG_STRIP_ERROR_NUMBERS
Definition: pngpriv.h:697
png_get_sBIT
png_uint_32 PNGAPI png_get_sBIT(png_const_structrp png_ptr, png_inforp info_ptr, png_color_8p *sig_bit)
Definition: pngget.c:1031
png_safe_execute
int png_safe_execute(png_imagep image_in, int(*function)(png_voidp), png_voidp arg)
Definition: pngerror.c:936
PNG_UNUSED
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
png_get_error_ptr
png_voidp PNGAPI png_get_error_ptr(png_const_structrp png_ptr)
Definition: pngerror.c:856
png_info_def::height
png_uint_32 height
Definition: pnginfo.h:59
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
auto_build.error
bool error
Definition: auto_build.py:637
png_get_text
int PNGAPI png_get_text(png_const_structrp png_ptr, png_inforp info_ptr, png_textp *text_ptr, int *num_text)
Definition: pngget.c:1049
png_get_signature
png_const_bytep PNGAPI png_get_signature(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:477
png_get_palette_max
int PNGAPI png_get_palette_max(png_const_structp png_ptr, png_const_infop info_ptr)
Definition: pngget.c:1239
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_INFO_tIME
#define PNG_INFO_tIME
Definition: png.h:741
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_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_get_sCAL_s
png_uint_32 PNGAPI png_get_sCAL_s(png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_charpp width, png_charpp height)
Definition: pngget.c:960
PNG_FLAG_APP_WARNINGS_WARN
#define PNG_FLAG_APP_WARNINGS_WARN
Definition: pngpriv.h:700
png_fixed_inches_from_microns
static png_fixed_point png_fixed_inches_from_microns(png_const_structrp png_ptr, png_int_32 microns)
Definition: pngget.c:368
png_get_pixel_aspect_ratio_fixed
png_fixed_point PNGAPI png_get_pixel_aspect_ratio_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:205
png_free
void PNGAPI png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:232
png_get_hIST
png_uint_32 PNGAPI png_get_hIST(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_16p *hist)
Definition: pngget.c:808
PNG_INFO_pCAL
#define PNG_INFO_pCAL
Definition: png.h:742
PNGCBAPI
#define PNGCBAPI
Definition: pngconf.h:258
PNG_INFO_oFFs
#define PNG_INFO_oFFs
Definition: png.h:740
unit
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
png_get_y_offset_inches_fixed
png_fixed_point PNGAPI png_get_y_offset_inches_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:389
PNG_ABORT
#define PNG_ABORT()
Definition: pngpriv.h:562
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
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_FUNCTION
static PNG_FUNCTION(void, png_default_error, PNGARG((png_const_structrp png_ptr, png_const_charp error_message)), PNG_NORETURN)
pngpriv.h
png_inforp
png_info *PNG_RESTRICT png_inforp
Definition: png.h:471
png_get_pHYs_dpi
png_uint_32 PNGAPI png_get_pHYs_dpi(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
Definition: pngget.c:421
type
uint8_t type
Definition: UsbCore.h:184
png_bytepp
png_byte ** png_bytepp
Definition: pngconf.h:606
g29_auto.start
start
Definition: g29_auto.py:150
png_image::warning_or_error
png_uint_32 warning_or_error
Definition: png.h:2704
png_get_pHYs
png_uint_32 PNGAPI png_get_pHYs(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
Definition: pngget.c:978
png_get_pixels_per_inch
png_uint_32 PNGAPI png_get_pixels_per_inch(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:349
PNG_IS_READ_STRUCT
#define PNG_IS_READ_STRUCT
Definition: pngpriv.h:639
png_info_def::color_type
png_byte color_type
Definition: pnginfo.h:66
png_image::message
char message[64]
Definition: png.h:2706
PNG_FLAG_STRIP_ERROR_TEXT
#define PNG_FLAG_STRIP_ERROR_TEXT
Definition: pngpriv.h:698
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
png_get_valid
png_uint_32 PNGAPI png_get_valid(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 flag)
Definition: pngget.c:20
i
uint8_t i
Definition: screen_test_graph.c:72
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_INFO_PLTE
#define PNG_INFO_PLTE
Definition: png.h:735
isnonalpha
#define isnonalpha(c)
Definition: pngerror.c:427
png_const_structrp
const typedef png_struct *PNG_RESTRICT png_const_structrp
Definition: png.h:470
PNG_WARNING_PARAMETER_COUNT
#define PNG_WARNING_PARAMETER_COUNT
Definition: pngpriv.h:1769
png_get_eXIf
png_uint_32 PNGAPI png_get_eXIf(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *exif)
Definition: pngget.c:779
png_get_x_offset_inches
float PNGAPI png_get_x_offset_inches(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:399
png_get_interlace_type
png_byte PNGAPI png_get_interlace_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:97
width
png_const_structrp png_const_inforp int png_fixed_point * width
Definition: png.h:2161
png_get_cHRM_XYZ
png_uint_32 PNGAPI png_get_cHRM_XYZ(png_const_structrp png_ptr, png_const_inforp info_ptr, double *red_X, double *red_Y, double *red_Z, double *green_X, double *green_Y, double *green_Z, double *blue_X, double *blue_Y, double *blue_Z)
Definition: pngget.c:558
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
png_get_y_pixels_per_inch
png_uint_32 PNGAPI png_get_y_pixels_per_inch(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:361
png_get_user_width_max
png_uint_32 PNGAPI png_get_user_width_max(png_const_structrp png_ptr)
Definition: pngget.c:1195
PNG_IMAGE_WARNING
#define PNG_IMAGE_WARNING
Definition: png.h:2691
png_info_def::palette
png_colorp palette
Definition: pnginfo.h:62
png_get_y_offset_microns
png_int_32 PNGAPI png_get_y_offset_microns(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:256
PNG_RESOLUTION_METER
#define PNG_RESOLUTION_METER
Definition: png.h:711
png_voidcast
#define png_voidcast(type, value)
Definition: pngpriv.h:494
red_X
png_const_structrp png_const_inforp double * red_X
Definition: png.h:1939
png_info_def::valid
png_uint_32 valid
Definition: pnginfo.h:60
NULL
#define NULL
Definition: usbd_def.h:53
PNG_OFFSET_PIXEL
#define PNG_OFFSET_PIXEL
Definition: png.h:692
png_get_image_height
png_uint_32 PNGAPI png_get_image_height(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:61
png_ptr
png_structrp png_ptr
Definition: png.h:1083
info_ptr
png_const_structrp png_const_inforp info_ptr
Definition: png.h:1939
PNG_NUMBER_BUFFER_SIZE
#define PNG_NUMBER_BUFFER_SIZE
Definition: pngpriv.h:1752
png_get_cHRM_fixed
png_uint_32 PNGAPI png_get_cHRM_fixed(png_const_structrp png_ptr, png_const_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: pngget.c:641
PNG_INFO_gAMA
#define PNG_INFO_gAMA
Definition: png.h:732
createSpeedLookupTable.end
end
Definition: createSpeedLookupTable.py:33
PNG_INFO_bKGD
#define PNG_INFO_bKGD
Definition: png.h:737
png_get_IHDR
png_uint_32 PNGAPI png_get_IHDR(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type)
Definition: pngget.c:825
png_text_struct
Definition: png.h:562
png_get_filter_type
png_byte PNGAPI png_get_filter_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:88
png_get_rows
png_bytepp PNGAPI png_get_rows(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:40
png_control_jmp_buf
#define png_control_jmp_buf(pc)
Definition: pngpriv.h:2054
png_uint_32
unsigned int png_uint_32
Definition: pngconf.h:511
png_info_def::num_palette
png_uint_16 num_palette
Definition: pnginfo.h:63
PNG_INFO_eXIf
#define PNG_INFO_eXIf
Definition: png.h:748
png_image_free
void PNGAPI png_image_free(png_imagep image)
Definition: png.c:4582
PNGAPI
#define PNGAPI
Definition: pngconf.h:261
png_uint_16
png_uint_16(PNGAPI png_get_uint_16)(png_const_bytep buf)
Definition: pngrutil.c:102
png_info_def::bit_depth
png_byte bit_depth
Definition: pnginfo.h:65
PNG_NUMBER_FORMAT_u
#define PNG_NUMBER_FORMAT_u
Definition: pngpriv.h:1757
png_get_oFFs
png_uint_32 PNGAPI png_get_oFFs(png_const_structrp png_ptr, png_const_inforp info_ptr, png_int_32 *offset_x, png_int_32 *offset_y, int *unit_type)
Definition: pngget.c:870
PNG_NUMBER_FORMAT_02x
#define PNG_NUMBER_FORMAT_02x
Definition: pngpriv.h:1762
png_chunk_warning
void PNGAPI png_chunk_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:497
png_float
#define png_float(png_ptr, fixed, s)
Definition: pngpriv.h:781
png_get_rgb_to_gray_status
png_byte PNGAPI png_get_rgb_to_gray_status(png_const_structrp png_ptr)
Definition: pngget.c:1154
PNG_MAX_ERROR_TEXT
#define PNG_MAX_ERROR_TEXT
Definition: pngerror.c:418
PNG_NUMBER_FORMAT_02u
#define PNG_NUMBER_FORMAT_02u
Definition: pngpriv.h:1758
png_get_y_offset_inches
float PNGAPI png_get_y_offset_inches(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:410
png_get_x_offset_pixels
png_int_32 PNGAPI png_get_x_offset_pixels(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:276
png_chunk_report
void png_chunk_report(png_const_structrp png_ptr, png_const_charp message, int error)
Definition: pngerror.c:531
png_get_x_offset_inches_fixed
png_fixed_point PNGAPI png_get_x_offset_inches_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:379
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_info_def::rowbytes
size_t rowbytes
Definition: pnginfo.h:61
blue_X
png_const_structrp png_const_inforp double double double double double double double * blue_X
Definition: png.h:1939
png_get_y_offset_pixels
png_int_32 PNGAPI png_get_y_offset_pixels(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:296
PNG_INFO_sRGB
#define PNG_INFO_sRGB
Definition: png.h:743
png_benign_error
void PNGAPI png_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:362
png_get_bKGD
png_uint_32 PNGAPI png_get_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, png_color_16p *background)
Definition: pngget.c:488
png_info_def::interlace_type
png_byte interlace_type
Definition: pnginfo.h:70
png_const_inforp
const typedef png_info *PNG_RESTRICT png_const_inforp
Definition: png.h:472
png_time_struct
Definition: png.h:600
png_get_io_chunk_type
png_uint_32 PNGAPI png_get_io_chunk_type(png_const_structrp png_ptr)
Definition: pngget.c:1230
png_muldiv_warn
png_fixed_point png_muldiv_warn(png_const_structrp png_ptr, png_fixed_point a, png_int_32 times, png_int_32 divisor)
Definition: png.c:3472
png_info_def::num_trans
png_uint_16 num_trans
Definition: pnginfo.h:64
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_fixed_point
png_int_32 png_fixed_point
Definition: pngconf.h:574
png_warning_parameters
char png_warning_parameters[PNG_WARNING_PARAMETER_COUNT][PNG_WARNING_PARAMETER_SIZE]
Definition: pngpriv.h:1775
png_info_def::filter_type
png_byte filter_type
Definition: pnginfo.h:69
png_get_sPLT
int PNGAPI png_get_sPLT(png_const_structrp png_ptr, png_inforp info_ptr, png_sPLT_tpp spalettes)
Definition: pngget.c:764
png_const_charp
const typedef char * png_const_charp
Definition: pngconf.h:590
PNG_COMPRESSION_TYPE_BASE
#define PNG_COMPRESSION_TYPE_BASE
Definition: png.h:678
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
png_get_tIME
png_uint_32 PNGAPI png_get_tIME(png_const_structrp png_ptr, png_inforp info_ptr, png_timep *mod_time)
Definition: pngget.c:1075
png_get_rowbytes
size_t PNGAPI png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:30
png_structrp
png_struct *PNG_RESTRICT png_structrp
Definition: png.h:469
png_digit
static const char png_digit[16]
Definition: pngerror.c:428
PNG_LITERAL_RIGHT_SQUARE_BRACKET
#define PNG_LITERAL_RIGHT_SQUARE_BRACKET
Definition: pngdebug.h:45
png_color_struct
Definition: png.h:478
PNG_INFO_sCAL
#define PNG_INFO_sCAL
Definition: png.h:746
png_control::error_buf
png_voidp error_buf
Definition: pngpriv.h:2039
png_set_longjmp_fn
jmp_buf *PNGAPI png_set_longjmp_fn(png_structrp png_ptr, png_longjmp_ptr longjmp_fn, size_t jmp_buf_size)
Definition: pngerror.c:597
png_info_def::compression_type
png_byte compression_type
Definition: pnginfo.h:68
if
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
png_get_y_pixels_per_meter
png_uint_32 PNGAPI png_get_y_pixels_per_meter(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:137
PNG_OFFSET_MICROMETER
#define PNG_OFFSET_MICROMETER
Definition: png.h:693
png_get_eXIf_1
png_uint_32 PNGAPI png_get_eXIf_1(png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *num_exif, png_bytep *exif)
Definition: pngget.c:789
png_get_io_state
png_uint_32 PNGAPI png_get_io_state(png_const_structrp png_ptr)
Definition: pngget.c:1224
png_get_uint_32
#define png_get_uint_32(buf)
Definition: png.h:2598
png_get_tRNS
png_uint_32 PNGAPI png_get_tRNS(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color)
Definition: pngget.c:1093
png_get_x_pixels_per_inch
png_uint_32 PNGAPI png_get_x_pixels_per_inch(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:355
png_free_jmpbuf
void png_free_jmpbuf(png_structrp png_ptr)
Definition: pngerror.c:666
png_get_pixel_aspect_ratio
float PNGAPI png_get_pixel_aspect_ratio(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:181
PNG_IDAT_READ_SIZE
#define PNG_IDAT_READ_SIZE
Definition: pnglibconf.h:195
png_warning_parameter
void png_warning_parameter(png_warning_parameters p, int number, png_const_charp string)
Definition: pngerror.c:247
png_struct_def
Definition: pngstruct.h:143
png_charpp
char ** png_charpp
Definition: pngconf.h:612
png_get_image_width
png_uint_32 PNGAPI png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:52
PNG_LITERAL_SHARP
#define PNG_LITERAL_SHARP
Definition: pngdebug.h:39
png_image
Definition: png.h:2671
png_info_def::free_me
png_uint_32 free_me
Definition: pnginfo.h:228
fixed_message
#define fixed_message
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_get_user_chunk_ptr
png_voidp PNGAPI png_get_user_chunk_ptr(png_const_structrp png_ptr)
Definition: pngget.c:1162
PNG_INFO_pHYs
#define PNG_INFO_pHYs
Definition: png.h:739
png_default_warning
static void png_default_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:785
green_Z
png_const_structrp png_const_inforp double double double double double double * green_Z
Definition: png.h:1939
PNG_IMAGE_ERROR
#define PNG_IMAGE_ERROR
Definition: png.h:2692
png_error
else png_error(png_ptr, "png_image_write_to_memory: PNG too big")
PNG_LITERAL_LEFT_SQUARE_BRACKET
#define PNG_LITERAL_LEFT_SQUARE_BRACKET
Definition: pngdebug.h:42
png_uint_16p
png_uint_16 * png_uint_16p
Definition: pngconf.h:585
png_get_chunk_malloc_max
png_alloc_size_t PNGAPI png_get_chunk_malloc_max(png_const_structrp png_ptr)
Definition: pngget.c:1215
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_get_x_offset_microns
png_int_32 PNGAPI png_get_x_offset_microns(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:236
png_debug1
#define png_debug1(l, m, p1)
Definition: pngdebug.h:148
PNGARG
static void png_default_warning PNGARG((png_const_structrp png_ptr, png_const_charp warning_message))
PNG_CHUNK_WRITE_ERROR
#define PNG_CHUNK_WRITE_ERROR
Definition: pngpriv.h:1843
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_FLAG_BENIGN_ERRORS_WARN
#define PNG_FLAG_BENIGN_ERRORS_WARN
Definition: pngpriv.h:699
png_const_structp
const typedef png_struct * png_const_structp
Definition: png.h:440
png_get_gAMA
png_uint_32 PNGAPI png_get_gAMA(png_const_structrp png_ptr, png_const_inforp info_ptr, double *file_gamma)
Definition: pngget.c:697
png_alloc_size_t
size_t png_alloc_size_t
Definition: pngconf.h:557
png_info_def::channels
png_byte channels
Definition: pnginfo.h:75
png_get_sCAL
png_uint_32 PNGAPI png_get_sCAL(png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, double *width, double *height)
Definition: pngget.c:944
PNG_INFO_cHRM
#define PNG_INFO_cHRM
Definition: png.h:734
png_constcast
#define png_constcast(type, value)
Definition: pngpriv.h:504
PNG_CHUNK_ERROR
#define PNG_CHUNK_ERROR
Definition: pngpriv.h:1844
png_info_def::pixel_depth
png_byte pixel_depth
Definition: pnginfo.h:76
png_get_cHRM_XYZ_fixed
png_uint_32 PNGAPI png_get_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *int_red_X, png_fixed_point *int_red_Y, png_fixed_point *int_red_Z, png_fixed_point *int_green_X, png_fixed_point *int_green_Y, png_fixed_point *int_green_Z, png_fixed_point *int_blue_X, png_fixed_point *int_blue_Y, png_fixed_point *int_blue_Z)
Definition: pngget.c:604
png_get_bit_depth
png_byte PNGAPI png_get_bit_depth(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:70
png_get_user_height_max
png_uint_32 PNGAPI png_get_user_height_max(png_const_structrp png_ptr)
Definition: pngget.c:1201
createSpeedLookupTable.int
int
Definition: createSpeedLookupTable.py:15
png_get_compression_buffer_size
size_t PNGAPI png_get_compression_buffer_size(png_const_structrp png_ptr)
Definition: pngget.c:1169
png_set_error_fn
void PNGAPI png_set_error_fn(png_structrp png_ptr, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warning_fn)
Definition: pngerror.c:835
png_get_PLTE
png_uint_32 PNGAPI png_get_PLTE(png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette)
Definition: pngget.c:1012
PNG_INFO_sBIT
#define PNG_INFO_sBIT
Definition: png.h:733
png_unknown_chunk_t
Definition: png.h:622
png_get_x_pixels_per_meter
png_uint_32 PNGAPI png_get_x_pixels_per_meter(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:115
blue_Y
png_const_structrp png_const_inforp double double double double double double double double * blue_Y
Definition: png.h:1939
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_const_infop
const typedef png_info * png_const_infop
Definition: png.h:455
png_warning_parameter_unsigned
void png_warning_parameter_unsigned(png_warning_parameters p, int number, int format, png_alloc_size_t value)
Definition: pngerror.c:255
png_get_chunk_cache_max
png_uint_32 PNGAPI png_get_chunk_cache_max(png_const_structrp png_ptr)
Definition: pngget.c:1208
png_safecat
size_t png_safecat(png_charp buffer, size_t bufsize, size_t pos, png_const_charp string)
Definition: pngerror.c:112
PNG_INFO_hIST
#define PNG_INFO_hIST
Definition: png.h:738
png_sPLT_struct
Definition: png.h:533
green_Y
png_const_structrp png_const_inforp double double double double double * green_Y
Definition: png.h:1939
ppi_from_ppm
static png_uint_32 ppi_from_ppm(png_uint_32 ppm)
Definition: pngget.c:317
png_get_pixels_per_meter
png_uint_32 PNGAPI png_get_pixels_per_meter(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:159
PNG_FP_1
#define PNG_FP_1
Definition: png.h:656
png_get_pCAL
png_uint_32 PNGAPI png_get_pCAL(png_const_structrp png_ptr, png_inforp info_ptr, png_charp *purpose, png_int_32 *X0, png_int_32 *X1, int *type, int *nparams, png_charp *units, png_charpp *params)
Definition: pngget.c:891
png_app_warning
void png_app_warning(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:392
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_get_sCAL_fixed
png_uint_32 PNGAPI png_get_sCAL_fixed(png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_fixed_point *width, png_fixed_point *height)
Definition: pngget.c:921
png_get_sRGB
png_uint_32 PNGAPI png_get_sRGB(png_const_structrp png_ptr, png_const_inforp info_ptr, int *file_srgb_intent)
Definition: pngget.c:718
png_format_buffer
static void png_format_buffer(png_const_structrp png_ptr, png_charp buffer, png_const_charp error_message)
Definition: pngerror.c:434
png_get_compression_type
png_byte PNGAPI png_get_compression_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:106
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_STRING_NEWLINE
#define PNG_STRING_NEWLINE
Definition: pngdebug.h:48
PNG_NUMBER_FORMAT_x
#define PNG_NUMBER_FORMAT_x
Definition: pngpriv.h:1761
png_get_cHRM
png_uint_32 PNGAPI png_get_cHRM(png_const_structrp png_ptr, png_const_inforp info_ptr, double *white_x, double *white_y, double *red_x, double *red_y, double *green_x, double *green_y, double *blue_x, double *blue_y)
Definition: pngget.c:512
png_get_color_type
png_byte PNGAPI png_get_color_type(png_const_structrp png_ptr, png_const_inforp info_ptr)
Definition: pngget.c:79
PNG_COLOR_TYPE_PALETTE
#define PNG_COLOR_TYPE_PALETTE
Definition: png.h:669
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_NUMBER_FORMAT_fixed
#define PNG_NUMBER_FORMAT_fixed
Definition: pngpriv.h:1763
g29_auto.offset_x
offset_x
Definition: g29_auto.py:158
size
static png_bytep size_t size
Definition: pngwrite.c:2170
png_format_number
png_charp png_format_number(png_const_charp start, png_charp end, int format, png_alloc_size_t number)
Definition: pngerror.c:133
png_image::opaque
png_controlp opaque
Definition: png.h:2673
png_get_iCCP
png_uint_32 PNGAPI png_get_iCCP(png_const_structrp png_ptr, png_inforp info_ptr, png_charpp name, int *compression_type, png_bytepp profile, png_uint_32 *proflen)
Definition: pngget.c:736