Lines Matching defs:png_struct_def
1330 struct png_struct_def struct
1333 jmp_buf jmpbuf; /* used in png_error */
1335 png_error_ptr error_fn; /* function for printing errors and aborting */
1336 png_error_ptr warning_fn; /* function for printing warnings */
1337 png_voidp error_ptr; /* user supplied struct for error functions */
1338 png_rw_ptr write_data_fn; /* function for writing output data */
1339 png_rw_ptr read_data_fn; /* function for reading input data */
1340 png_voidp io_ptr; /* ptr to application struct for I/O functions */
1343 png_user_transform_ptr read_user_transform_fn; /* user read transform */
1347 png_user_transform_ptr write_user_transform_fn; /* user write transform */
1354 png_voidp user_transform_ptr; /* user supplied struct for user transform */
1355 png_byte user_transform_depth; /* bit depth of user transformed pixels */
1356 png_byte user_transform_channels; /* channels in user transformed pixels */
1360 png_uint_32 mode; /* tells us where we are in the PNG file */
1361 png_uint_32 flags; /* flags indicating various things to libpng */
1362 png_uint_32 transformations; /* which transformations to perform */
1364 z_stream zstream; /* pointer to decompression structure (below) */
1365 png_bytep zbuf; /* buffer for zlib */
1366 png_size_t zbuf_size; /* size of zbuf */
1367 MS_U32 zlib_level; /* holds zlib compression level */
1368 MS_U32 zlib_method; /* holds zlib compression method */
1369 MS_U32 zlib_window_bits; /* holds zlib compression window bits */
1370 MS_U32 zlib_mem_level; /* holds zlib compression memory level */
1371 MS_U32 zlib_strategy; /* holds zlib compression strategy */
1373 png_uint_32 width; /* width of image in pixels */
1374 png_uint_32 height; /* height of image in pixels */
1375 png_uint_32 num_rows; /* number of rows in current pass */
1376 png_uint_32 usr_width; /* width of row at start of write */
1377 png_uint_32 rowbytes; /* size of row in bytes */
1378 png_uint_32 irowbytes; /* size of current interlaced row in bytes */
1379 png_uint_32 iwidth; /* width of current interlaced row in pixels */
1380 png_uint_32 row_number; /* current row in interlace pass */
1381 png_bytep prev_row; /* buffer to save previous (unfiltered) row */
1382 png_bytep row_buf; /* buffer to save current (unfiltered) row */
1384 png_bytep sub_row; /* buffer to save "sub" row when filtering */
1385 png_bytep up_row; /* buffer to save "up" row when filtering */
1386 png_bytep avg_row; /* buffer to save "avg" row when filtering */
1387 png_bytep paeth_row; /* buffer to save "Paeth" row when filtering */
1389 png_row_info row_info; /* used for transformation routines */
1391 png_uint_32 idat_size; /* current IDAT size for read */
1392 png_uint_32 crc; /* current chunk CRC value */
1393 png_colorp palette; /* palette from the input file */
1394 png_uint_16 num_palette; /* number of color entries in palette */
1395 png_uint_16 num_trans; /* number of transparency values */
1396 png_byte chunk_name[5]; /* null-terminated name of current chunk */
1397 png_byte compression; /* file compression type (always 0) */
1398 png_byte filter; /* file filter type (always 0) */
1399 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
1400 png_byte pass; /* current interlace pass (0 - 6) */
1401 png_byte do_filter; /* row filter flags (see PNG_FILTER_ below ) */
1402 png_byte color_type; /* color type of file */
1403 png_byte bit_depth; /* bit depth of file */
1404 png_byte usr_bit_depth; /* bit depth of users row */
1405 png_byte pixel_depth; /* number of bits per pixel */
1406 png_byte channels; /* number of channels in file */
1407 png_byte usr_channels; /* channels at start of write */
1408 png_byte sig_bytes; /* magic bytes read/written from start of file */
1412 png_byte filler; /* filler byte for pixel expansion */
1414 png_uint_16 filler; /* filler bytes for pixel expansion */
1419 png_byte background_gamma_type;
1421 float background_gamma;
1423 png_color_16 background; /* background color in screen gamma space */
1425 png_color_16 background_1; /* background normalized to gamma 1.0 */
1430 png_flush_ptr output_flush_fn; /* Function for flushing output */
1431 png_uint_32 flush_dist; /* how many rows apart to flush, 0 - no flush */
1432 png_uint_32 flush_rows; /* number of rows written since last flush */
1436 MS_U32 gamma_shift; /* number of "insignificant" bits 16-bit gamma */
1438 float gamma; /* file gamma value */
1439 float screen_gamma; /* screen gamma value (display_exponent) */
1444 png_bytep gamma_table; /* gamma table for 8-bit depth files */
1445 png_bytep gamma_from_1; /* converts from 1.0 to screen */
1446 png_bytep gamma_to_1; /* converts from file to 1.0 */
1447 png_uint_16pp gamma_16_table; /* gamma table for 16-bit depth files */
1448 png_uint_16pp gamma_16_from_1; /* converts from 1.0 to screen */
1449 png_uint_16pp gamma_16_to_1; /* converts from file to 1.0 */
1453 png_color_8 sig_bit; /* significant bits in each available channel */
1457 png_color_8 shift; /* shift for significant bit tranformation */
1462 png_bytep trans; /* transparency values for paletted files */
1463 png_color_16 trans_values; /* transparency values for non-paletted files */
1466 png_read_status_ptr read_row_fn; /* called after each row is decoded */
1467 png_write_status_ptr write_row_fn; /* called after each row is encoded */
1469 png_progressive_info_ptr info_fn; /* called after header data fully read */
1470 png_progressive_row_ptr row_fn; /* called after each prog. row is decoded */
1471 png_progressive_end_ptr end_fn; /* called after image is complete */
1472 png_bytep save_buffer_ptr; /* current location in save_buffer */
1473 png_bytep save_buffer; /* buffer for previously read data */
1474 png_bytep current_buffer_ptr; /* current location in current_buffer */
1475 png_bytep current_buffer; /* buffer for recently used data */
1476 png_uint_32 push_length; /* size of current input chunk */
1477 png_uint_32 skip_length; /* bytes to skip in input data */
1478 png_size_t save_buffer_size; /* amount of data now in save_buffer */
1479 png_size_t save_buffer_max; /* total size of save_buffer */
1480 png_size_t buffer_size; /* total amount of available input data */
1481 png_size_t current_buffer_size; /* amount of data now in current_buffer */
1482 MS_U32 process_mode; /* what push library is currently doing */
1483 MS_U32 cur_palette; /* current push library palette index */
1486 png_size_t current_text_size; /* current size of text input data */
1487 png_size_t current_text_left; /* how much text left to read in input */
1488 png_charp current_text; /* current text chunk buffer */
1489 png_charp current_text_ptr; /* current location in current_text */
1495 png_bytepp offset_table_ptr;
1496 png_bytep offset_table;
1497 png_uint_16 offset_table_number;
1498 png_uint_16 offset_table_count;
1499 png_uint_16 offset_table_count_free;
1503 png_bytep palette_lookup; /* lookup table for dithering */
1504 png_bytep dither_index; /* index translation for palette files */
1508 png_uint_16p hist; /* histogram */
1512 png_byte heuristic_method; /* heuristic for row filter selection */
1513 png_byte num_prev_filters; /* number of weights for previous rows */
1514 png_bytep prev_filters; /* filter type(s) of previous row(s) */
1515 png_uint_16p filter_weights; /* weight(s) for previous line(s) */
1516 png_uint_16p inv_filter_weights; /* 1/weight(s) for previous line(s) */
1517 png_uint_16p filter_costs; /* relative filter calculation cost */
1518 png_uint_16p inv_filter_costs; /* 1/relative filter calculation cost */
1522 png_charp time_buffer; /* String to hold RFC 1123 time text */
1528 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
1532 png_voidp user_chunk_ptr;
1533 png_user_chunk_ptr read_user_chunk_fn; /* user read chunk handler */
1537 MS_U32 num_chunk_list;
1538 png_bytep chunk_list;
1543 png_byte rgb_to_gray_status;
1545 png_uint_16 rgb_to_gray_red_coeff;
1546 png_uint_16 rgb_to_gray_green_coeff;
1547 png_uint_16 rgb_to_gray_blue_coeff;
1556 png_byte mng_features_permitted;
1558 png_uint_32 mng_features_permitted;
1564 png_fixed_point int_gamma;
1569 png_byte filter_type;
1574 png_uint_32 row_buf_size;
1581 png_byte mmx_bitdepth_threshold;
1582 png_uint_32 mmx_rowbytes_threshold;
1584 png_uint_32 asm_flags;
1590 png_voidp mem_ptr; /* user supplied struct for mem functions */
1591 png_malloc_ptr malloc_fn; /* function for allocating memory */
1592 png_free_ptr free_fn; /* function for freeing memory */
1596 png_bytep big_row_buf; /* buffer to save current (unfiltered) row */
1600 png_bytep dither_sort; /* working sort array */
1601 png_bytep index_to_palette; /* where the original index currently is */
1603 png_bytep palette_to_index; /* which original index points to this */
1608 png_byte compression_type;
1611 png_uint_32 user_width_max;
1612 png_uint_32 user_height_max;
1618 png_unknown_chunk unknown_chunk;
1622 png_uint_32 old_big_row_buf_size, old_prev_row_size;
1625 png_charp chunkdata; /* buffer for reading chunk data */