LMMS
Loading...
Searching...
No Matches
pngstruct.h
Go to the documentation of this file.
1
2/* pngstruct.h - header file for PNG reference library
3 *
4 * Copyright (c) 2018-2019 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#if ! JUCE_INCLUDE_ZLIB_CODE
31#include "zlib.h"
32#endif
33#ifdef const
34 /* zlib.h sometimes #defines const to nothing, undo this. */
35# undef const
36#endif
37
38/* zlib.h has mediocre z_const use before 1.2.6, this stuff is for compatibility
39 * with older builds.
40 */
41#if ZLIB_VERNUM < 0x1260
42# define PNGZ_MSG_CAST(s) png_constcast(char*,s)
43# define PNGZ_INPUT_CAST(b) png_constcast(png_bytep,b)
44#else
45# define PNGZ_MSG_CAST(s) (s)
46# define PNGZ_INPUT_CAST(b) (b)
47#endif
48
49/* zlib.h declares a magic type 'uInt' that limits the amount of data that zlib
50 * can handle at once. This type need be no larger than 16 bits (so maximum of
51 * 65535), this define allows us to discover how big it is, but limited by the
52 * maximum for size_t. The value can be overridden in a library build
53 * (pngusr.h, or set it in CPPFLAGS) and it works to set it to a considerably
54 * lower value (e.g. 255 works). A lower value may help memory usage (slightly)
55 * and may even improve performance on some systems (and degrade it on others.)
56 */
57#ifndef ZLIB_IO_MAX
58# define ZLIB_IO_MAX ((uInt)-1)
59#endif
60
61#ifdef PNG_WRITE_SUPPORTED
62/* The type of a compression buffer list used by the write code. */
63typedef struct png_compression_buffer
64{
65 struct png_compression_buffer *next;
66 png_byte output[1]; /* actually zbuf_size */
68
69#define PNG_COMPRESSION_BUFFER_SIZE(pp)\
70 (offsetof(png_compression_buffer, output) + (pp)->zbuffer_size)
71#endif
72
73/* Colorspace support; structures used in png_struct, png_info and in internal
74 * functions to hold and communicate information about the color space.
75 *
76 * PNG_COLORSPACE_SUPPORTED is only required if the application will perform
77 * colorspace corrections, otherwise all the colorspace information can be
78 * skipped and the size of libpng can be reduced (significantly) by compiling
79 * out the colorspace support.
80 */
81#ifdef PNG_COLORSPACE_SUPPORTED
82/* The chromaticities of the red, green and blue colorants and the chromaticity
83 * of the corresponding white point (i.e. of rgb(1.0,1.0,1.0)).
84 */
85typedef struct png_xy
86{
87 png_fixed_point redx, redy;
88 png_fixed_point greenx, greeny;
89 png_fixed_point bluex, bluey;
90 png_fixed_point whitex, whitey;
91} png_xy;
92
93/* The same data as above but encoded as CIE XYZ values. When this data comes
94 * from chromaticities the sum of the Y values is assumed to be 1.0
95 */
96typedef struct png_XYZ
97{
101} png_XYZ;
102#endif /* COLORSPACE */
103
104#if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
105/* A colorspace is all the above plus, potentially, profile information;
106 * however at present libpng does not use the profile internally so it is only
107 * stored in the png_info struct (if iCCP is supported.) The rendering intent
108 * is retained here and is checked.
109 *
110 * The file gamma encoding information is also stored here and gamma correction
111 * is done by libpng, whereas color correction must currently be done by the
112 * application.
113 */
114typedef struct png_colorspace
115{
116#ifdef PNG_GAMMA_SUPPORTED
117 png_fixed_point gamma; /* File gamma */
118#endif
119
120#ifdef PNG_COLORSPACE_SUPPORTED
121 png_xy end_points_xy; /* End points as chromaticities */
122 png_XYZ end_points_XYZ; /* End points as CIE XYZ colorant values */
123 png_uint_16 rendering_intent; /* Rendering intent of a profile */
124#endif
125
126 /* Flags are always defined to simplify the code. */
127 png_uint_16 flags; /* As defined below */
129
131
132/* General flags for the 'flags' field */
133#define PNG_COLORSPACE_HAVE_GAMMA 0x0001
134#define PNG_COLORSPACE_HAVE_ENDPOINTS 0x0002
135#define PNG_COLORSPACE_HAVE_INTENT 0x0004
136#define PNG_COLORSPACE_FROM_gAMA 0x0008
137#define PNG_COLORSPACE_FROM_cHRM 0x0010
138#define PNG_COLORSPACE_FROM_sRGB 0x0020
139#define PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB 0x0040
140#define PNG_COLORSPACE_MATCHES_sRGB 0x0080 /* exact match on profile */
141#define PNG_COLORSPACE_INVALID 0x8000
142#define PNG_COLORSPACE_CANCEL(flags) (0xffff ^ (flags))
143#endif /* COLORSPACE || GAMMA */
144
146{
147#ifdef PNG_SETJMP_SUPPORTED
148 jmp_buf jmp_buf_local; /* New name in 1.6.0 for jmp_buf in png_struct */
149 png_longjmp_ptr longjmp_fn;/* setjmp non-local goto function. */
150 jmp_buf *jmp_buf_ptr; /* passed to longjmp_fn */
151 size_t jmp_buf_size; /* size of the above, if allocated */
152#endif
153 png_error_ptr error_fn; /* function for printing errors and aborting */
154#ifdef PNG_WARNINGS_SUPPORTED
155 png_error_ptr warning_fn; /* function for printing warnings */
156#endif
157 png_voidp error_ptr; /* user supplied struct for error functions */
158 png_rw_ptr write_data_fn; /* function for writing output data */
159 png_rw_ptr read_data_fn; /* function for reading input data */
160 png_voidp io_ptr; /* ptr to application struct for I/O functions */
161
162#ifdef PNG_READ_USER_TRANSFORM_SUPPORTED
163 png_user_transform_ptr read_user_transform_fn; /* user read transform */
164#endif
165
166#ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTED
167 png_user_transform_ptr write_user_transform_fn; /* user write transform */
168#endif
169
170/* These were added in libpng-1.0.2 */
171#ifdef PNG_USER_TRANSFORM_PTR_SUPPORTED
172#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
173 defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
174 png_voidp user_transform_ptr; /* user supplied struct for user transform */
175 png_byte user_transform_depth; /* bit depth of user transformed pixels */
176 png_byte user_transform_channels; /* channels in user transformed pixels */
177#endif
178#endif
179
180 png_uint_32 mode; /* tells us where we are in the PNG file */
181 png_uint_32 flags; /* flags indicating various things to libpng */
182 png_uint_32 transformations; /* which transformations to perform */
183
184 png_uint_32 zowner; /* ID (chunk type) of zstream owner, 0 if none */
185 z_stream zstream; /* decompression structure */
186
187#ifdef PNG_WRITE_SUPPORTED
188 png_compression_bufferp zbuffer_list; /* Created on demand during write */
189 uInt zbuffer_size; /* size of the actual buffer */
190
191 int zlib_level; /* holds zlib compression level */
192 int zlib_method; /* holds zlib compression method */
193 int zlib_window_bits; /* holds zlib compression window bits */
194 int zlib_mem_level; /* holds zlib compression memory level */
195 int zlib_strategy; /* holds zlib compression strategy */
196#endif
197/* Added at libpng 1.5.4 */
198#ifdef PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED
199 int zlib_text_level; /* holds zlib compression level */
200 int zlib_text_method; /* holds zlib compression method */
201 int zlib_text_window_bits; /* holds zlib compression window bits */
202 int zlib_text_mem_level; /* holds zlib compression memory level */
203 int zlib_text_strategy; /* holds zlib compression strategy */
204#endif
205/* End of material added at libpng 1.5.4 */
206/* Added at libpng 1.6.0 */
207#ifdef PNG_WRITE_SUPPORTED
208 int zlib_set_level; /* Actual values set into the zstream on write */
209 int zlib_set_method;
210 int zlib_set_window_bits;
211 int zlib_set_mem_level;
212 int zlib_set_strategy;
213#endif
214
215 png_uint_32 width; /* width of image in pixels */
216 png_uint_32 height; /* height of image in pixels */
217 png_uint_32 num_rows; /* number of rows in current pass */
218 png_uint_32 usr_width; /* width of row at start of write */
219 size_t rowbytes; /* size of row in bytes */
220 png_uint_32 iwidth; /* width of current interlaced row in pixels */
221 png_uint_32 row_number; /* current row in interlace pass */
222 png_uint_32 chunk_name; /* PNG_CHUNK() id of current chunk */
223 png_bytep prev_row; /* buffer to save previous (unfiltered) row.
224 * While reading this is a pointer into
225 * big_prev_row; while writing it is separately
226 * allocated if needed.
227 */
228 png_bytep row_buf; /* buffer to save current (unfiltered) row.
229 * While reading, this is a pointer into
230 * big_row_buf; while writing it is separately
231 * allocated.
232 */
233#ifdef PNG_WRITE_FILTER_SUPPORTED
234 png_bytep try_row; /* buffer to save trial row when filtering */
235 png_bytep tst_row; /* buffer to save best trial row when filtering */
236#endif
237 size_t info_rowbytes; /* Added in 1.5.4: cache of updated row bytes */
238
239 png_uint_32 idat_size; /* current IDAT size for read */
240 png_uint_32 crc; /* current chunk CRC value */
241 png_colorp palette; /* palette from the input file */
242 png_uint_16 num_palette; /* number of color entries in palette */
243
244/* Added at libpng-1.5.10 */
245#ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
246 int num_palette_max; /* maximum palette index found in IDAT */
247#endif
248
249 png_uint_16 num_trans; /* number of transparency values */
250 png_byte compression; /* file compression type (always 0) */
251 png_byte filter; /* file filter type (always 0) */
252 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
253 png_byte pass; /* current interlace pass (0 - 6) */
254 png_byte do_filter; /* row filter flags (see PNG_FILTER_ in png.h ) */
255 png_byte color_type; /* color type of file */
256 png_byte bit_depth; /* bit depth of file */
257 png_byte usr_bit_depth; /* bit depth of users row: write only */
258 png_byte pixel_depth; /* number of bits per pixel */
259 png_byte channels; /* number of channels in file */
260#ifdef PNG_WRITE_SUPPORTED
261 png_byte usr_channels; /* channels at start of write: write only */
262#endif
263 png_byte sig_bytes; /* magic bytes read/written from start of file */
265 /* pixel depth used for the row buffers */
267 /* pixel depth after read/write transforms */
268#if ZLIB_VERNUM >= 0x1240
269 png_byte zstream_start; /* at start of an input zlib stream */
270#endif /* Zlib >= 1.2.4 */
271#if defined(PNG_READ_FILLER_SUPPORTED) || defined(PNG_WRITE_FILLER_SUPPORTED)
272 png_uint_16 filler; /* filler bytes for pixel expansion */
273#endif
274
275#if defined(PNG_bKGD_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) ||\
276 defined(PNG_READ_ALPHA_MODE_SUPPORTED)
277 png_byte background_gamma_type;
278 png_fixed_point background_gamma;
279 png_color_16 background; /* background color in screen gamma space */
280#ifdef PNG_READ_GAMMA_SUPPORTED
281 png_color_16 background_1; /* background normalized to gamma 1.0 */
282#endif
283#endif /* bKGD */
284
285#ifdef PNG_WRITE_FLUSH_SUPPORTED
286 png_flush_ptr output_flush_fn; /* Function for flushing output */
287 png_uint_32 flush_dist; /* how many rows apart to flush, 0 - no flush */
288 png_uint_32 flush_rows; /* number of rows written since last flush */
289#endif
290
291#ifdef PNG_READ_GAMMA_SUPPORTED
292 int gamma_shift; /* number of "insignificant" bits in 16-bit gamma */
293 png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */
294
295 png_bytep gamma_table; /* gamma table for 8-bit depth files */
296 png_uint_16pp gamma_16_table; /* gamma table for 16-bit depth files */
297#if defined(PNG_READ_BACKGROUND_SUPPORTED) || \
298 defined(PNG_READ_ALPHA_MODE_SUPPORTED) || \
299 defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
300 png_bytep gamma_from_1; /* converts from 1.0 to screen */
301 png_bytep gamma_to_1; /* converts from file to 1.0 */
302 png_uint_16pp gamma_16_from_1; /* converts from 1.0 to screen */
303 png_uint_16pp gamma_16_to_1; /* converts from file to 1.0 */
304#endif /* READ_BACKGROUND || READ_ALPHA_MODE || RGB_TO_GRAY */
305#endif
306
307#if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_sBIT_SUPPORTED)
308 png_color_8 sig_bit; /* significant bits in each available channel */
309#endif
310
311#if defined(PNG_READ_SHIFT_SUPPORTED) || defined(PNG_WRITE_SHIFT_SUPPORTED)
312 png_color_8 shift; /* shift for significant bit transformation */
313#endif
314
315#if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) \
316 || defined(PNG_READ_EXPAND_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED)
317 png_bytep trans_alpha; /* alpha values for paletted files */
318 png_color_16 trans_color; /* transparent color for non-paletted files */
319#endif
320
321 png_read_status_ptr read_row_fn; /* called after each row is decoded */
322 png_write_status_ptr write_row_fn; /* called after each row is encoded */
323#ifdef PNG_PROGRESSIVE_READ_SUPPORTED
324 png_progressive_info_ptr info_fn; /* called after header data fully read */
325 png_progressive_row_ptr row_fn; /* called after a prog. row is decoded */
326 png_progressive_end_ptr end_fn; /* called after image is complete */
327 png_bytep save_buffer_ptr; /* current location in save_buffer */
328 png_bytep save_buffer; /* buffer for previously read data */
329 png_bytep current_buffer_ptr; /* current location in current_buffer */
330 png_bytep current_buffer; /* buffer for recently used data */
331 png_uint_32 push_length; /* size of current input chunk */
332 png_uint_32 skip_length; /* bytes to skip in input data */
333 size_t save_buffer_size; /* amount of data now in save_buffer */
334 size_t save_buffer_max; /* total size of save_buffer */
335 size_t buffer_size; /* total amount of available input data */
336 size_t current_buffer_size; /* amount of data now in current_buffer */
337 int process_mode; /* what push library is currently doing */
338 int cur_palette; /* current push library palette index */
339
340#endif /* PROGRESSIVE_READ */
341
342#if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__)
343/* For the Borland special 64K segment handler */
344 png_bytepp offset_table_ptr;
345 png_bytep offset_table;
346 png_uint_16 offset_table_number;
347 png_uint_16 offset_table_count;
348 png_uint_16 offset_table_count_free;
349#endif
350
351#ifdef PNG_READ_QUANTIZE_SUPPORTED
352 png_bytep palette_lookup; /* lookup table for quantizing */
353 png_bytep quantize_index; /* index translation for palette files */
354#endif
355
356/* Options */
357#ifdef PNG_SET_OPTION_SUPPORTED
358 png_uint_32 options; /* On/off state (up to 16 options) */
359#endif
360
361#if PNG_LIBPNG_VER < 10700
362/* To do: remove this from libpng-1.7 */
363#ifdef PNG_TIME_RFC1123_SUPPORTED
364 char time_buffer[29]; /* String to hold RFC 1123 time text */
365#endif
366#endif
367
368/* New members added in libpng-1.0.6 */
369
370 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
371
372#ifdef PNG_USER_CHUNKS_SUPPORTED
373 png_voidp user_chunk_ptr;
374#ifdef PNG_READ_USER_CHUNKS_SUPPORTED
375 png_user_chunk_ptr read_user_chunk_fn; /* user read chunk handler */
376#endif
377#endif
378
379#ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED
380 int unknown_default; /* As PNG_HANDLE_* */
381 unsigned int num_chunk_list; /* Number of entries in the list */
382 png_bytep chunk_list; /* List of png_byte[5]; the textual chunk name
383 * followed by a PNG_HANDLE_* byte */
384#endif
385
386/* New members added in libpng-1.0.3 */
387#ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED
388 png_byte rgb_to_gray_status;
389 /* Added in libpng 1.5.5 to record setting of coefficients: */
390 png_byte rgb_to_gray_coefficients_set;
391 /* These were changed from png_byte in libpng-1.0.6 */
392 png_uint_16 rgb_to_gray_red_coeff;
393 png_uint_16 rgb_to_gray_green_coeff;
394 /* deleted in 1.5.5: rgb_to_gray_blue_coeff; */
395#endif
396
397/* New member added in libpng-1.6.36 */
398#if defined(PNG_READ_EXPAND_SUPPORTED) && \
399 defined(PNG_ARM_NEON_IMPLEMENTATION)
400 png_bytep riffled_palette; /* buffer for accelerated palette expansion */
401#endif
402
403/* New member added in libpng-1.0.4 (renamed in 1.0.9) */
404#if defined(PNG_MNG_FEATURES_SUPPORTED)
405/* Changed from png_byte to png_uint_32 at version 1.2.0 */
406 png_uint_32 mng_features_permitted;
407#endif
408
409/* New member added in libpng-1.0.9, ifdef'ed out in 1.0.12, enabled in 1.2.0 */
410#ifdef PNG_MNG_FEATURES_SUPPORTED
411 png_byte filter_type;
412#endif
413
414/* New members added in libpng-1.2.0 */
415
416/* New members added in libpng-1.0.2 but first enabled by default in 1.2.0 */
417#ifdef PNG_USER_MEM_SUPPORTED
418 png_voidp mem_ptr; /* user supplied struct for mem functions */
419 png_malloc_ptr malloc_fn; /* function for allocating memory */
420 png_free_ptr free_fn; /* function for freeing memory */
421#endif
422
423/* New member added in libpng-1.0.13 and 1.2.0 */
424 png_bytep big_row_buf; /* buffer to save current (unfiltered) row */
425
426#ifdef PNG_READ_QUANTIZE_SUPPORTED
427/* The following three members were added at version 1.0.14 and 1.2.4 */
428 png_bytep quantize_sort; /* working sort array */
429 png_bytep index_to_palette; /* where the original index currently is
430 in the palette */
431 png_bytep palette_to_index; /* which original index points to this
432 palette color */
433#endif
434
435/* New members added in libpng-1.0.16 and 1.2.6 */
437
438#ifdef PNG_USER_LIMITS_SUPPORTED
439 png_uint_32 user_width_max;
440 png_uint_32 user_height_max;
441
442 /* Added in libpng-1.4.0: Total number of sPLT, text, and unknown
443 * chunks that can be stored (0 means unlimited).
444 */
445 png_uint_32 user_chunk_cache_max;
446
447 /* Total memory that a zTXt, sPLT, iTXt, iCCP, or unknown chunk
448 * can occupy when decompressed. 0 means unlimited.
449 */
450 png_alloc_size_t user_chunk_malloc_max;
451#endif
452
453/* New member added in libpng-1.0.25 and 1.2.17 */
454#ifdef PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
455 /* Temporary storage for unknown chunk that the library doesn't recognize,
456 * used while reading the chunk.
457 */
458 png_unknown_chunk unknown_chunk;
459#endif
460
461/* New member added in libpng-1.2.26 */
463
464#ifdef PNG_READ_SUPPORTED
465/* New member added in libpng-1.2.30 */
466 png_bytep read_buffer; /* buffer for reading chunk data */
467 png_alloc_size_t read_buffer_size; /* current size of the buffer */
468#endif
469#ifdef PNG_SEQUENTIAL_READ_SUPPORTED
470 uInt IDAT_read_size; /* limit on read buffer size for IDAT */
471#endif
472
473#ifdef PNG_IO_STATE_SUPPORTED
474/* New member added in libpng-1.4.0 */
475 png_uint_32 io_state;
476#endif
477
478/* New member added in libpng-1.5.6 */
480
481/* New member added in libpng-1.5.7 */
484
485#ifdef PNG_READ_SUPPORTED
486#if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
487 png_colorspace colorspace;
488#endif
489#endif
490};
491#endif /* PNGSTRUCT_H */
J_COLOR_SPACE colorspace
Definition jpeglib.h:917
#define PNG_FILTER_VALUE_LAST
#define PNG_RESTRICT
struct juce::pnglibNamespace::png_xy png_xy
struct juce::pnglibNamespace::png_compression_buffer * png_compression_bufferp
struct juce::pnglibNamespace::png_compression_buffer png_compression_buffer
const png_colorspace *PNG_RESTRICT png_const_colorspacerp
Definition juce_PNGLoader.cpp:130
struct juce::pnglibNamespace::png_colorspace png_colorspace
struct juce::pnglibNamespace::png_XYZ png_XYZ
struct juce::pnglibNamespace::png_colorspace png_colorspacerp
jack_client_t client jack_client_t client jack_client_t client jack_client_t JackInfoShutdownCallback void arg jack_client_t jack_port_t port void func jack_client_t const char const char unsigned long flags
Definition juce_linux_JackAudio.cpp:69
png_structrp png_fixed_point screen_gamma
Definition png.h:1352
png_const_structrp png_const_inforp double * red_X
Definition png.h:1939
png_const_structrp png_const_inforp double double double double double double double double * blue_Y
Definition png.h:1941
png_color * png_colorp
Definition png.h:483
png_fixed_point
Definition png.h:1902
png_const_structrp png_const_inforp double double double double double double * green_Z
Definition png.h:1940
png_const_structrp png_const_inforp double double double * red_Z
Definition png.h:1939
png_row_info * png_row_infop
Definition png.h:763
png_const_structrp png_const_inforp double double double double double * green_Y
Definition png.h:1940
png_const_structrp png_const_inforp double double double double * green_X
Definition png.h:1940
png_const_structrp png_const_inforp double double * red_Y
Definition png.h:1939
struct png_unknown_chunk_t png_unknown_chunk
png_const_structrp png_const_inforp double double double double double double double * blue_X
Definition png.h:1940
struct png_color_8_struct png_color_8
png_uint_32
Definition png.h:1938
struct png_color_16_struct png_color_16
const png_byte * png_const_bytep
Definition pngconf.h:580
png_byte * png_bytep
Definition pngconf.h:579
png_byte ** png_bytepp
Definition pngconf.h:606
void * png_voidp
Definition pngconf.h:577
png_uint_16 ** png_uint_16pp
Definition pngconf.h:609
png_uint_16(PNGAPI png_get_uint_16)(png_const_bytep buf)
Definition pngrutil.c:102
Definition pngstruct.h:146
png_byte sig_bytes
Definition pngstruct.h:263
png_byte color_type
Definition pngstruct.h:255
png_bytep row_buf
Definition pngstruct.h:228
png_voidp error_ptr
Definition pngstruct.h:157
png_read_status_ptr read_row_fn
Definition pngstruct.h:321
png_uint_32 row_number
Definition pngstruct.h:221
png_uint_32 chunk_name
Definition pngstruct.h:222
png_uint_32 height
Definition pngstruct.h:216
png_write_status_ptr write_row_fn
Definition pngstruct.h:322
png_uint_32 num_rows
Definition pngstruct.h:217
png_error_ptr error_fn
Definition pngstruct.h:153
size_t rowbytes
Definition pngstruct.h:219
png_uint_16 num_trans
Definition pngstruct.h:249
png_uint_32 crc
Definition pngstruct.h:240
png_byte filter
Definition pngstruct.h:251
png_uint_32 transformations
Definition pngstruct.h:182
png_byte compression
Definition pngstruct.h:250
png_uint_16 num_palette
Definition pngstruct.h:242
png_bytep big_prev_row
Definition pngstruct.h:479
size_t info_rowbytes
Definition pngstruct.h:237
png_uint_32 zowner
Definition pngstruct.h:184
size_t old_big_row_buf_size
Definition pngstruct.h:462
png_uint_32 free_me
Definition pngstruct.h:370
png_byte pass
Definition pngstruct.h:253
png_uint_32 iwidth
Definition pngstruct.h:220
void(* read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info, png_bytep row, png_const_bytep prev_row)
Definition pngstruct.h:482
png_byte channels
Definition pngstruct.h:259
png_uint_32 mode
Definition pngstruct.h:180
png_uint_32 usr_width
Definition pngstruct.h:218
png_bytep big_row_buf
Definition pngstruct.h:424
png_rw_ptr read_data_fn
Definition pngstruct.h:159
png_byte bit_depth
Definition pngstruct.h:256
png_voidp io_ptr
Definition pngstruct.h:160
png_byte transformed_pixel_depth
Definition pngstruct.h:266
png_uint_32 flags
Definition pngstruct.h:181
png_byte maximum_pixel_depth
Definition pngstruct.h:264
png_uint_32 idat_size
Definition pngstruct.h:239
png_uint_32 width
Definition pngstruct.h:215
png_byte do_filter
Definition pngstruct.h:254
png_byte interlaced
Definition pngstruct.h:252
png_byte pixel_depth
Definition pngstruct.h:258
png_rw_ptr write_data_fn
Definition pngstruct.h:158
png_byte compression_type
Definition pngstruct.h:436
png_colorp palette
Definition pngstruct.h:241
z_stream zstream
Definition pngstruct.h:185
png_bytep prev_row
Definition pngstruct.h:223
png_byte usr_bit_depth
Definition pngstruct.h:257
static rev_t read_buffer(rev_t *buffer, unsigned long buflen, unsigned long pos, unsigned long n)
Definition tap_reverb.h:90
#define void
Definition unzip.h:396
#define uInt
Definition zconf.h:64
struct z_stream_s z_stream