diff options
| author | 2013-07-18 23:20:47 +0000 | |
|---|---|---|
| committer | 2013-07-18 23:20:47 +0000 | |
| commit | 563057740d6e94233f9d3daf80b4c703f35fece8 (patch) | |
| tree | bdfd5a49548985427ac95de40ef0b958505171c2 | |
| parent | d33dc21c95417b49fef938e5a37b50ac1b836460 (diff) | |
| parent | d84bd0a5f310b14f56d30c64562b1bf0589a74fa (diff) | |
Merge "Update camera metedata"
3 files changed, 83 insertions, 25 deletions
diff --git a/core/java/android/hardware/photography/CameraPropertiesKeys.java b/core/java/android/hardware/photography/CameraPropertiesKeys.java index f511ae704c5b..55e39c2c73d0 100644 --- a/core/java/android/hardware/photography/CameraPropertiesKeys.java +++ b/core/java/android/hardware/photography/CameraPropertiesKeys.java @@ -176,8 +176,8 @@ public final class CameraPropertiesKeys { public static final class Info { public static final Key<int[]> ACTIVE_ARRAY_SIZE = new Key<int[]>("android.sensor.info.activeArraySize", int[].class); - public static final Key<int[]> AVAILABLE_SENSITIVITIES = - new Key<int[]>("android.sensor.info.availableSensitivities", int[].class); + public static final Key<int[]> SENSITIVITY_RANGE = + new Key<int[]>("android.sensor.info.sensitivityRange", int[].class); public static final Key<long[]> EXPOSURE_TIME_RANGE = new Key<long[]>("android.sensor.info.exposureTimeRange", long[].class); public static final Key<Long> MAX_FRAME_DURATION = diff --git a/core/java/android/hardware/photography/CaptureRequestKeys.java b/core/java/android/hardware/photography/CaptureRequestKeys.java index b23e71d7e689..d8748cfa3f85 100644 --- a/core/java/android/hardware/photography/CaptureRequestKeys.java +++ b/core/java/android/hardware/photography/CaptureRequestKeys.java @@ -60,8 +60,10 @@ public final class CaptureRequestKeys { public static final Key<ColorCorrection.ModeKey.Enum> MODE = new ModeKey("android.colorCorrection.mode"); - public static final Key<float[]> TRANSFORM = - new Key<float[]>("android.colorCorrection.transform", float[].class); + public static final Key<Rational[]> TRANSFORM = + new Key<Rational[]>("android.colorCorrection.transform", Rational[].class); + public static final Key<float[]> GAINS = + new Key<float[]>("android.colorCorrection.gains", float[].class); } @@ -675,6 +677,29 @@ public final class CaptureRequestKeys { } + public static final class BlackLevel { + + public static final class LockKey extends Key<BlackLevel.LockKey.Enum> { + public enum Enum { + OFF, + ON; + } + + public static final Enum OFF = Enum.OFF; + public static final Enum ON = Enum.ON; + + // TODO: remove requirement for constructor by making Key an interface + private LockKey(String name) { + super(name, BlackLevel.LockKey.Enum.class); + } + + } + + public static final Key<BlackLevel.LockKey.Enum> LOCK = + new LockKey("android.blackLevel.lock"); + + } + } diff --git a/core/java/android/hardware/photography/CaptureResultKeys.java b/core/java/android/hardware/photography/CaptureResultKeys.java index e44fc913deca..de305b0587c9 100644 --- a/core/java/android/hardware/photography/CaptureResultKeys.java +++ b/core/java/android/hardware/photography/CaptureResultKeys.java @@ -39,27 +39,10 @@ import static android.hardware.photography.CameraMetadata.Key; **/ public final class CaptureResultKeys { public static final class ColorCorrection { - - public static final class ModeKey extends Key<ColorCorrection.ModeKey.Enum> { - public enum Enum { - TRANSFORM_MATRIX, - FAST, - HIGH_QUALITY; - } - - public static final Enum TRANSFORM_MATRIX = Enum.TRANSFORM_MATRIX; - public static final Enum FAST = Enum.FAST; - public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY; - - // TODO: remove requirement for constructor by making Key an interface - private ModeKey(String name) { - super(name, ColorCorrection.ModeKey.Enum.class); - } - - } - - public static final Key<ColorCorrection.ModeKey.Enum> MODE = - new ModeKey("android.colorCorrection.mode"); + public static final Key<Rational[]> TRANSFORM = + new Key<Rational[]>("android.colorCorrection.transform", Rational[].class); + public static final Key<float[]> GAINS = + new Key<float[]>("android.colorCorrection.gains", float[].class); } @@ -466,6 +449,33 @@ public final class CaptureResultKeys { new Key<int[]>("android.statistics.faceRectangles", int[].class); public static final Key<byte[]> FACE_SCORES = new Key<byte[]>("android.statistics.faceScores", byte[].class); + public static final Key<float[]> LENS_SHADING_MAP = + new Key<float[]>("android.statistics.lensShadingMap", float[].class); + public static final Key<float[]> PREDICTED_COLOR_GAINS = + new Key<float[]>("android.statistics.predictedColorGains", float[].class); + public static final Key<Rational[]> PREDICTED_COLOR_TRANSFORM = + new Key<Rational[]>("android.statistics.predictedColorTransform", Rational[].class); + + public static final class SceneFlickerKey extends Key<Statistics.SceneFlickerKey.Enum> { + public enum Enum { + NONE, + _50HZ, + _60HZ; + } + + public static final Enum NONE = Enum.NONE; + public static final Enum _50HZ = Enum._50HZ; + public static final Enum _60HZ = Enum._60HZ; + + // TODO: remove requirement for constructor by making Key an interface + private SceneFlickerKey(String name) { + super(name, Statistics.SceneFlickerKey.Enum.class); + } + + } + + public static final Key<Statistics.SceneFlickerKey.Enum> SCENE_FLICKER = + new SceneFlickerKey("android.statistics.sceneFlicker"); } @@ -532,6 +542,29 @@ public final class CaptureResultKeys { } + public static final class BlackLevel { + + public static final class LockKey extends Key<BlackLevel.LockKey.Enum> { + public enum Enum { + OFF, + ON; + } + + public static final Enum OFF = Enum.OFF; + public static final Enum ON = Enum.ON; + + // TODO: remove requirement for constructor by making Key an interface + private LockKey(String name) { + super(name, BlackLevel.LockKey.Enum.class); + } + + } + + public static final Key<BlackLevel.LockKey.Enum> LOCK = + new LockKey("android.blackLevel.lock"); + + } + } |