Lines Matching refs:create_struct
227 png_struct create_struct; variable
236 memset(&create_struct, 0, (sizeof create_struct));
240 create_struct.user_width_max = PNG_USER_WIDTH_MAX;
241 create_struct.user_height_max = PNG_USER_HEIGHT_MAX;
245 create_struct.user_chunk_cache_max = PNG_USER_CHUNK_CACHE_MAX;
252 create_struct.user_chunk_malloc_max = PNG_USER_CHUNK_MALLOC_MAX;
260 png_set_mem_fn(&create_struct, mem_ptr, malloc_fn, free_fn);
268 png_set_error_fn(&create_struct, error_ptr, error_fn, warn_fn);
278 create_struct.jmp_buf_ptr = &create_jmp_buf;
279 create_struct.jmp_buf_size = 0; /*stack allocation*/
280 create_struct.longjmp_fn = longjmp;
286 if (png_user_version_check(&create_struct, user_png_ver))
289 png_malloc_warn(&create_struct, (sizeof *png_ptr)));
296 create_struct.zstream.zalloc = png_zalloc;
297 create_struct.zstream.zfree = png_zfree;
298 create_struct.zstream.opaque = png_ptr;
302 create_struct.jmp_buf_ptr = NULL;
303 create_struct.jmp_buf_size = 0;
304 create_struct.longjmp_fn = 0;
307 *png_ptr = create_struct;