(self)
| 482 | |
| 483 | @property |
| 484 | def position(self) -> FrameTimecode: |
| 485 | if self.frame_number < 1: |
| 486 | return self.base_timecode |
| 487 | # Synthesize a Timecode from frame count and rational framerate. |
| 488 | fps = self.frame_rate |
| 489 | time_base = Fraction(1, fps.numerator) |
| 490 | pts = (self.frame_number - 1) * fps.denominator |
| 491 | timecode = Timecode(pts=pts, time_base=time_base) |
| 492 | return FrameTimecode(timecode=timecode, fps=fps) |
| 493 | |
| 494 | @property |
| 495 | def position_ms(self) -> float: |
nothing calls this directly
no test coverage detected