From f8a2f575900c527ce3fc73076fa88453a51017d0 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Wed, 24 Jun 2015 15:36:38 -0700 Subject: [PATCH] Camera2: Add clarification about simultaneous trigger use Allow triggers to be activated at the same time, and specify allowed behaviors. Bug: 21399067 Change-Id: Ia4b06dbdffabe9c1b85907b13022142ffd00caa4 --- .../hardware/camera2/CaptureRequest.java | 17 +++++++++++++++++ .../android/hardware/camera2/CaptureResult.java | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/core/java/android/hardware/camera2/CaptureRequest.java b/core/java/android/hardware/camera2/CaptureRequest.java index 75289f762162a..33cc962bd1b05 100644 --- a/core/java/android/hardware/camera2/CaptureRequest.java +++ b/core/java/android/hardware/camera2/CaptureRequest.java @@ -1062,6 +1062,15 @@ public final class CaptureRequest extends CameraMetadata> * capturing a high-resolution JPEG image will automatically trigger a * precapture sequence before the high-resolution capture, including * potentially firing a pre-capture flash.

+ *

Using the precapture trigger and the auto-focus trigger {@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger} + * simultaneously is allowed. However, since these triggers often require cooperation between + * the auto-focus and auto-exposure routines (for example, the may need to be enabled for a + * focus sweep), the camera device may delay acting on a later trigger until the previous + * trigger has been fully handled. This may lead to longer intervals between the trigger and + * changes to {@link CaptureResult#CONTROL_AE_STATE android.control.aeState} indicating the start of the precapture sequence, for + * example.

+ *

If both the precapture and the auto-focus trigger are activated on the same request, then + * the camera device will complete them in the optimal order for that device.

*

Possible values: *