Esempio n. 1
0
    def handle_update_frames(self, min_frame, max_frame):
        if not self.space_asset:
            return

        # If the current frame was in this set, re-seek to it
        speed = self.uimgr.get_playback_speed()

        if speed.numerator:
            return

        time = self.uimgr.get_presentation_time()
        frame = process.get_time_frame(self.space_asset.space.video_format.frame_rate, time)

        if frame >= min_frame and frame <= max_frame:
            self.uimgr.seek(process.get_frame_time(self.space_asset.space.video_format.frame_rate, int(frame)))
Esempio n. 2
0
    def _update_clock_frame(self, time=None):
        if not time:
            time = self.uimgr.get_presentation_time()

        frame = process.get_time_frame(self.scene().frame_rate, time)
        self._set_clock_frame(frame)
Esempio n. 3
0
 def update_current_frame(self):
     self.updating = True
     frame = process.get_time_frame(self.frame_rate, clock.get_presentation_time())
     self.frame_scale.set_value(frame)
     self.updating = False
     return True