Updated: October 28, 2024 |
Free a preview buffer
#include <camera/external_camera_api.h>
typedef int(* free_preview_buffer_func_t)(void *handle, void *vaddr, uint32_t size);
This function is called to free a buffer that was previously allocated using allocate_preview_buffer_func_t.
This function is optional. If it is not present, the camera will not support allocating preview buffers from the external camera library.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.