MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / get_callback_func

Method get_callback_func

tests/test_scene_manager.py:96–103  ·  view source on GitHub ↗

For testing using a callback function.

(self)

Source from the content-addressed store, hash-verified

94 return lambda image, frame_num: self._callback(image, frame_num)
95
96 def get_callback_func(self):
97 """For testing using a callback function."""
98
99 def callback(image, frame_num):
100 nonlocal self
101 self._callback(image, frame_num)
102
103 return callback
104
105 def _callback(self, image, frame_num):
106 self.scene_list.append(frame_num)

Calls

no outgoing calls

Tested by

no test coverage detected