get_preview_num_buffers_func_t

Updated: October 26, 2022

Determine the number of preview buffers that the camera requires

Synopsis:

#include <camera/external_camera_api.h>
typedef int(* get_preview_num_buffers_func_t)(void *handle);

Arguments:

handle
The handle that's returned from calling the function open_external_camera_func_t.

Library:

libcamapi

Description:

When allocating buffers, the Sensor service calls this function to determine how many preview buffers need to be allocated for the camera. The Sensor service adds to this number the additional number of buffers required by other parts of the system.

Returns:

The number of preview buffers required for this camera.