summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/current.txt1
-rw-r--r--core/java/android/hardware/camera2/CameraCharacteristics.java16
2 files changed, 17 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index b7902e9..1c3bd6b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -11211,6 +11211,7 @@ package android.hardware.camera2 {
field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_MINIMUM_FOCUS_DISTANCE;
field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_SHADING_MAP_SIZE;
field public static final android.hardware.camera2.CameraMetadata.Key REQUEST_MAX_NUM_OUTPUT_STREAMS;
+ field public static final android.hardware.camera2.CameraMetadata.Key REQUEST_PARTIAL_RESULT_COUNT;
field public static final android.hardware.camera2.CameraMetadata.Key REQUEST_PIPELINE_MAX_DEPTH;
field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_FORMATS;
field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_JPEG_MIN_DURATIONS;
diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java
index ac7f4cb..d7bacfe 100644
--- a/core/java/android/hardware/camera2/CameraCharacteristics.java
+++ b/core/java/android/hardware/camera2/CameraCharacteristics.java
@@ -417,6 +417,22 @@ public final class CameraCharacteristics extends CameraMetadata {
new Key<Byte>("android.request.pipelineMaxDepth", byte.class);
/**
+ * <p>Optional. Defaults to 1. Defines how many sub-components
+ * a result will be composed of.</p>
+ * <p>In order to combat the pipeline latency, partial results
+ * may be delivered to the application layer from the camera device as
+ * soon as they are available.</p>
+ * <p>A value of 1 means that partial results are not supported.</p>
+ * <p>A typical use case for this might be: after requesting an AF lock the
+ * new AF state might be available 50% of the way through the pipeline.
+ * The camera device could then immediately dispatch this state via a
+ * partial result to the framework/application layer, and the rest of
+ * the metadata via later partial results.</p>
+ */
+ public static final Key<Integer> REQUEST_PARTIAL_RESULT_COUNT =
+ new Key<Integer>("android.request.partialResultCount", int.class);
+
+ /**
* <p>The list of image formats that are supported by this
* camera device.</p>
* <p>All camera devices will support JPEG and YUV_420_888 formats.</p>