camera_get_zoom_limits()
Retrieve the supported range of zoom levels and whether smooth zooming is supported by the camera.
Synopsis:
#include <camera/camera_api.h>
camera_error_t camera_get_zoom_limits(camera_handle_t handle, unsigned int *min_level, unsigned int *max_level, bool *smooth)
Arguments:
- handle
-
The handle returned by a call to the camera_open() function.
- min_level
-
A pointer to an int value that is populated with the minimal zoom level supported by the camera.
- max_level
-
A pointer to an int value that is populated with the maximum zoom level supported by the camera.
- smooth
-
A pointer to a boolean value that is populated when the call completes. A value of true indicates that smooth zooming is supported by the camera.
Library:
libcamapiDescription:
Not all cameras support smooth zooming.
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.