Sdílet prostřednictvím


OutputConfiguration.TimestampBaseChoreographerSynced Field

Definition

Caution

This constant will be removed in the future version. Use Android.Hardware.Camera2.Params.TimestampBase enum directly instead of this field.

Timestamp is synchronized to choreographer.

[Android.Runtime.Register("TIMESTAMP_BASE_CHOREOGRAPHER_SYNCED", ApiSince=33)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.Camera2.Params.TimestampBase enum directly instead of this field.", true)]
public const Android.Hardware.Camera2.Params.TimestampBase TimestampBaseChoreographerSynced = 4;
[<Android.Runtime.Register("TIMESTAMP_BASE_CHOREOGRAPHER_SYNCED", ApiSince=33)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.Camera2.Params.TimestampBase enum directly instead of this field.", true)>]
val mutable TimestampBaseChoreographerSynced : Android.Hardware.Camera2.Params.TimestampBase

Field Value

Value = 4

Implements

Attributes

Remarks

Timestamp is synchronized to choreographer.

The timestamp of the output images are overridden with choreographer pulses from the display subsystem for smoother display of camera frames. An output target of SurfaceView uses this time base by default. Note that the timestamp override is done for fixed camera frame rate only.

This timestamp base isn't applicable to SurfaceTexture targets. SurfaceTexture's android.graphics.SurfaceTexture#updateTexImage updateTexImage function always uses the latest image from the camera stream. In the case of a TextureView, the image is displayed right away.

Timestamps with this time base cannot directly match the timestamps in CameraCaptureSession.CaptureCallback#onCaptureStarted, CameraCaptureSession.CaptureCallback#onReadoutStarted, or the sensor timestamps in android.hardware.camera2.CaptureResult. This timestamp base shouldn't be used if the timestamp needs to be used for audio-video synchronization.

Java documentation for android.hardware.camera2.params.OutputConfiguration.TIMESTAMP_BASE_CHOREOGRAPHER_SYNCED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to