From 6593acd95da00450023bcff66bf1e00b42930065 Mon Sep 17 00:00:00 2001
From: Zhijun He
Date: Thu, 5 Jun 2014 12:49:56 -0700
Subject: Camera2: Hide input stream related key and enum
Bug: 14622091
Change-Id: Id8fc20b752da876f00a94d0262cd9468951bb36d
---
api/current.txt | 2 --
core/java/android/hardware/camera2/CameraCharacteristics.java | 5 ++---
core/java/android/hardware/camera2/CameraMetadata.java | 1 +
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/api/current.txt b/api/current.txt
index 79fb8df..f08fa7c 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -12146,7 +12146,6 @@ package android.hardware.camera2 {
field public static final android.hardware.camera2.CameraCharacteristics.Key LENS_INFO_MINIMUM_FOCUS_DISTANCE;
field public static final android.hardware.camera2.CameraCharacteristics.Key NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES;
field public static final android.hardware.camera2.CameraCharacteristics.Key REQUEST_AVAILABLE_CAPABILITIES;
- field public static final android.hardware.camera2.CameraCharacteristics.Key REQUEST_MAX_NUM_INPUT_STREAMS;
field public static final android.hardware.camera2.CameraCharacteristics.Key REQUEST_MAX_NUM_OUTPUT_PROC;
field public static final android.hardware.camera2.CameraCharacteristics.Key REQUEST_MAX_NUM_OUTPUT_PROC_STALLING;
field public static final android.hardware.camera2.CameraCharacteristics.Key REQUEST_MAX_NUM_OUTPUT_RAW;
@@ -12371,7 +12370,6 @@ package android.hardware.camera2 {
field public static final int REQUEST_AVAILABLE_CAPABILITIES_DNG = 5; // 0x5
field public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING = 3; // 0x3
field public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR = 2; // 0x2
- field public static final int REQUEST_AVAILABLE_CAPABILITIES_ZSL = 4; // 0x4
field public static final int SCALER_CROPPING_TYPE_CENTER_ONLY = 0; // 0x0
field public static final int SCALER_CROPPING_TYPE_FREEFORM = 1; // 0x1
field public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR = 3; // 0x3
diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java
index 222374a..08cfc87 100644
--- a/core/java/android/hardware/camera2/CameraCharacteristics.java
+++ b/core/java/android/hardware/camera2/CameraCharacteristics.java
@@ -751,6 +751,7 @@ public final class CameraCharacteristics extends CameraMetadataFor example, for Zero Shutter Lag (ZSL) still capture use case, the input
* stream image format will be RAW_OPAQUE, the associated output stream image format
* should be JPEG.
+ * @hide
*/
public static final Key REQUEST_MAX_NUM_INPUT_STREAMS =
new Key("android.request.maxNumInputStreams", int.class);
@@ -974,7 +975,7 @@ public final class CameraCharacteristics extends CameraMetadataThe mapping of image formats that are supported by this
* camera device for input streams, to their corresponding output formats.
* All camera devices with at least 1
- * {@link CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS android.request.maxNumInputStreams} will have at least one
+ * android.request.maxNumInputStreams will have at least one
* available input format.
* The camera device will support the following map of formats,
* if its dependent capability is supported:
@@ -1021,8 +1022,6 @@ public final class CameraCharacteristics extends CameraMetadataAttempting to configure an input stream with output streams not
* listed as available in this map is not valid.
* TODO: typedef to ReprocessFormatMap
- *
- * @see CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS
* @hide
*/
public static final Key SCALER_AVAILABLE_INPUT_OUTPUT_FORMATS_MAP =
diff --git a/core/java/android/hardware/camera2/CameraMetadata.java b/core/java/android/hardware/camera2/CameraMetadata.java
index b3e165e..94a5a79 100644
--- a/core/java/android/hardware/camera2/CameraMetadata.java
+++ b/core/java/android/hardware/camera2/CameraMetadata.java
@@ -340,6 +340,7 @@ public abstract class CameraMetadata {
* (both input/output) will match the maximum available
* resolution of JPEG streams.
*
+ * @hide this, TODO: remove it when input related APIs are ready.
* @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
*/
public static final int REQUEST_AVAILABLE_CAPABILITIES_ZSL = 4;
--
cgit v1.1