From 878f9df9e6877e73bee4f510833fc74a4bd3d2fc Mon Sep 17 00:00:00 2001 From: Shuzhen Wang Date: Fri, 13 Mar 2020 09:37:34 -0700 Subject: [PATCH] Camera: Improve documentation for android.control.zoomRatio To better document how android.control.zoomRatio works, add examples to illustrate its relationship with scalerCropRegion. Test: Build and read docs Bug: 144780745 Change-Id: Iab0e849b4d045fc1648fcf2ddc51d84c66249273 --- .../include/camera/NdkCameraMetadataTags.h | 81 ++++++++++++++----- 1 file changed, 61 insertions(+), 20 deletions(-) diff --git a/camera/ndk/include/camera/NdkCameraMetadataTags.h b/camera/ndk/include/camera/NdkCameraMetadataTags.h index 4f9b0d1a16..16457accc2 100644 --- a/camera/ndk/include/camera/NdkCameraMetadataTags.h +++ b/camera/ndk/include/camera/NdkCameraMetadataTags.h @@ -1895,27 +1895,66 @@ typedef enum acamera_metadata_tag { * ACAMERA_SCALER_CROP_REGION can still be used to specify the horizontal or vertical * crop to achieve aspect ratios different than the native camera sensor.

*

By using this control, the application gains a simpler way to control zoom, which can - * be a combination of optical and digital zoom. More specifically, for a logical - * multi-camera with more than one focal length, using a floating point zoom ratio offers - * more zoom precision when a telephoto lens is used, as well as allowing zoom ratio of - * less than 1.0 to zoom out to a wide field of view.

- *

Note that the coordinate system of cropRegion, AE/AWB/AF regions, and faces now changes - * to the effective after-zoom field-of-view represented by rectangle of (0, 0, - * activeArrayWidth, activeArrayHeight).

- *

For example, if ACAMERA_SENSOR_INFO_ACTIVE_ARRAY_SIZE is 4032*3024, and the preview stream - * is configured to the same 4:3 aspect ratio, the application can achieve 2.0x zoom in - * one of two ways:

- *