Lines Matching refs:create_struct
234 png_struct create_struct;
243 memset(&create_struct, 0, (sizeof create_struct));
247 create_struct.user_width_max = PNG_USER_WIDTH_MAX;
248 create_struct.user_height_max = PNG_USER_HEIGHT_MAX;
252 create_struct.user_chunk_cache_max = PNG_USER_CHUNK_CACHE_MAX;
259 create_struct.user_chunk_malloc_max = PNG_USER_CHUNK_MALLOC_MAX;
267 png_set_mem_fn(&create_struct, mem_ptr, malloc_fn, free_fn);
279 png_set_error_fn(&create_struct, error_ptr, error_fn, warn_fn);
291 create_struct.jmp_buf_ptr = &create_jmp_buf;
292 create_struct.jmp_buf_size = 0; /*stack allocation*/
293 create_struct.longjmp_fn = longjmp;
297 if (png_user_version_check(&create_struct, user_png_ver) != 0)
300 png_malloc_warn(&create_struct, (sizeof *png_ptr)));
307 create_struct.zstream.zalloc = png_zalloc;
308 create_struct.zstream.zfree = png_zfree;
309 create_struct.zstream.opaque = png_ptr;
313 create_struct.jmp_buf_ptr = NULL;
314 create_struct.jmp_buf_size = 0;
315 create_struct.longjmp_fn = 0;
318 *png_ptr = create_struct;