diff --git a/core/java/android/hardware/camera2/CameraMetadata.java b/core/java/android/hardware/camera2/CameraMetadata.java index a7a3df7ff3721..cb11d0f54a7b7 100644 --- a/core/java/android/hardware/camera2/CameraMetadata.java +++ b/core/java/android/hardware/camera2/CameraMetadata.java @@ -2729,13 +2729,13 @@ public abstract class CameraMetadata { // /** - *

Scene change is not detected within AF regions.

+ *

Scene change is not detected within the AF region(s).

* @see CaptureResult#CONTROL_AF_SCENE_CHANGE */ public static final int CONTROL_AF_SCENE_CHANGE_NOT_DETECTED = 0; /** - *

Scene change is detected within AF regions.

+ *

Scene change is detected within the AF region(s).

* @see CaptureResult#CONTROL_AF_SCENE_CHANGE */ public static final int CONTROL_AF_SCENE_CHANGE_DETECTED = 1; diff --git a/core/java/android/hardware/camera2/CaptureResult.java b/core/java/android/hardware/camera2/CaptureResult.java index b7d7f7d90a316..6d7b06fc609fe 100644 --- a/core/java/android/hardware/camera2/CaptureResult.java +++ b/core/java/android/hardware/camera2/CaptureResult.java @@ -2185,10 +2185,16 @@ public class CaptureResult extends CameraMetadata> { new Key("android.control.enableZsl", boolean.class); /** - *

Whether scene change is detected within AF regions.

- *

When AF detects a scene change within current AF regions, it will be set to DETECTED. Otherwise, - * it will be set to NOT_DETECTED. This value will remain NOT_DETECTED if afMode is AF_MODE_OFF or - * AF_MODE_EDOF.

+ *

Whether a significant scene change is detected within the currently-set AF + * region(s).

+ *

When the camera focus routine detects a change in the scene it is looking at, + * such as a large shift in camera viewpoint, significant motion in the scene, or a + * significant illumination change, this value will be set to DETECTED for a single capture + * result. Otherwise the value will be NOT_DETECTED. The threshold for detection is similar + * to what would trigger a new passive focus scan to begin in CONTINUOUS autofocus modes.

+ *

afSceneChange may be DETECTED only if afMode is AF_MODE_CONTINUOUS_VIDEO or + * AF_MODE_CONTINUOUS_PICTURE. In other AF modes, afSceneChange must be NOT_DETECTED.

+ *

This key will be available if the camera device advertises this key via {@link android.hardware.camera2.CameraCharacteristics#getAvailableCaptureResultKeys }.

*

Possible values: *

    *
  • {@link #CONTROL_AF_SCENE_CHANGE_NOT_DETECTED NOT_DETECTED}