MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / GetMinFrame

Method GetMinFrame

src/Timeline.cpp:487–492  ·  view source on GitHub ↗

Compute the first frame# based on the first clip position

Source from the content-addressed store, hash-verified

485
486// Compute the first frame# based on the first clip position
487int64_t Timeline::GetMinFrame() {
488 const double fps = info.fps.ToDouble();
489 const double t = GetMinTime();
490 // Inclusive start -> floor at the start boundary, then 1-index
491 return static_cast<int64_t>(std::floor(t * fps)) + 1;
492}
493
494// Compute the start time of the first timeline clip
495double Timeline::GetMinTime() {

Callers 1

Timeline.cppFile · 0.80

Calls 1

ToDoubleMethod · 0.80

Tested by

no test coverage detected