jpeg_alloc_encoder_mem() function
A helper function to allocate memory space for JPEG encoder.
Arguments
size
The size of memory to allocate.
mem_cfg
Memory configuration for memory allocation
allocated_size
Actual allocated buffer size.
Return value
Pointer to the allocated memory space, or NULL if allocation fails.
Examples
jpeg_alloc_encoder_mem() is referenced by 1 libraries and example projects: