ASurfaceTexture_getTimestamp

Retrieve the timestamp associated with the texture image set by the most recent call to updateTexImage.

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.

For EGL/Vulkan producers, this timestamp is the desired present time set with the EGL_ANDROID_presentation_time or VK_GOOGLE_display_timing extensions

\param st A ASurfaceTexture reference acquired with ASurfaceTexture_fromSurfaceTexture()

version(Android)
extern (C) @system nothrow @nogc
long
ASurfaceTexture_getTimestamp

Meta