DavidGillsjo / VideoIMUCapture-Android

Android application for capture of Video, IMU data and Camera data useful in SLAM and Structure from Motion research. Differs between Optical Image Stabilization (OIS) and Digital Video Stabilization (DVS) and can provide OIS data if the device supports it.
GNU General Public License v3.0
242 stars 44 forks source link

Add display SENSOR_INFO_TIMESTAMP_SOURCE info #18

Open neophack opened 1 year ago

neophack commented 1 year ago

SENSOR_INFO_TIMESTAMP_SOURCE Added in API level 21

public static final Key<Integer> SENSOR_INFO_TIMESTAMP_SOURCE The time base source for sensor capture start timestamps.

The timestamps provided for captures are always in nanoseconds and monotonic, but may not based on a time source that can be compared to other system time sources.

This characteristic defines the source for the timestamps, and therefore whether they can be compared against other system time sources/timestamps.

Possible values:

UNKNOWN REALTIME This key is available on all devices.

See also:

CameraMetadata.SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN CameraMetadata.SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME

DavidGillsjo commented 1 year ago

Thanks for the pull request! As far as I know this information is already included in the protobuf as timestamp_source

I'm not sure that this information needs to be available during recording, but I'll try it out. Thanks again!