Share via


OutputConfiguration.ReadoutTimestampEnabled Property

Definition

Whether readout timestamp is used for this OutputConfiguration. -or- Use the camera sensor's readout time for the image timestamp.

public bool ReadoutTimestampEnabled { [Android.Runtime.Register("isReadoutTimestampEnabled", "()Z", "", ApiSince=34)] get; [Android.Runtime.Register("setReadoutTimestampEnabled", "(Z)V", "", ApiSince=34)] set; }
[<get: Android.Runtime.Register("isReadoutTimestampEnabled", "()Z", "", ApiSince=34)>]
[<set: Android.Runtime.Register("setReadoutTimestampEnabled", "(Z)V", "", ApiSince=34)>]
member this.ReadoutTimestampEnabled : bool with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Whether readout timestamp is used for this OutputConfiguration.

Java documentation for android.hardware.camera2.params.OutputConfiguration.isReadoutTimestampEnabled().

Property setter documentation:

Use the camera sensor's readout time for the image timestamp.

The start of the camera sensor readout after exposure. For a rolling shutter camera sensor, the timestamp is typically equal to (the start of exposure time) + (exposure time) + (certain fixed offset). The fixed offset can vary per session, depending on the underlying sensor configuration. The benefit of using readout time is that when camera runs in a fixed frame rate, the timestamp intervals between frames are constant.

Readout timestamp is supported only if CameraCharacteristics#SENSOR_READOUT_TIMESTAMP is CameraMetadata#SENSOR_READOUT_TIMESTAMP_HARDWARE.

As long as readout timestamp is supported, if the timestamp base is #TIMESTAMP_BASE_CHOREOGRAPHER_SYNCED, or if the timestamp base is DEFAULT for a SurfaceView output, the image timestamps for the output are always readout time regardless of whether this function is called.

Java documentation for android.hardware.camera2.params.OutputConfiguration.setReadoutTimestampEnabled(boolean).

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