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

Method resolveTimelineEnd

src/Qt/VideoCacheThread.cpp:357–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 int64_t VideoCacheThread::resolveTimelineEnd() const
358 {
359 if (!reader) {
360 return 0;
361 }
362 int64_t timeline_end = reader->info.video_length;
363 if (auto* timeline = dynamic_cast<Timeline*>(reader)) {
364 const int64_t timeline_max = timeline->GetMaxFrame();
365 if (timeline_max > 0) {
366 timeline_end = timeline_max;
367 }
368 }
369 return timeline_end;
370 }
371
372 int64_t VideoCacheThread::clampToTimelineRange(int64_t frame, int64_t timeline_end) const
373 {

Callers

nothing calls this directly

Calls 1

GetMaxFrameMethod · 0.80

Tested by

no test coverage detected