Prusa MINI Firmware overview
|
|
void | png_destroy_png_struct (png_structrp png_ptr) |
|
| PNG_FUNCTION (png_voidp, PNGAPI png_calloc,(png_const_structrp png_ptr, png_alloc_size_t size), PNG_ALLOCATED) |
|
| PNG_FUNCTION (png_voidp, png_malloc_base,(png_const_structrp png_ptr, png_alloc_size_t size), PNG_ALLOCATED) |
|
static png_voidp | png_malloc_array_checked (png_const_structrp png_ptr, int nelements, size_t element_size) |
|
| PNG_FUNCTION (png_voidp, png_malloc_array,(png_const_structrp png_ptr, int nelements, size_t element_size), PNG_ALLOCATED) |
|
| PNG_FUNCTION (png_voidp, png_realloc_array,(png_const_structrp png_ptr, png_const_voidp old_array, int old_elements, int add_elements, size_t element_size), PNG_ALLOCATED) |
|
void PNGAPI | png_free (png_const_structrp png_ptr, png_voidp ptr) |
|
| PNG_FUNCTION (void, PNGAPI png_free_default,(png_const_structrp png_ptr, png_voidp ptr), PNG_DEPRECATED) |
|
void PNGAPI | png_set_mem_fn (png_structrp png_ptr, png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn) |
|
png_voidp PNGAPI | png_get_mem_ptr (png_const_structrp png_ptr) |
|
◆ png_destroy_png_struct()
36 # ifdef PNG_SETJMP_SUPPORTED
◆ PNG_FUNCTION() [1/5]
◆ PNG_FUNCTION() [2/5]
76 #ifndef PNG_USER_MEM_SUPPORTED
84 # ifdef PNG_MAX_MALLOC_64K
89 #ifdef PNG_USER_MEM_SUPPORTED
95 return malloc((
size_t)
size);
◆ png_malloc_array_checked()
115 return png_malloc_base(
png_ptr, req * element_size);
◆ PNG_FUNCTION() [3/5]
125 if (nelements <= 0 || element_size == 0)
◆ PNG_FUNCTION() [4/5]
136 if (add_elements <= 0 || element_size == 0 || old_elements < 0 ||
137 (old_array ==
NULL && old_elements > 0))
143 if (add_elements <= INT_MAX - old_elements)
146 old_elements+add_elements, element_size);
148 if (new_array !=
NULL)
153 if (old_elements > 0)
154 memcpy(new_array, old_array, element_size*(
unsigned)old_elements);
156 memset((
char*)new_array + element_size*(
unsigned)old_elements, 0,
157 element_size*(
unsigned)add_elements);
◆ png_free()
237 #ifdef PNG_USER_MEM_SUPPORTED
242 png_free_default(
png_ptr, ptr);
◆ PNG_FUNCTION() [5/5]
◆ png_set_mem_fn()
266 png_ptr->malloc_fn = malloc_fn;
◆ png_get_mem_ptr()
static png_voidp png_malloc_array_checked(png_const_structrp png_ptr, int nelements, size_t element_size)
Definition: pngmem.c:109
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
void * png_voidp
Definition: pngconf.h:577
void PNGAPI png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:232
#define PNG_SIZE_MAX
Definition: png.h:651
#define NULL
Definition: usbd_def.h:53
png_structrp png_ptr
Definition: png.h:1083
png_struct *PNG_RESTRICT png_structrp
Definition: png.h:469
void png_free_jmpbuf(png_structrp png_ptr)
Definition: pngerror.c:666
Definition: pngstruct.h:143
else png_error(png_ptr, "png_image_write_to_memory: PNG too big")
size_t png_alloc_size_t
Definition: pngconf.h:557
#define png_constcast(type, value)
Definition: pngpriv.h:504
static png_bytep size_t size
Definition: pngwrite.c:2170