From e60e29554ba1d59aea663aaed21ff0d1601dbcd0 Mon Sep 17 00:00:00 2001 From: Ruben Brunk Date: Tue, 18 Feb 2014 10:44:17 -0800 Subject: camera3: Update whiteLevel tag. Change-Id: If5b5191b1c494bc6f86d36e1dc47dd38beb10f2b --- .../hardware/camera2/CameraCharacteristics.java | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java index f06ffaa..d27485b 100644 --- a/core/java/android/hardware/camera2/CameraCharacteristics.java +++ b/core/java/android/hardware/camera2/CameraCharacteristics.java @@ -969,6 +969,23 @@ public final class CameraCharacteristics extends CameraMetadata { new Key("android.sensor.info.pixelArraySize", android.hardware.camera2.Size.class); /** + *

Maximum raw value output by sensor.

+ *

This specifies the fully-saturated encoding level for the raw + * sample values from the sensor. This is typically caused by the + * sensor becoming highly non-linear or clipping. The minimum for + * each channel is specified by the offset in the + * {@link CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN android.sensor.blackLevelPattern} tag.

+ *

The white level is typically determined either by sensor bit depth + * (10-14 bits is expected), or by the point where the sensor response + * becomes too non-linear to be useful. The default value for this is + * maximum representable value for a 16-bit raw sample (2^16 - 1).

+ * + * @see CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN + */ + public static final Key SENSOR_INFO_WHITE_LEVEL = + new Key("android.sensor.info.whiteLevel", int.class); + + /** *

Gain factor from electrons to raw units when * ISO=100

*

Optional - This value may be {@code null} on some devices.

@@ -985,10 +1002,13 @@ public final class CameraCharacteristics extends CameraMetadata { *

A fixed black level offset for each of the color filter arrangement * (CFA) mosaic channels.

*

This tag specifies the zero light value for each of the CFA mosaic - * channels in the camera sensor.

+ * channels in the camera sensor. The maximal value output by the + * sensor is represented by the value in {@link CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL android.sensor.info.whiteLevel}.

*

The values are given in row-column scan order, with the first value * corresponding to the element of the CFA in row=0, column=0.

*

Optional - This value may be {@code null} on some devices.

+ * + * @see CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL */ public static final Key SENSOR_BLACK_LEVEL_PATTERN = new Key("android.sensor.blackLevelPattern", int[].class); -- cgit v1.1