camera_get_zoom_limits()
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
intthat is updated with the minimum zoom level supported by the camera. - max_level
- A pointer to an
intthat 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
truemeans that smooth zooming is supported by the camera;falsemeans it isn't supported.
Library:
libcamapiDescription:
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.
Page updated:
