Rational framerates should round-trip frame/second conversions without drift.
()
| 363 | |
| 364 | |
| 365 | def test_rational_framerate_precision(): |
| 366 | """Rational framerates should round-trip frame/second conversions without drift.""" |
| 367 | fps = Fraction(24000, 1001) |
| 368 | # Verify that frame_num round-trips through seconds without drift over many frames. |
| 369 | for frame in [0, 1, 100, 1000, 10000, 100000]: |
| 370 | tc = FrameTimecode(frame, fps) |
| 371 | assert tc.frame_num == frame, f"Frame {frame} drifted to {tc.frame_num}" |
| 372 | |
| 373 | |
| 374 | def test_ntsc_framerate_detection(): |
nothing calls this directly
no test coverage detected