Updated: October 28, 2024 |
Allocate a preview buffer
#include <camera/external_camera_api.h>
typedef int(* allocate_preview_buffer_func_t)(void *handle, uint32_t size, void **vaddr);
This function is called for a camera where the preview buffers are allocated by the external camera library. Typically, this is not the case and buffers are allocated by the Sensor service.
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.