get_supported_vf_framerates_func_t

Updated: April 19, 2023

Retrieve the supported viewfinder frame rates

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. See camera_res_t for details.
frametype
The frame type associated with this query. See camera_frametype_t for details.
numRates
On success, this is set to the number of viewfinder frame rates supported by the camera.
isMaxMin
Must be set to true if the provided rates represent a value range between a minimum and a maximum; must be false if the provided rates represent the individual rates supported.
rates
An array to fill with the supported frame rates. If isMaxMin is set to true, use the array indexes defined in camera_vf_framerate_min_max_index_t for the minimum and maximum values. If isMaxMin is set to false, set the individual frame rates that are supported, up to 100 entries.

Library:

libcamapi

Description:

The viewfinder is capable of operating at different frame rates. This function retrieves the supported frame rates for the specified camera for a given frame type and resolution. Note that the fractional precision of each supported frame rate 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.