Sdílet prostřednictvím


OutputConfiguration.TimestampBaseRealtime 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 base roughly the same as android.os.SystemClock#elapsedRealtime.

[Android.Runtime.Register("TIMESTAMP_BASE_REALTIME", 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 TimestampBaseRealtime = 3;
[<Android.Runtime.Register("TIMESTAMP_BASE_REALTIME", 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 TimestampBaseRealtime : Android.Hardware.Camera2.Params.TimestampBase

Field Value

Value = 3

Implements

Attributes

Remarks

Timestamp base roughly the same as android.os.SystemClock#elapsedRealtime.

The timestamps of the output images are roughly in the same time base as android.os.SystemClock#elapsedRealtime. The timestamps with this time base cannot be directly used for audio-video sync in video recording.

If the camera device's CameraCharacteristics#SENSOR_INFO_TIMESTAMP_SOURCE is UNKNOWN, 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.

If using a REALTIME timestamp base on a device that supports only TIMESTAMP_SOURCE_UNKNOWN, the accuracy of timestamps is only what is guaranteed in the documentation for UNKNOWN. In particular, they have no guarantees about being accurate enough to use in fusing image data with the output of inertial sensors, for features such as image stabilization or augmented reality.

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

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