Lines Matching defs:png_struct_def
1119 struct png_struct_def struct
1122 jmp_buf jmpbuf; /* used in png_error */
1124 png_error_ptr error_fn; /* function for printing errors and aborting */
1125 png_error_ptr warning_fn; /* function for printing warnings */
1126 png_voidp error_ptr; /* user supplied struct for error functions */
1127 png_rw_ptr write_data_fn; /* function for writing output data */
1128 png_rw_ptr read_data_fn; /* function for reading input data */
1129 png_voidp io_ptr; /* ptr to application struct for I/O functions */
1132 png_user_transform_ptr read_user_transform_fn; /* user read transform */
1136 png_user_transform_ptr write_user_transform_fn; /* user write transform */
1143 png_voidp user_transform_ptr; /* user supplied struct for user transform */
1144 png_byte user_transform_depth; /* bit depth of user transformed pixels */
1145 png_byte user_transform_channels; /* channels in user transformed pixels */
1149 png_uint_32 mode; /* tells us where we are in the PNG file */
1150 png_uint_32 flags; /* flags indicating various things to libpng */
1151 png_uint_32 transformations; /* which transformations to perform */
1153 z_stream zstream; /* pointer to decompression structure (below) */
1154 png_bytep zbuf; /* buffer for zlib */
1155 png_size_t zbuf_size; /* size of zbuf */
1156 int zlib_level; /* holds zlib compression level */
1157 int zlib_method; /* holds zlib compression method */
1158 int zlib_window_bits; /* holds zlib compression window bits */
1159 int zlib_mem_level; /* holds zlib compression memory level */
1160 int zlib_strategy; /* holds zlib compression strategy */
1162 png_uint_32 width; /* width of image in pixels */
1163 png_uint_32 height; /* height of image in pixels */
1164 png_uint_32 num_rows; /* number of rows in current pass */
1165 png_uint_32 usr_width; /* width of row at start of write */
1166 png_uint_32 rowbytes; /* size of row in bytes */
1167 png_uint_32 irowbytes; /* size of current interlaced row in bytes */
1168 png_uint_32 iwidth; /* width of current interlaced row in pixels */
1169 png_uint_32 row_number; /* current row in interlace pass */
1170 png_bytep prev_row; /* buffer to save previous (unfiltered) row */
1171 png_bytep row_buf; /* buffer to save current (unfiltered) row */
1172 png_bytep sub_row; /* buffer to save "sub" row when filtering */
1173 png_bytep up_row; /* buffer to save "up" row when filtering */
1174 png_bytep avg_row; /* buffer to save "avg" row when filtering */
1175 png_bytep paeth_row; /* buffer to save "Paeth" row when filtering */
1176 png_row_info row_info; /* used for transformation routines */
1178 png_uint_32 idat_size; /* current IDAT size for read */
1179 png_uint_32 crc; /* current chunk CRC value */
1180 png_colorp palette; /* palette from the input file */
1181 png_uint_16 num_palette; /* number of color entries in palette */
1182 png_uint_16 num_trans; /* number of transparency values */
1183 png_byte chunk_name[5]; /* null-terminated name of current chunk */
1184 png_byte compression; /* file compression type (always 0) */
1185 png_byte filter; /* file filter type (always 0) */
1186 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
1187 png_byte pass; /* current interlace pass (0 - 6) */
1188 png_byte do_filter; /* row filter flags (see PNG_FILTER_ below ) */
1189 png_byte color_type; /* color type of file */
1190 png_byte bit_depth; /* bit depth of file */
1191 png_byte usr_bit_depth; /* bit depth of users row */
1192 png_byte pixel_depth; /* number of bits per pixel */
1193 png_byte channels; /* number of channels in file */
1194 png_byte usr_channels; /* channels at start of write */
1195 png_byte sig_bytes; /* magic bytes read/written from start of file */
1199 png_byte filler; /* filler byte for pixel expansion */
1201 png_uint_16 filler; /* filler bytes for pixel expansion */
1206 png_byte background_gamma_type;
1208 float background_gamma;
1210 png_color_16 background; /* background color in screen gamma space */
1212 png_color_16 background_1; /* background normalized to gamma 1.0 */
1217 png_flush_ptr output_flush_fn;/* Function for flushing output */
1218 png_uint_32 flush_dist; /* how many rows apart to flush, 0 - no flush */
1219 png_uint_32 flush_rows; /* number of rows written since last flush */
1223 int gamma_shift; /* number of "insignificant" bits 16-bit gamma */
1225 float gamma; /* file gamma value */
1226 float screen_gamma; /* screen gamma value (display_exponent) */
1231 png_bytep gamma_table; /* gamma table for 8-bit depth files */
1232 png_bytep gamma_from_1; /* converts from 1.0 to screen */
1233 png_bytep gamma_to_1; /* converts from file to 1.0 */
1234 png_uint_16pp gamma_16_table; /* gamma table for 16-bit depth files */
1235 png_uint_16pp gamma_16_from_1; /* converts from 1.0 to screen */
1236 png_uint_16pp gamma_16_to_1; /* converts from file to 1.0 */
1240 png_color_8 sig_bit; /* significant bits in each available channel */
1244 png_color_8 shift; /* shift for significant bit tranformation */
1249 png_bytep trans; /* transparency values for paletted files */
1250 png_color_16 trans_values; /* transparency values for non-paletted files */
1253 png_read_status_ptr read_row_fn; /* called after each row is decoded */
1254 png_write_status_ptr write_row_fn; /* called after each row is encoded */
1256 png_progressive_info_ptr info_fn; /* called after header data fully read */
1257 png_progressive_row_ptr row_fn; /* called after each prog. row is decoded */
1258 png_progressive_end_ptr end_fn; /* called after image is complete */
1259 png_bytep save_buffer_ptr; /* current location in save_buffer */
1260 png_bytep save_buffer; /* buffer for previously read data */
1261 png_bytep current_buffer_ptr; /* current location in current_buffer */
1262 png_bytep current_buffer; /* buffer for recently used data */
1263 png_uint_32 push_length; /* size of current input chunk */
1264 png_uint_32 skip_length; /* bytes to skip in input data */
1265 png_size_t save_buffer_size; /* amount of data now in save_buffer */
1266 png_size_t save_buffer_max; /* total size of save_buffer */
1267 png_size_t buffer_size; /* total amount of available input data */
1268 png_size_t current_buffer_size; /* amount of data now in current_buffer */
1269 int process_mode; /* what push library is currently doing */
1270 int cur_palette; /* current push library palette index */
1273 png_size_t current_text_size; /* current size of text input data */
1274 png_size_t current_text_left; /* how much text left to read in input */
1275 png_charp current_text; /* current text chunk buffer */
1276 png_charp current_text_ptr; /* current location in current_text */
1283 png_bytepp offset_table_ptr;
1284 png_bytep offset_table;
1285 png_uint_16 offset_table_number;
1286 png_uint_16 offset_table_count;
1287 png_uint_16 offset_table_count_free;
1291 png_bytep palette_lookup; /* lookup table for dithering */
1292 png_bytep dither_index; /* index translation for palette files */
1296 png_uint_16p hist; /* histogram */
1300 png_byte heuristic_method; /* heuristic for row filter selection */
1301 png_byte num_prev_filters; /* number of weights for previous rows */
1302 png_bytep prev_filters; /* filter type(s) of previous row(s) */
1303 png_uint_16p filter_weights; /* weight(s) for previous line(s) */
1304 png_uint_16p inv_filter_weights; /* 1/weight(s) for previous line(s) */
1305 png_uint_16p filter_costs; /* relative filter calculation cost */
1306 png_uint_16p inv_filter_costs; /* 1/relative filter calculation cost */
1310 png_charp time_buffer; /* String to hold RFC 1123 time text */
1316 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
1320 png_voidp user_chunk_ptr;
1321 png_user_chunk_ptr read_user_chunk_fn; /* user read chunk handler */
1325 int num_chunk_list;
1326 png_bytep chunk_list;
1331 png_byte rgb_to_gray_status;
1333 png_uint_16 rgb_to_gray_red_coeff;
1334 png_uint_16 rgb_to_gray_green_coeff;
1335 png_uint_16 rgb_to_gray_blue_coeff;
1344 png_byte mng_features_permitted;
1346 png_uint_32 mng_features_permitted;
1352 png_fixed_point int_gamma;
1357 png_byte filter_type;
1362 png_uint_32 row_buf_size;
1369 png_byte mmx_bitdepth_threshold;
1370 png_uint_32 mmx_rowbytes_threshold;
1372 png_uint_32 asm_flags;
1378 png_voidp mem_ptr; /* user supplied struct for mem functions */
1379 png_malloc_ptr malloc_fn; /* function for allocating memory */
1380 png_free_ptr free_fn; /* function for freeing memory */
1384 png_bytep big_row_buf; /* buffer to save current (unfiltered) row */
1388 png_bytep dither_sort; /* working sort array */
1389 png_bytep index_to_palette; /* where the original index currently is */
1391 png_bytep palette_to_index; /* which original index points to this */
1396 png_byte compression_type;
1399 png_uint_32 user_width_max;
1400 png_uint_32 user_height_max;
1406 png_unknown_chunk unknown_chunk;