Lines Matching refs:info_ptr
87 png_infop info_ptr;
98 info_ptr = png_create_info_struct(png_ptr);
99 if (!info_ptr) {
112 png_destroy_write_struct(&png_ptr, &info_ptr);
149 png_destroy_write_struct(&png_ptr, &info_ptr);
156 png_set_IHDR(png_ptr, info_ptr, mainprog_ptr->width, mainprog_ptr->height,
161 png_set_gAMA(png_ptr, info_ptr, mainprog_ptr->gamma);
169 png_set_bKGD(png_ptr, info_ptr, &background);
176 png_set_tIME(png_ptr, info_ptr, &modtime);
219 png_set_text(png_ptr, info_ptr, text, num_text);
225 png_write_info(png_ptr, info_ptr);
245 mainprog_ptr->info_ptr = info_ptr;
262 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr;
269 png_destroy_write_struct(&png_ptr, &info_ptr);
271 mainprog_ptr->info_ptr = NULL;
284 * would be info_ptr, but we optimize slightly by sending NULL pointer: */
300 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr;
307 png_destroy_write_struct(&png_ptr, &info_ptr);
309 mainprog_ptr->info_ptr = NULL;
330 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr;
337 png_destroy_write_struct(&png_ptr, &info_ptr);
339 mainprog_ptr->info_ptr = NULL;
345 * the IDATs, second argument would be info_ptr: */
359 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr;
361 if (png_ptr && info_ptr)
362 png_destroy_write_struct(&png_ptr, &info_ptr);