From f1745ce8a86f79ec8401a40560a8e045f1875006 Mon Sep 17 00:00:00 2001 From: Zhijun He Date: Wed, 4 Feb 2015 13:55:14 -0800 Subject: Camera2: relax the EV compensation requirements FULL and LIMITED is allowed to advertise [0,0], which indicates that the exposure compensation is not supported. Bug: 19219128 Change-Id: I6020a771201d754351f76617f68c06363fac78e8 --- core/java/android/hardware/camera2/CameraCharacteristics.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/java/android/hardware/camera2') diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java index 1b621d1..7cf8fb0 100644 --- a/core/java/android/hardware/camera2/CameraCharacteristics.java +++ b/core/java/android/hardware/camera2/CameraCharacteristics.java @@ -391,10 +391,12 @@ public final class CameraCharacteristics extends CameraMetadata *

Range of valid values:

+ *

Range [0,0] indicates that exposure compensation is not supported.

+ *

For LIMITED and FULL devices, range must follow below requirements if exposure + * compensation is supported (range != [0, 0]):

*

Min.exposure compensation * {@link CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP android.control.aeCompensationStep} <= -2 EV

*

Max.exposure compensation * {@link CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP android.control.aeCompensationStep} >= 2 EV

- *

LEGACY devices may support a smaller range than this, including the range [0,0], which - * indicates that changing the exposure compensation is not supported.

+ *

LEGACY devices may support a smaller range than this.

*

This key is available on all devices.

* * @see CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP -- cgit v1.1