get_preview_num_buffers_func_t

Determine the number of required 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 platform may call this function to determine how many preview buffers need to be allocated for the specified viewfinder type. The platform 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.