The time base in which presentation time is calculated.
(self)
| 300 | |
| 301 | @property |
| 302 | def time_base(self) -> Fraction: |
| 303 | """The time base in which presentation time is calculated.""" |
| 304 | if isinstance(self._time, Timecode): |
| 305 | return self._time.time_base |
| 306 | # `_FrameNumber` / `_Seconds` are only assigned after `_rate` is set. |
| 307 | assert self._rate is not None |
| 308 | return 1 / self._rate |
| 309 | |
| 310 | @property |
| 311 | def pts(self) -> int: |
nothing calls this directly
no outgoing calls
no test coverage detected