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

Method __hash__

scenedetect/common.py:751–755  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

749 return f"{self.get_timecode()} [frame_num={self._time.value}, fps={self._rate}]"
750
751 def __hash__(self) -> int:
752 # Use frame_num for consistent hashing regardless of internal representation.
753 # This ensures that FrameTimecodes representing the same frame have the same hash,
754 # enabling proper dictionary lookups in StatsManager.
755 return self.frame_num
756
757 def _get_other_as_seconds(self, other: "TimecodeLike") -> float:
758 """Get the time in seconds from `other` for arithmetic operations."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected