示例#1
0
 def nextScenario(self):
     cur = self.cur
     clipname = "clip%d" % cur
     context = MoveContext(self.runner.timeline,
         getattr(self.runner.video1, clipname), set())
     context.snap(False)
     context.setMode(context.RIPPLE)
     self.context = context
     # this isn't a method, but an attribute that will be set by specific
     # test cases
     self.scrub_func(context, (cur + 10) * gst.SECOND, (cur % 2) + 1)
示例#2
0
 def scenarioDone(self, brush):
     cur = self.cur
     config = self.finals[cur]
     context = self.context
     context.finish()
     config.matches(self.runner)
     restore = MoveContext(self.runner.timeline, context.focus, set())
     restore.setMode(restore.RIPPLE)
     restore.editTo(cur * gst.SECOND, (cur % 2))
     restore.finish()
     self.initial.matches(self.runner)
     self.cur += 1
     if self.cur < 10:
         self.nextScenario()
     else:
         self.runner.shutDown()
示例#3
0
 def timelineConfigured(runner):
     initial.matches(self.runner)
     context = MoveContext(self.runner.timeline,
         self.runner.video1.clip1, set())
     context.setMode(context.RIPPLE)
     brush.scrub(context, 11 * gst.SECOND, 0, steps=0)