Retrieve the list of supported viewfinder framerates
Synopsis:
#include <camera/external_camera_api.h>
typedef int(* get_supported_vf_framerates_func_t)(void *handle,
camera_res_t *resolution,
camera_frametype_t frametype,
int *numRates,
bool *isMaxMin,
float *rates);
Arguments:
- handle
- The handle that's returned from calling the function open_external_camera_func_t.
- resolution
- The resolution associated with this query.
- frametype
- The frame type associated with this query
- numRates
- Needs to be set to the number of viewfinder framerates supported.
- isMaxMin
- Need to be set to true if the rates provided represents a range of value between a minimum and a maximum; need to set to false if the rates provided represent the list of individual rates supported.
- rates
- Array to fill with the supported framerates; if isMaxMin is set to true, use array index defined in camera_vf_framerate_min_max_index_t for the minimum and maximum values; if isMaxMin is set to false, set the individual framerates that are supported up to 100 entries.
Library:
libcamapi
Description:
The viewfinder is capable of operating at different framerates. This function retrieves the list of supported framerates for the specified camera for a given frame type and resolution. Note that the fractional precision of each supported framerate shouldn't exceed 3 digits of precision.
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.