Lines Matching refs:info_ptr
86 png_infop info_ptr; in writepng_init() local
97 info_ptr = png_create_info_struct(png_ptr); in writepng_init()
98 if (!info_ptr) { in writepng_init()
110 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
147 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
154 png_set_IHDR(png_ptr, info_ptr, mainprog_ptr->width, mainprog_ptr->height, in writepng_init()
159 png_set_gAMA(png_ptr, info_ptr, mainprog_ptr->gamma); in writepng_init()
167 png_set_bKGD(png_ptr, info_ptr, &background); in writepng_init()
174 png_set_tIME(png_ptr, info_ptr, &modtime); in writepng_init()
217 png_set_text(png_ptr, info_ptr, text, num_text); in writepng_init()
223 png_write_info(png_ptr, info_ptr); in writepng_init()
243 mainprog_ptr->info_ptr = info_ptr; in writepng_init()
260 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in writepng_encode_image() local
267 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_encode_image()
269 mainprog_ptr->info_ptr = NULL; in writepng_encode_image()
298 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in writepng_encode_row() local
305 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_encode_row()
307 mainprog_ptr->info_ptr = NULL; in writepng_encode_row()
328 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in writepng_encode_finish() local
335 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_encode_finish()
337 mainprog_ptr->info_ptr = NULL; in writepng_encode_finish()
357 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in writepng_cleanup() local
359 if (png_ptr && info_ptr) in writepng_cleanup()
360 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_cleanup()