diff options
author | Théo de la Hogue | 2024-04-22 15:04:21 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-04-22 15:04:21 +0200 |
commit | 81e6bbf2e4b4c9ba93690dc0989cbf5686243b03 (patch) | |
tree | 841cf746045ebdb277b1066a5480cfb4b3e4cc1f /src | |
parent | f00b742b715ab665b9c83429e07492fb95f17eda (diff) | |
download | argaze-81e6bbf2e4b4c9ba93690dc0989cbf5686243b03.zip argaze-81e6bbf2e4b4c9ba93690dc0989cbf5686243b03.tar.gz argaze-81e6bbf2e4b4c9ba93690dc0989cbf5686243b03.tar.bz2 argaze-81e6bbf2e4b4c9ba93690dc0989cbf5686243b03.tar.xz |
Fixing bug in Tobii post processing context: it was skipping half of pictures.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/utils/contexts/TobiiProGlasses2.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/argaze/utils/contexts/TobiiProGlasses2.py b/src/argaze/utils/contexts/TobiiProGlasses2.py index 92aba0f..340dbd8 100644 --- a/src/argaze/utils/contexts/TobiiProGlasses2.py +++ b/src/argaze/utils/contexts/TobiiProGlasses2.py @@ -1394,22 +1394,25 @@ class PostProcessing(ArFeatures.ArContext): self.__vts_offset = 0 self.__vts_ts = -1 + self.__video_ts, self.__video_image = self.__next_video_image() + return self def __next__(self): data_list = [] - video_ts, image = self.__next_video_image() + next_video_ts, next_video_image = self.__next_video_image() next_data_ts, next_data_object, next_data_object_type = self.__next_data() while next_data_ts < next_video_ts: + data_list.append((next_data_ts, next_data_object, next_data_object_type)) next_data_ts, next_data_object, next_data_object_type = self.__next_data() - output = video_ts, image, data_list + output = self.__video_ts, self.__video_image, data_list - video_ts, video_image = next_video_ts, next_video_image + self.__video_ts, self.__video_image = next_video_ts, next_video_image return output |