MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / equal_framerate

Method equal_framerate

scenedetect/common.py:365–369  ·  view source on GitHub ↗

[DEPRECATED] Use :meth:`equal_frame_rate` instead.

(self, fps)

Source from the content-addressed store, hash-verified

363 return math.fabs(float(self.frame_rate) - float(other)) < MAX_FPS_DELTA
364
365 def equal_framerate(self, fps) -> bool:
366 """[DEPRECATED] Use :meth:`equal_frame_rate` instead."""
367 # TODO(https://scenedetect.com/issue/548): emit DeprecationWarning here once internal
368 # callers and downstream users have had a release to migrate to `equal_frame_rate`.
369 return self.equal_frame_rate(fps)
370
371 @property
372 def seconds(self) -> float:

Callers 1

Calls 1

equal_frame_rateMethod · 0.95

Tested by 1