From 161a76cae423dfa3f11571e07054ce2312c9ee54 Mon Sep 17 00:00:00 2001 From: Chien-Yu Chen Date: Fri, 26 Jun 2015 11:23:55 -0700 Subject: Camera2: Remove references to sync.frameNumber sync.frameNumber is a hidden key. Bug: 21957397 Change-Id: I3b235d776782a8441354ee24c9174ae30e074a61 --- .../hardware/camera2/CameraCharacteristics.java | 28 +++------------------- .../android/hardware/camera2/CameraMetadata.java | 2 -- 2 files changed, 3 insertions(+), 27 deletions(-) (limited to 'core/java/android/hardware') diff --git a/core/java/android/hardware/camera2/CameraCharacteristics.java b/core/java/android/hardware/camera2/CameraCharacteristics.java index 27d14b3..f408dd0 100644 --- a/core/java/android/hardware/camera2/CameraCharacteristics.java +++ b/core/java/android/hardware/camera2/CameraCharacteristics.java @@ -2752,35 +2752,13 @@ public final class CameraCharacteristics extends CameraMetadataThe maximum number of frames that can occur after a request * (different than the previous) has been submitted, and before the - * result's state becomes synchronized (by setting - * android.sync.frameNumber to a non-negative value).

+ * result's state becomes synchronized.

*

This defines the maximum distance (in number of metadata results), - * between android.sync.frameNumber and the equivalent - * frame number for that result.

+ * between the frame number of the request that has new controls to apply + * and the frame number of the result that has all the controls applied.

*

In other words this acts as an upper boundary for how many frames * must occur before the camera device knows for a fact that the new * submitted camera settings have been applied in outgoing frames.

- *

For example if the distance was 2,

- *
initial request = X (repeating)
-     * request1 = X
-     * request2 = Y
-     * request3 = Y
-     * request4 = Y
-     *
-     * where requestN has frameNumber N, and the first of the repeating
-     * initial request's has frameNumber F (and F < 1).
-     *
-     * initial result = X' + { android.sync.frameNumber == F }
-     * result1 = X' + { android.sync.frameNumber == F }
-     * result2 = X' + { android.sync.frameNumber == CONVERGING }
-     * result3 = X' + { android.sync.frameNumber == CONVERGING }
-     * result4 = X' + { android.sync.frameNumber == 2 }
-     *
-     * where resultN has frameNumber N.
-     * 
- *

Since result4 has a frameNumber == 4 and - * android.sync.frameNumber == 2, the distance is clearly - * 4 - 2 = 2.

*

Units: Frame counts

*

Possible values: *