From 252b7958bb378489fcb32f8776ccfb5268b8c158 Mon Sep 17 00:00:00 2001 From: Shuzhen Wang Date: Fri, 25 Jun 2021 15:08:39 -0700 Subject: [PATCH] Camera: Improve logical camera RAW capture docs - Clarify raw capture behavior for logical camera with backward compatible approach and MultiResolutionImageReader. - Some logical camera devices may have identical physical cameras with different focal length. Allow such logical camera to switch physical cameras when outputing raw. Bug: 182217158 Test: Build Change-Id: I64458683f4eb8be6fc1e35270a8c22864d962be9 --- .../hardware/camera2/CameraMetadata.java | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/core/java/android/hardware/camera2/CameraMetadata.java b/core/java/android/hardware/camera2/CameraMetadata.java index 9501994fe38a1..d9fa56e1cbaac 100644 --- a/core/java/android/hardware/camera2/CameraMetadata.java +++ b/core/java/android/hardware/camera2/CameraMetadata.java @@ -991,13 +991,27 @@ public abstract class CameraMetadata { * camera's crop region is set to maximum size, the FOV of the physical streams for the * ultrawide lens will be the same as the logical stream, by making the crop region * smaller than its active array size to compensate for the smaller focal length.

- *

Even if the underlying physical cameras have different RAW characteristics (such as - * size or CFA pattern), a logical camera can still advertise RAW capability. In this - * case, when the application configures a RAW stream, the camera device will make sure - * the active physical camera will remain active to ensure consistent RAW output - * behavior, and not switch to other physical cameras.

+ *

There are two ways for the application to capture RAW images from a logical camera + * with RAW capability:

+ * *

The capture request and result metadata tags required for backward compatible camera - * functionalities will be solely based on the logical camera capabiltity. On the other + * functionalities will be solely based on the logical camera capability. On the other * hand, the use of manual capture controls (sensor or post-processing) with a * logical camera may result in unexpected behavior when the HAL decides to switch * between physical cameras with different characteristics under the hood. For example,