Lines Matching defs:png_struct_def
188 struct png_struct_def struct
191 jmp_buf jmp_buf_local; /* New name in 1.6.0 for jmp_buf in png_struct */
192 png_longjmp_ptr longjmp_fn;/* setjmp non-local goto function. */
193 jmp_buf *jmp_buf_ptr; /* passed to longjmp_fn */
194 size_t jmp_buf_size; /* size of the above, if allocated */
196 png_error_ptr error_fn; /* function for printing errors and aborting */
198 png_error_ptr warning_fn; /* function for printing warnings */
200 png_voidp error_ptr; /* user supplied struct for error functions */
201 png_rw_ptr write_data_fn; /* function for writing output data */
202 png_rw_ptr read_data_fn; /* function for reading input data */
204 png_seek_ptr seek_data_fn; /* function for seeking input data */
206 png_voidp io_ptr; /* ptr to application struct for I/O functions */
209 png_user_transform_ptr read_user_transform_fn; /* user read transform */
213 png_user_transform_ptr write_user_transform_fn; /* user write transform */
220 png_voidp user_transform_ptr; /* user supplied struct for user transform */
221 png_byte user_transform_depth; /* bit depth of user transformed pixels */
222 png_byte user_transform_channels; /* channels in user transformed pixels */
226 png_uint_32 mode; /* tells us where we are in the PNG file */
227 png_uint_32 flags; /* flags indicating various things to libpng */
228 png_uint_32 transformations; /* which transformations to perform */
230 png_uint_32 zowner; /* ID (chunk type) of zstream owner, 0 if none */
231 z_stream zstream; /* decompression structure */
234 png_compression_bufferp zbuffer_list; /* Created on demand during write */
235 uInt zbuffer_size; /* size of the actual buffer */
237 int zlib_level; /* holds zlib compression level */
238 int zlib_method; /* holds zlib compression method */
239 int zlib_window_bits; /* holds zlib compression window bits */
240 int zlib_mem_level; /* holds zlib compression memory level */
241 int zlib_strategy; /* holds zlib compression strategy */
245 int zlib_text_level; /* holds zlib compression level */
246 int zlib_text_method; /* holds zlib compression method */
247 int zlib_text_window_bits; /* holds zlib compression window bits */
248 int zlib_text_mem_level; /* holds zlib compression memory level */
249 int zlib_text_strategy; /* holds zlib compression strategy */
254 int zlib_set_level; /* Actual values set into the zstream on write */
255 int zlib_set_method;
256 int zlib_set_window_bits;
257 int zlib_set_mem_level;
258 int zlib_set_strategy;
261 png_uint_32 width; /* width of image in pixels */
262 png_uint_32 height; /* height of image in pixels */
263 png_uint_32 num_rows; /* number of rows in current pass */
264 png_uint_32 usr_width; /* width of row at start of write */
265 png_size_t rowbytes; /* size of row in bytes */
266 png_uint_32 iwidth; /* width of current interlaced row in pixels */
267 png_uint_32 row_number; /* current row in interlace pass */
268 png_uint_32 chunk_name; /* PNG_CHUNK() id of current chunk */
269 png_bytep prev_row; /* buffer to save previous (unfiltered) row.
272 png_bytep row_buf; /* buffer to save current (unfiltered) row.
276 png_bytep sub_row; /* buffer to save "sub" row when filtering */
277 png_bytep up_row; /* buffer to save "up" row when filtering */
278 png_bytep avg_row; /* buffer to save "avg" row when filtering */
279 png_bytep paeth_row; /* buffer to save "Paeth" row when filtering */
281 png_size_t info_rowbytes; /* Added in 1.5.4: cache of updated row bytes */
283 png_uint_32 idat_size; /* current IDAT size for read */
284 png_uint_32 crc; /* current chunk CRC value */
285 png_colorp palette; /* palette from the input file */
286 png_uint_16 num_palette; /* number of color entries in palette */
290 int num_palette_max; /* maximum palette index found in IDAT */
293 png_uint_16 num_trans; /* number of transparency values */
294 png_byte compression; /* file compression type (always 0) */
295 png_byte filter; /* file filter type (always 0) */
296 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
297 png_byte pass; /* current interlace pass (0 - 6) */
298 png_byte do_filter; /* row filter flags (see PNG_FILTER_ below ) */
299 png_byte color_type; /* color type of file */
300 png_byte bit_depth; /* bit depth of file */
301 png_byte usr_bit_depth; /* bit depth of users row: write only */
302 png_byte pixel_depth; /* number of bits per pixel */
303 png_byte channels; /* number of channels in file */
305 png_byte usr_channels; /* channels at start of write: write only */
307 png_byte sig_bytes; /* magic bytes read/written from start of file */
308 png_byte maximum_pixel_depth;
310 png_byte transformed_pixel_depth;
313 png_uint_16 filler; /* filler bytes for pixel expansion */
318 png_byte background_gamma_type;
319 png_fixed_point background_gamma;
320 png_color_16 background; /* background color in screen gamma space */
322 png_color_16 background_1; /* background normalized to gamma 1.0 */
327 png_flush_ptr output_flush_fn; /* Function for flushing output */
328 png_uint_32 flush_dist; /* how many rows apart to flush, 0 - no flush */
329 png_uint_32 flush_rows; /* number of rows written since last flush */
333 int gamma_shift; /* number of "insignificant" bits in 16-bit gamma */
334 png_fixed_point screen_gamma; /* screen gamma value (display_exponent) */
336 png_bytep gamma_table; /* gamma table for 8-bit depth files */
337 png_uint_16pp gamma_16_table; /* gamma table for 16-bit depth files */
341 png_bytep gamma_from_1; /* converts from 1.0 to screen */
342 png_bytep gamma_to_1; /* converts from file to 1.0 */
343 png_uint_16pp gamma_16_from_1; /* converts from 1.0 to screen */
344 png_uint_16pp gamma_16_to_1; /* converts from file to 1.0 */
349 png_color_8 sig_bit; /* significant bits in each available channel */
353 png_color_8 shift; /* shift for significant bit tranformation */
358 png_bytep trans_alpha; /* alpha values for paletted files */
359 png_color_16 trans_color; /* transparent color for non-paletted files */
362 png_read_status_ptr read_row_fn; /* called after each row is decoded */
363 png_write_status_ptr write_row_fn; /* called after each row is encoded */
365 png_progressive_info_ptr info_fn; /* called after header data fully read */
366 png_progressive_row_ptr row_fn; /* called after a prog. row is decoded */
367 png_progressive_end_ptr end_fn; /* called after image is complete */
368 png_bytep save_buffer_ptr; /* current location in save_buffer */
369 png_bytep save_buffer; /* buffer for previously read data */
370 png_bytep current_buffer_ptr; /* current location in current_buffer */
371 png_bytep current_buffer; /* buffer for recently used data */
372 png_uint_32 push_length; /* size of current input chunk */
373 png_uint_32 skip_length; /* bytes to skip in input data */
374 png_size_t save_buffer_size; /* amount of data now in save_buffer */
375 png_size_t save_buffer_max; /* total size of save_buffer */
376 png_size_t buffer_size; /* total amount of available input data */
377 png_size_t current_buffer_size; /* amount of data now in current_buffer */
378 int process_mode; /* what push library is currently doing */
379 int cur_palette; /* current push library palette index */
385 png_bytepp offset_table_ptr;
386 png_bytep offset_table;
387 png_uint_16 offset_table_number;
388 png_uint_16 offset_table_count;
389 png_uint_16 offset_table_count_free;
393 png_bytep palette_lookup; /* lookup table for quantizing */
394 png_bytep quantize_index; /* index translation for palette files */
398 png_byte heuristic_method; /* heuristic for row filter selection */
399 png_byte num_prev_filters; /* number of weights for previous rows */
400 png_bytep prev_filters; /* filter type(s) of previous row(s) */
401 png_uint_16p filter_weights; /* weight(s) for previous line(s) */
402 png_uint_16p inv_filter_weights; /* 1/weight(s) for previous line(s) */
403 png_uint_16p filter_costs; /* relative filter calculation cost */
404 png_uint_16p inv_filter_costs; /* 1/relative filter calculation cost */
409 png_byte options; /* On/off state (up to 4 options) */
415 char time_buffer[29]; /* String to hold RFC 1123 time text */
421 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
424 png_voidp user_chunk_ptr;
426 png_user_chunk_ptr read_user_chunk_fn; /* user read chunk handler */
431 int unknown_default; /* As PNG_HANDLE_* */
432 unsigned int num_chunk_list; /* Number of entries in the list */
433 png_bytep chunk_list; /* List of png_byte[5]; the textual chunk name
439 png_byte rgb_to_gray_status;
441 png_byte rgb_to_gray_coefficients_set;
443 png_uint_16 rgb_to_gray_red_coeff;
444 png_uint_16 rgb_to_gray_green_coeff;
451 png_uint_32 mng_features_permitted;
456 png_byte filter_type;
463 png_voidp mem_ptr; /* user supplied struct for mem functions */
464 png_malloc_ptr malloc_fn; /* function for allocating memory */
465 png_free_ptr free_fn; /* function for freeing memory */
469 png_bytep big_row_buf; /* buffer to save current (unfiltered) row */
473 png_bytep quantize_sort; /* working sort array */
474 png_bytep index_to_palette; /* where the original index currently is
476 png_bytep palette_to_index; /* which original index points to this
481 png_byte compression_type;
484 png_uint_32 user_width_max;
485 png_uint_32 user_height_max;
490 png_uint_32 user_chunk_cache_max;
495 png_alloc_size_t user_chunk_malloc_max;
503 png_unknown_chunk unknown_chunk;
507 png_size_t old_big_row_buf_size;
511 png_bytep read_buffer; /* buffer for reading chunk data */
512 png_alloc_size_t read_buffer_size; /* current size of the buffer */
515 uInt IDAT_read_size; /* limit on read buffer size for IDAT */
520 png_uint_32 io_state;
524 png_bytep big_prev_row;
527 void (*read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info,
532 png_colorspace colorspace;
537 png_indexp index;
538 png_uint_32 total_data_read;