From 8b1c5704cb14c7adbb127b9bdf1dd8726df92981 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Wed, 5 Feb 2014 12:16:46 +0000 Subject: [PATCH] Revert "Camera2: Update stream num tag specs" This reverts commit 67c23833f81cb27671ee9f62a87ba810d0d49989. Change-Id: I3aa2d0b245c998c57f3312e2d6f68aa72d80c338 --- .../hardware/camera2/CameraCharacteristics.java | 38 +++------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java index 913b27396a20..bb8b184d89ea 100644 --- a/core/java/android/hardware/camera2/CameraCharacteristics.java +++ b/core/java/android/hardware/camera2/CameraCharacteristics.java @@ -398,44 +398,16 @@ public final class CameraCharacteristics extends CameraMetadata { new Key("android.quirks.usePartialResult", byte.class); /** - *

The maximum numbers of different types of output streams - * that can be configured and used simultaneously by a camera device.

- *

This is a 3 element tuple that contains the max number of output simultaneous - * streams for raw sensor, processed (and uncompressed), and JPEG formats respectively. - * For example, if max raw sensor format output stream number is 1, max YUV streams - * number is 3, and max JPEG stream number is 2, then this tuple should be (1, 3, 2).

- *

This lists the upper bound of the number of output streams supported by - * the camera device. Using more streams simultaneously may require more hardware and - * CPU resources that will consume more power. The image format for a output stream can - * be any supported format provided by {@link CameraCharacteristics#SCALER_AVAILABLE_FORMATS android.scaler.availableFormats}. The formats - * defined in {@link CameraCharacteristics#SCALER_AVAILABLE_FORMATS android.scaler.availableFormats} can be catergorized into the 3 stream types - * as below:

- * - * - * @see CameraCharacteristics#SCALER_AVAILABLE_FORMATS + *

How many output streams can be allocated at + * the same time for each type of stream

+ *

Video snapshot with preview callbacks requires 3 + * processed streams (preview, record, app callbacks) and + * one JPEG stream (snapshot)

*/ public static final Key REQUEST_MAX_NUM_OUTPUT_STREAMS = new Key("android.request.maxNumOutputStreams", int[].class); /** - *

The maximum numbers of any type of input streams - * that can be configured and used simultaneously by a camera device.

- *

When set to 0, it means no input stream is supported.

- *

The image format for a input stream can be any supported format provided - * by android.scaler.availableInputFormats. When using an input stream, there must be - * at least one output stream configured to to receive the reprocessed images.

- *

For 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.

- */ - public static final Key REQUEST_MAX_NUM_INPUT_STREAMS = - new Key("android.request.maxNumInputStreams", int.class); - - /** *

Specifies the number of maximum pipeline stages a frame * has to go through from when it's exposed to when it's available * to the framework.

-- 2.11.0