diff options
-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 |