camera_get_zoom_limits()

Updated: April 19, 2023

Retrieve the supported range of zoom levels and determine whether the camera supports smooth zooming

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 that is updated with the minimum zoom level supported by the camera.
max_level
A pointer to an int that is updated with the maximum zoom level supported by the camera.
smooth
A pointer to a boolean value that is updated when the call completes. A value of true means that smooth zooming is supported by the camera; false means it isn't supported.

Library:

libcamapi

Description:

The range returned by this function represent the limits of the zoom values you can set using CAMERA_IMGPROP_ZOOMFACTOR. 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.