free_preview_buffer_func_t
Free a preview buffer
Synopsis:
#include <camera/external_camera_api.h>typedef int(* free_preview_buffer_func_t)(void *handle,
void *vaddr,
uint32_t size);Arguments:
- handle
- The handle that's returned from calling the function open_external_camera_func_t.
- vaddr
- The preview buffer address.
- size
- The preview buffer size in bytes.
Library:
libcamapiDescription:
This function is called to free a buffer that was previously allocated using allocate_preview_buffer_func_t.
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:
