diff options
author | Chien-Yu Chen <cychen@google.com> | 2015-06-26 11:23:55 -0700 |
---|---|---|
committer | Chien-Yu Chen <cychen@google.com> | 2015-06-26 11:23:55 -0700 |
commit | 161a76cae423dfa3f11571e07054ce2312c9ee54 (patch) | |
tree | aaa44951e93ae4217c01fa3d8c747866e09c749b /core/java/android/hardware | |
parent | b0a8d2c4aecb6dfe5f7a95f56ca739fbea6301e5 (diff) | |
download | frameworks_base-161a76cae423dfa3f11571e07054ce2312c9ee54.zip frameworks_base-161a76cae423dfa3f11571e07054ce2312c9ee54.tar.gz frameworks_base-161a76cae423dfa3f11571e07054ce2312c9ee54.tar.bz2 |
Camera2: Remove references to sync.frameNumber
sync.frameNumber is a hidden key.
Bug: 21957397
Change-Id: I3b235d776782a8441354ee24c9174ae30e074a61
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r-- | core/java/android/hardware/camera2/CameraCharacteristics.java | 28 | ||||
-rw-r--r-- | core/java/android/hardware/camera2/CameraMetadata.java | 2 |
2 files changed, 3 insertions, 27 deletions
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 CameraMetadata<CameraCharacteri /** * <p>The 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).</p> + * result's state becomes synchronized.</p> * <p>This defines the maximum distance (in number of metadata results), - * between android.sync.frameNumber and the equivalent - * frame number for that result.</p> + * 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.</p> * <p>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.</p> - * <p>For example if the distance was 2,</p> - * <pre><code>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. - * </code></pre> - * <p>Since <code>result4</code> has a <code>frameNumber == 4</code> and - * <code>android.sync.frameNumber == 2</code>, the distance is clearly - * <code>4 - 2 = 2</code>.</p> * <p><b>Units</b>: Frame counts</p> * <p><b>Possible values:</b> * <ul> diff --git a/core/java/android/hardware/camera2/CameraMetadata.java b/core/java/android/hardware/camera2/CameraMetadata.java index f8db6d9..a32686c 100644 --- a/core/java/android/hardware/camera2/CameraMetadata.java +++ b/core/java/android/hardware/camera2/CameraMetadata.java @@ -967,8 +967,6 @@ public abstract class CameraMetadata<TKey> { /** * <p>Every frame has the requests immediately applied.</p> - * <p>Furthermore for all results, - * <code>android.sync.frameNumber == {@link android.hardware.camera2.CaptureResult#getFrameNumber }</code></p> * <p>Changing controls over multiple requests one after another will * produce results that have those controls applied atomically * each frame.</p> |