CameraCharacteristics.SensorReadoutTimestamp Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A key indicating support for sensor readout timestamps and the readout-started callback.
[Android.Runtime.Register("SENSOR_READOUT_TIMESTAMP", ApiSince=34)]
public static Android.Hardware.Camera2.CameraCharacteristics.Key SensorReadoutTimestamp { get; }
[<Android.Runtime.Register("SENSOR_READOUT_TIMESTAMP", ApiSince=34)>]
static member SensorReadoutTimestamp : Android.Hardware.Camera2.CameraCharacteristics.Key
Property Value
A key indicating support for sensor readout timestamps and the readout-started callback.
- Attributes
Remarks
Whether or not the camera device supports readout timestamps and the OnReadoutStarted(CameraCaptureSession, CaptureRequest, Int64, Int64) callback.
If this tag is HARDWARE, the camera device calls OnReadoutStarted(CameraCaptureSession, CaptureRequest, Int64, Int64) in addition to OnCaptureStarted(CameraCaptureSession, CaptureRequest, Int64, Int64) for each capture. The timestamp passed into the callback is the start of camera image readout rather than the start of the exposure. Both callbacks use the same timestamp source.
In addition, the application can switch an output surface's timestamp from start of exposure to start of readout by setting ReadoutTimestampEnabled.
The readout timestamp is beneficial for video recording, because the encoder favors uniform timestamps, and the readout timestamps better reflect the cadence camera sensors output data.
Note that the camera device produces the start-of-exposure and start-of-readout callbacks together. As a result, OnReadoutStarted(CameraCaptureSession, CaptureRequest, Int64, Int64) is called right after OnCaptureStarted(CameraCaptureSession, CaptureRequest, Int64, Int64). The difference in start-of-readout and start-of-exposure is the sensor exposure time, plus certain constant offset. The offset is usually due to camera sensor level crop, and it is generally constant over time for the same set of output resolutions and capture settings.
Possible values: NOT_SUPPORTED; HARDWARE
This key is available on all devices.
Android reference for android.hardware.camera2.CameraCharacteristics.SENSOR_READOUT_TIMESTAMP.
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.