Updated: October 28, 2024 |
Retrieve the supported range of zoom levels and determine whether the camera supports smooth zooming
#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)
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.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.