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

Method clampToTimelineRange

src/Qt/VideoCacheThread.cpp:372–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370 }
371
372 int64_t VideoCacheThread::clampToTimelineRange(int64_t frame, int64_t timeline_end) const
373 {
374 if (timeline_end < 1) {
375 return frame;
376 }
377 return std::clamp<int64_t>(frame, 1, timeline_end);
378 }
379
380 bool VideoCacheThread::clearCacheIfPaused(int64_t playhead,
381 bool paused,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected