Compute the highest frame# based on the latest time and FPS
| 477 | |
| 478 | // Compute the highest frame# based on the latest time and FPS |
| 479 | int64_t Timeline::GetMaxFrame() { |
| 480 | const double fps = info.fps.ToDouble(); |
| 481 | const double t = GetMaxTime(); |
| 482 | // Inclusive start, exclusive end -> ceil at the end boundary |
| 483 | return static_cast<int64_t>(std::ceil(t * fps)); |
| 484 | } |
| 485 | |
| 486 | // Compute the first frame# based on the first clip position |
| 487 | int64_t Timeline::GetMinFrame() { |
no test coverage detected