Lines Matching defs:write_ptr
733 write_sTER_chunk(png_structp write_ptr)
740 png_write_chunk(write_ptr, sTER, &user_chunk_data.sTER_mode, 1);
744 write_vpAg_chunk(png_structp write_ptr)
759 png_write_chunk(write_ptr, vpAg, vpag_chunk_data, 9);
763 write_chunks(png_structp write_ptr, int location)
776 write_sTER_chunk(write_ptr);
779 write_vpAg_chunk(write_ptr);
837 png_structp write_ptr;
842 png_structp write_ptr = NULL;
882 write_ptr =
886 write_ptr =
889 png_set_error_fn(write_ptr, &error_parameters, pngtest_error,
896 write_info_ptr = png_create_info_struct(write_ptr);
897 write_end_info_ptr = png_create_info_struct(write_ptr);
915 png_destroy_info_struct(write_ptr, &write_end_info_ptr);
916 png_destroy_write_struct(&write_ptr, &write_info_ptr);
926 if (setjmp(png_jmpbuf(write_ptr)))
930 png_destroy_info_struct(write_ptr, &write_end_info_ptr);
932 png_destroy_write_struct(&write_ptr, &write_info_ptr);
948 png_set_benign_errors(write_ptr, 0);
963 png_set_benign_errors(write_ptr, 1);
971 png_init_io(write_ptr, fpout);
976 png_set_write_fn(write_ptr, (png_voidp)fpout, pngtest_write_data,
988 png_set_write_status_fn(write_ptr, write_row_callback);
996 png_set_write_status_fn(write_ptr, NULL);
1013 png_set_write_user_transform_fn(write_ptr, count_zero_samples);
1030 png_set_keep_unknown_chunks(write_ptr, PNG_HANDLE_CHUNK_ALWAYS,
1054 png_set_IHDR(write_ptr, write_info_ptr, width, height, bit_depth,
1087 png_set_cHRM_fixed(write_ptr, write_info_ptr, white_x, white_y, red_x,
1097 png_set_gAMA_fixed(write_ptr, write_info_ptr, gamma);
1110 png_set_cHRM(write_ptr, write_info_ptr, white_x, white_y, red_x,
1120 png_set_gAMA(write_ptr, write_info_ptr, gamma);
1135 png_set_iCCP(write_ptr, write_info_ptr, name, compression_type,
1145 png_set_sRGB(write_ptr, write_info_ptr, intent);
1153 png_set_PLTE(write_ptr, write_info_ptr, palette, num_palette);
1161 png_set_bKGD(write_ptr, write_info_ptr, background);
1170 png_set_hIST(write_ptr, write_info_ptr, hist);
1181 png_set_oFFs(write_ptr, write_info_ptr, offset_x, offset_y, unit_type);
1195 png_set_pCAL(write_ptr, write_info_ptr, purpose, X0, X1, type,
1206 png_set_pHYs(write_ptr, write_info_ptr, res_x, res_y, unit_type);
1214 png_set_sBIT(write_ptr, write_info_ptr, sig_bit);
1227 png_set_sCAL(write_ptr, write_info_ptr, unit, scal_width, scal_height);
1239 png_set_sCAL_s(write_ptr, write_info_ptr, unit, scal_width,
1269 png_set_text(write_ptr, write_info_ptr, text_ptr, num_text);
1279 png_set_tIME(write_ptr, write_info_ptr, mod_time);
1312 png_set_tRNS(write_ptr, write_info_ptr, trans_alpha, num_trans,
1325 png_set_unknown_chunks(write_ptr, write_info_ptr, unknowns,
1335 png_set_unknown_chunk_location(write_ptr, write_info_ptr, i,
1349 png_write_info_before_PLTE(write_ptr, write_info_ptr);
1351 write_chunks(write_ptr, before_PLTE); /* before PLTE */
1353 png_write_info(write_ptr, write_info_ptr);
1355 write_chunks(write_ptr, before_IDAT); /* after PLTE */
1369 if (png_set_interlace_handling(write_ptr) != num_pass)
1370 png_error(write_ptr, "png_set_interlace_handling: inconsistent num_pass");
1400 png_write_rows(write_ptr, (png_bytepp)&row_buf, 1);
1421 png_free_data(write_ptr, write_info_ptr, PNG_FREE_UNKN, -1);
1451 png_set_text(write_ptr, write_end_info_ptr, text_ptr, num_text);
1461 png_set_tIME(write_ptr, write_end_info_ptr, mod_time);
1485 png_set_unknown_chunks(write_ptr, write_end_info_ptr, unknowns,
1495 png_set_unknown_chunk_location(write_ptr, write_end_info_ptr, i,
1509 png_set_text_compression_strategy(write_ptr, Z_FILTERED);
1518 write_chunks(write_ptr, after_IDAT);
1520 png_write_end(write_ptr, write_end_info_ptr);
1527 iwidth = png_get_image_width(write_ptr, write_info_ptr);
1528 iheight = png_get_image_height(write_ptr, write_info_ptr);
1544 png_destroy_info_struct(write_ptr, &write_end_info_ptr);
1545 pngtest_debug("destroying write_ptr, write_info_ptr");
1546 png_destroy_write_struct(&write_ptr, &write_info_ptr);