Home
last modified time | relevance | path

Searched refs:malloc_fn (Results 1 – 19 of 19) sorted by relevance

/external/qemu/distrib/libpng-1.2.46/
Dpngmem.c40 png_create_struct_2(int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr) in png_create_struct_2() argument
54 if (malloc_fn != NULL) in png_create_struct_2()
59 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size); in png_create_struct_2()
138 if (png_ptr->malloc_fn != NULL) in png_malloc()
139 ret = ((png_voidp)(*(png_ptr->malloc_fn))(png_ptr, (png_size_t)size)); in png_malloc()
358 png_create_struct_2(int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr) in png_create_struct_2() argument
372 if (malloc_fn != NULL) in png_create_struct_2()
377 struct_ptr = (*(malloc_fn))(png_ptr, size); in png_create_struct_2()
465 if (png_ptr->malloc_fn != NULL) in png_malloc()
466 ret = ((png_voidp)(*(png_ptr->malloc_fn))(png_ptr, (png_size_t)size)); in png_malloc()
[all …]
Dpngwrite.c470 png_malloc_ptr malloc_fn, png_free_ptr free_fn) in png_create_write_struct_2() argument
488 (png_malloc_ptr)malloc_fn, (png_voidp)mem_ptr); in png_create_write_struct_2()
524 png_set_mem_fn(png_ptr, mem_ptr, malloc_fn, free_fn); in png_create_write_struct_2()
Dpngread.c40 png_malloc_ptr malloc_fn, png_free_ptr free_fn) in png_create_read_struct_2() argument
61 (png_malloc_ptr)malloc_fn, (png_voidp)mem_ptr); in png_create_read_struct_2()
105 png_set_mem_fn(png_ptr, mem_ptr, malloc_fn, free_fn); in png_create_read_struct_2()
Dpng.h1564 png_malloc_ptr malloc_fn PNG_DEPSTRUCT; /* function for allocating memory */
1671 png_malloc_ptr malloc_fn, png_free_ptr free_fn)) PNG_ALLOCATED;
1675 png_malloc_ptr malloc_fn, png_free_ptr free_fn)) PNG_ALLOCATED;
2151 png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn));
3208 malloc_fn, png_voidp mem_ptr)) PNG_PRIVATE;
Dpng.c261 png_ptr->malloc_fn, png_ptr->mem_ptr); in png_create_info_struct()
/external/chromium_org/third_party/libpng/
Dpngmem.c40 png_create_struct_2(int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr) in png_create_struct_2() argument
54 if (malloc_fn != NULL) in png_create_struct_2()
59 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size); in png_create_struct_2()
138 if (png_ptr->malloc_fn != NULL) in png_malloc()
139 ret = ((png_voidp)(*(png_ptr->malloc_fn))(png_ptr, (png_size_t)size)); in png_malloc()
358 png_create_struct_2(int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr) in png_create_struct_2() argument
372 if (malloc_fn != NULL) in png_create_struct_2()
377 struct_ptr = (*(malloc_fn))(png_ptr, size); in png_create_struct_2()
465 if (png_ptr->malloc_fn != NULL) in png_malloc()
466 ret = ((png_voidp)(*(png_ptr->malloc_fn))(png_ptr, (png_size_t)size)); in png_malloc()
[all …]
Dpngread.c40 png_malloc_ptr malloc_fn, png_free_ptr free_fn) in png_create_read_struct_2() argument
61 (png_malloc_ptr)malloc_fn, (png_voidp)mem_ptr); in png_create_read_struct_2()
105 png_set_mem_fn(png_ptr, mem_ptr, malloc_fn, free_fn); in png_create_read_struct_2()
Dpngwrite.c470 png_malloc_ptr malloc_fn, png_free_ptr free_fn) in png_create_write_struct_2() argument
488 (png_malloc_ptr)malloc_fn, (png_voidp)mem_ptr); in png_create_write_struct_2()
524 png_set_mem_fn(png_ptr, mem_ptr, malloc_fn, free_fn); in png_create_write_struct_2()
Dpng.h1511 png_malloc_ptr malloc_fn PNG_DEPSTRUCT; /* function for allocating memory */
1615 png_malloc_ptr malloc_fn, png_free_ptr free_fn)) PNG_ALLOCATED;
1619 png_malloc_ptr malloc_fn, png_free_ptr free_fn)) PNG_ALLOCATED;
2079 png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn));
3136 malloc_fn, png_voidp mem_ptr)) PNG_PRIVATE;
Dpng.c260 png_ptr->malloc_fn, png_ptr->mem_ptr); in png_create_info_struct()
/external/libpng/
Dpngmem.c87 if (png_ptr != NULL && png_ptr->malloc_fn != NULL)
88 return png_ptr->malloc_fn(png_constcast(png_structrp,png_ptr), size);
258 malloc_fn, png_free_ptr free_fn) in png_set_mem_fn()
263 png_ptr->malloc_fn = malloc_fn; in png_set_mem_fn()
Dpngstruct.h464 png_malloc_ptr malloc_fn; /* function for allocating memory */ member
Dpng.h1099 png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn),
1104 png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn),
1755 png_malloc_ptr malloc_fn, png_free_ptr free_fn));
Dpng.c227 png_malloc_ptr malloc_fn, png_free_ptr free_fn),PNG_ALLOCATED)
262 png_set_mem_fn(&create_struct, mem_ptr, malloc_fn, free_fn);
265 PNG_UNUSED(malloc_fn)
Dpngwrite.c492 png_malloc_ptr malloc_fn, png_free_ptr free_fn),PNG_ALLOCATED)
495 error_fn, warn_fn, mem_ptr, malloc_fn, free_fn);
Dpngpriv.h935 png_error_ptr warn_fn, png_voidp mem_ptr, png_malloc_ptr malloc_fn,
Dpngread.c43 png_malloc_ptr malloc_fn, png_free_ptr free_fn),PNG_ALLOCATED)
46 error_fn, warn_fn, mem_ptr, malloc_fn, free_fn);
Dlibpng-manual.txt4102 png_voidp malloc_fn(png_structp png_ptr,
4107 Your malloc_fn() must return NULL in case of failure. The png_malloc()
4109 system memory allocator or from your replacement malloc_fn().
4763 This also applies to the prototype for the user replacement malloc_fn().
DCHANGES394 Added capability for user-provided malloc_fn() and free_fn() functions,
1057 from user's malloc_fn().
1145 the user malloc_fn, to agree with the prototype in png.h