summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-07-01 15:02:33 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-07-01 15:02:33 -0700
commit03f9435273df3c8d6f342adfc391844a18535adf (patch)
tree31d7f43b759f6e80e99f306153f08189b99f483d /graphics
parent02cc72c10072970bfa0735759b2c043626f319db (diff)
parent5c2faf3dc310b100707eb9e32e1e5ae8ceffd0c6 (diff)
downloadframeworks_base-03f9435273df3c8d6f342adfc391844a18535adf.zip
frameworks_base-03f9435273df3c8d6f342adfc391844a18535adf.tar.gz
frameworks_base-03f9435273df3c8d6f342adfc391844a18535adf.tar.bz2
Merge "Bug 4571308 Provide correct video frame timestamps"
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/SurfaceTexture.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/SurfaceTexture.java b/graphics/java/android/graphics/SurfaceTexture.java
index 90a7ac2..1647ff34 100644
--- a/graphics/java/android/graphics/SurfaceTexture.java
+++ b/graphics/java/android/graphics/SurfaceTexture.java
@@ -174,12 +174,15 @@ public class SurfaceTexture {
* Retrieve the timestamp associated with the texture image set by the most recent call to
* updateTexImage.
*
- * This timestamp is in nanoseconds, and is guaranteed to be monotonically increasing. The
+ * This timestamp is in nanoseconds, and is normally monotonically increasing. The timestamp
+ * should be unaffected by time-of-day adjustments, and for a camera should be strictly
+ * monotonic but for a MediaPlayer may be reset when the position is set. The
* specific meaning and zero point of the timestamp depends on the source providing images to
* the SurfaceTexture. Unless otherwise specified by the image source, timestamps cannot
* generally be compared across SurfaceTexture instances, or across multiple program
* invocations. It is mostly useful for determining time offsets between subsequent frames.
*/
+
public long getTimestamp() {
return nativeGetTimestamp();
}