LIBJXL
|
#include <memory_manager.h>
Public Attributes | |
void * | opaque |
jpegxl_alloc_func | alloc |
jpegxl_free_func | free |
Memory Manager struct. These functions, when provided by the caller, will be used to handle memory allocations.
jpegxl_alloc_func JxlMemoryManagerStruct::alloc |
Memory allocation function. This can be NULL if and only if also the free() member in this class is NULL. All dynamic memory will be allocated and freed with these functions if they are not NULL, otherwise with the standard malloc/free.
jpegxl_free_func JxlMemoryManagerStruct::free |
Free function matching the alloc() member.
void* JxlMemoryManagerStruct::opaque |
The opaque pointer that will be passed as the first parameter to all the functions in this struct.