Updated: October 28, 2024 |
Retrieves the zoom ratio corresponding to a given zoom level
#include <camera/camera_api.h>
camera_error_t camera_get_zoom_ratio_from_zoom_level(camera_handle_t handle, uint32_t zoom_level, double *zoom_ratio)
Use this function to retrieve the zoom ratio associated with a given zoom level. The zoom ratio describes the amount of magnification applied to the scene. For example: A zoom ratio of 1.0 indicates that no magnification is applied to the scene. A zoom ratio of 2.0 indicates that 1/2 of the width and 1/2 of the height of the scene is pictured when compared to the 1.0 zoom ratio.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.