From 8998ad9675c9fd99b86f9cda477f8f0d198ae7da Mon Sep 17 00:00:00 2001 From: Zhijun He Date: Tue, 24 Nov 2015 14:31:04 -0800 Subject: [PATCH] Camera2: update dynamic black level type They should be floats rather than integers for better precision. Bug: 23011454 Change-Id: I8c10ff0bc5f07f1d53cdbda36da55b4483f721aa --- api/current.txt | 2 +- api/system-current.txt | 2 +- core/java/android/hardware/camera2/CaptureResult.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/current.txt b/api/current.txt index 0774a9ac21036..f88519aaa4d79 100644 --- a/api/current.txt +++ b/api/current.txt @@ -13880,7 +13880,7 @@ package android.hardware.camera2 { field public static final android.hardware.camera2.CaptureResult.Key REPROCESS_EFFECTIVE_EXPOSURE_FACTOR; field public static final android.hardware.camera2.CaptureResult.Key REQUEST_PIPELINE_DEPTH; field public static final android.hardware.camera2.CaptureResult.Key SCALER_CROP_REGION; - field public static final android.hardware.camera2.CaptureResult.Key SENSOR_DYNAMIC_BLACK_LEVEL; + field public static final android.hardware.camera2.CaptureResult.Key SENSOR_DYNAMIC_BLACK_LEVEL; field public static final android.hardware.camera2.CaptureResult.Key SENSOR_DYNAMIC_WHITE_LEVEL; field public static final android.hardware.camera2.CaptureResult.Key SENSOR_EXPOSURE_TIME; field public static final android.hardware.camera2.CaptureResult.Key SENSOR_FRAME_DURATION; diff --git a/api/system-current.txt b/api/system-current.txt index fbc60cdb98db3..905ec766a1255 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -14228,7 +14228,7 @@ package android.hardware.camera2 { field public static final android.hardware.camera2.CaptureResult.Key REPROCESS_EFFECTIVE_EXPOSURE_FACTOR; field public static final android.hardware.camera2.CaptureResult.Key REQUEST_PIPELINE_DEPTH; field public static final android.hardware.camera2.CaptureResult.Key SCALER_CROP_REGION; - field public static final android.hardware.camera2.CaptureResult.Key SENSOR_DYNAMIC_BLACK_LEVEL; + field public static final android.hardware.camera2.CaptureResult.Key SENSOR_DYNAMIC_BLACK_LEVEL; field public static final android.hardware.camera2.CaptureResult.Key SENSOR_DYNAMIC_WHITE_LEVEL; field public static final android.hardware.camera2.CaptureResult.Key SENSOR_EXPOSURE_TIME; field public static final android.hardware.camera2.CaptureResult.Key SENSOR_FRAME_DURATION; diff --git a/core/java/android/hardware/camera2/CaptureResult.java b/core/java/android/hardware/camera2/CaptureResult.java index 5f27bcaabd61e..3c2d5030c4322 100644 --- a/core/java/android/hardware/camera2/CaptureResult.java +++ b/core/java/android/hardware/camera2/CaptureResult.java @@ -3329,8 +3329,8 @@ public class CaptureResult extends CameraMetadata> { * @see CaptureRequest#SENSOR_SENSITIVITY */ @PublicKey - public static final Key SENSOR_DYNAMIC_BLACK_LEVEL = - new Key("android.sensor.dynamicBlackLevel", android.hardware.camera2.params.BlackLevelPattern.class); + public static final Key SENSOR_DYNAMIC_BLACK_LEVEL = + new Key("android.sensor.dynamicBlackLevel", float[].class); /** *

Maximum raw value output by sensor for this frame.