Lines Matching defs:png_struct_def
143 struct png_struct_def struct
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 */
151 png_error_ptr error_fn; /* function for printing errors and aborting */
153 png_error_ptr warning_fn; /* function for printing warnings */
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 */
161 png_user_transform_ptr read_user_transform_fn; /* user read transform */
165 png_user_transform_ptr write_user_transform_fn; /* user write transform */
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 */
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 */
182 png_uint_32 zowner; /* ID (chunk type) of zstream owner, 0 if none */
183 z_stream zstream; /* decompression structure */
186 png_compression_bufferp zbuffer_list; /* Created on demand during write */
187 uInt zbuffer_size; /* size of the actual buffer */
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 */
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 */
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;
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 png_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.
226 png_bytep row_buf; /* buffer to save current (unfiltered) row.
232 png_bytep try_row; /* buffer to save trial row when filtering */
233 png_bytep tst_row; /* buffer to save best trial row when filtering */
235 png_size_t info_rowbytes; /* Added in 1.5.4: cache of updated row bytes */
237 png_uint_32 idat_size; /* current IDAT size for read */
238 png_uint_32 crc; /* current chunk CRC value */
239 png_colorp palette; /* palette from the input file */
240 png_uint_16 num_palette; /* number of color entries in palette */
244 int num_palette_max; /* maximum palette index found in IDAT */
247 png_uint_16 num_trans; /* number of transparency values */
248 png_byte compression; /* file compression type (always 0) */
249 png_byte filter; /* file filter type (always 0) */
250 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
251 png_byte pass; /* current interlace pass (0 - 6) */
252 png_byte do_filter; /* row filter flags (see PNG_FILTER_ in png.h ) */
253 png_byte color_type; /* color type of file */
254 png_byte bit_depth; /* bit depth of file */
255 png_byte usr_bit_depth; /* bit depth of users row: write only */
256 png_byte pixel_depth; /* number of bits per pixel */
257 png_byte channels; /* number of channels in file */
259 png_byte usr_channels; /* channels at start of write: write only */
261 png_byte sig_bytes; /* magic bytes read/written from start of file */
262 png_byte maximum_pixel_depth;
264 png_byte transformed_pixel_depth;
267 png_byte zstream_start; /* at start of an input zlib stream */
270 png_uint_16 filler; /* filler bytes for pixel expansion */
275 png_byte background_gamma_type;
276 png_fixed_point background_gamma;
277 png_color_16 background; /* background color in screen gamma space */
279 png_color_16 background_1; /* background normalized to gamma 1.0 */
284 png_flush_ptr output_flush_fn; /* Function for flushing output */
285 png_uint_32 flush_dist; /* how many rows apart to flush, 0 - no flush */
286 png_uint_32 flush_rows; /* number of rows written since last flush */
290 int gamma_shift; /* number of "insignificant" bits in 16-bit gamma */
291 png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */
293 png_bytep gamma_table; /* gamma table for 8-bit depth files */
294 png_uint_16pp gamma_16_table; /* gamma table for 16-bit depth files */
298 png_bytep gamma_from_1; /* converts from 1.0 to screen */
299 png_bytep gamma_to_1; /* converts from file to 1.0 */
300 png_uint_16pp gamma_16_from_1; /* converts from 1.0 to screen */
301 png_uint_16pp gamma_16_to_1; /* converts from file to 1.0 */
306 png_color_8 sig_bit; /* significant bits in each available channel */
310 png_color_8 shift; /* shift for significant bit tranformation */
315 png_bytep trans_alpha; /* alpha values for paletted files */
316 png_color_16 trans_color; /* transparent color for non-paletted files */
319 png_read_status_ptr read_row_fn; /* called after each row is decoded */
320 png_write_status_ptr write_row_fn; /* called after each row is encoded */
322 png_progressive_info_ptr info_fn; /* called after header data fully read */
323 png_progressive_row_ptr row_fn; /* called after a prog. row is decoded */
324 png_progressive_end_ptr end_fn; /* called after image is complete */
325 png_bytep save_buffer_ptr; /* current location in save_buffer */
326 png_bytep save_buffer; /* buffer for previously read data */
327 png_bytep current_buffer_ptr; /* current location in current_buffer */
328 png_bytep current_buffer; /* buffer for recently used data */
329 png_uint_32 push_length; /* size of current input chunk */
330 png_uint_32 skip_length; /* bytes to skip in input data */
331 png_size_t save_buffer_size; /* amount of data now in save_buffer */
332 png_size_t save_buffer_max; /* total size of save_buffer */
333 png_size_t buffer_size; /* total amount of available input data */
334 png_size_t current_buffer_size; /* amount of data now in current_buffer */
335 int process_mode; /* what push library is currently doing */
336 int cur_palette; /* current push library palette index */
342 png_bytepp offset_table_ptr;
343 png_bytep offset_table;
344 png_uint_16 offset_table_number;
345 png_uint_16 offset_table_count;
346 png_uint_16 offset_table_count_free;
350 png_bytep palette_lookup; /* lookup table for quantizing */
351 png_bytep quantize_index; /* index translation for palette files */
356 png_byte options; /* On/off state (up to 4 options) */
362 char time_buffer[29]; /* String to hold RFC 1123 time text */
368 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
371 png_voidp user_chunk_ptr;
373 png_user_chunk_ptr read_user_chunk_fn; /* user read chunk handler */
378 int unknown_default; /* As PNG_HANDLE_* */
379 unsigned int num_chunk_list; /* Number of entries in the list */
380 png_bytep chunk_list; /* List of png_byte[5]; the textual chunk name
386 png_byte rgb_to_gray_status;
388 png_byte rgb_to_gray_coefficients_set;
390 png_uint_16 rgb_to_gray_red_coeff;
391 png_uint_16 rgb_to_gray_green_coeff;
398 png_uint_32 mng_features_permitted;
403 png_byte filter_type;
410 png_voidp mem_ptr; /* user supplied struct for mem functions */
411 png_malloc_ptr malloc_fn; /* function for allocating memory */
412 png_free_ptr free_fn; /* function for freeing memory */
416 png_bytep big_row_buf; /* buffer to save current (unfiltered) row */
420 png_bytep quantize_sort; /* working sort array */
421 png_bytep index_to_palette; /* where the original index currently is
423 png_bytep palette_to_index; /* which original index points to this
428 png_byte compression_type;
431 png_uint_32 user_width_max;
432 png_uint_32 user_height_max;
437 png_uint_32 user_chunk_cache_max;
442 png_alloc_size_t user_chunk_malloc_max;
450 png_unknown_chunk unknown_chunk;
454 png_size_t old_big_row_buf_size;
458 png_bytep read_buffer; /* buffer for reading chunk data */
459 png_alloc_size_t read_buffer_size; /* current size of the buffer */
462 uInt IDAT_read_size; /* limit on read buffer size for IDAT */
467 png_uint_32 io_state;
471 png_bytep big_prev_row;
474 void (*read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info,
479 png_colorspace colorspace;