allocate_preview_buffer_func_t
Allocate a preview buffer
Synopsis:
#include <camera/external_camera_api.h>typedef int(* allocate_preview_buffer_func_t)(void *handle,
uint32_t size,
void **vaddr);Arguments:
- handle
- The handle that's returned from calling the function open_external_camera_func_t.
- size
- The size of the preview buffer to allocate, in bytes.
- vaddr
- On success, this is set to point to the address of the allocated preview buffer.
Library:
libcamapiDescription:
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.
Note:
This function is optional. If it is not present, the camera will not support allocating preview buffers from the external camera library.
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.
Page updated:
