aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-03-28 18:16:01 +0200
committerThéo de la Hogue2022-03-28 18:16:01 +0200
commit5f2eb6ba93328231f45b3f7bcf127ccf34851a0c (patch)
tree9ba36d6afdc71749ca7920a317b7f8a11acca79b /src
parentc637a4c2a33ba4c1d47cf05b78cc9af518c59e85 (diff)
downloadargaze-5f2eb6ba93328231f45b3f7bcf127ccf34851a0c.zip
argaze-5f2eb6ba93328231f45b3f7bcf127ccf34851a0c.tar.gz
argaze-5f2eb6ba93328231f45b3f7bcf127ccf34851a0c.tar.bz2
argaze-5f2eb6ba93328231f45b3f7bcf127ccf34851a0c.tar.xz
Using micro second for video timestamps
Diffstat (limited to 'src')
-rw-r--r--src/argaze/TobiiGlassesPro2/TobiiEntities.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze/TobiiGlassesPro2/TobiiEntities.py b/src/argaze/TobiiGlassesPro2/TobiiEntities.py
index 475661d..6df599e 100644
--- a/src/argaze/TobiiGlassesPro2/TobiiEntities.py
+++ b/src/argaze/TobiiGlassesPro2/TobiiEntities.py
@@ -130,7 +130,7 @@ class TobiiSegmentVideo():
def __next__(self):
frame = self.__container.decode(self.__stream).__next__()
- return frame.time, TobiiVideoFrame(frame.to_ndarray(format='bgr24'), frame.width, frame.height, frame.pts)
+ return frame.time * 1000000, TobiiVideoFrame(frame.to_ndarray(format='bgr24'), frame.width, frame.height, frame.pts) # use micro second
class TobiiSegment:
"""Handle Tobii Glasses Pro 2 segment info."""