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

Method computePrerollFrames

src/Qt/VideoCacheThread.cpp:341–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339 }
340
341 int64_t VideoCacheThread::computePrerollFrames(const Settings* settings) const
342 {
343 if (!settings) {
344 return 0;
345 }
346 int64_t min_frames = settings->VIDEO_CACHE_MIN_PREROLL_FRAMES;
347 int64_t max_frames = settings->VIDEO_CACHE_MAX_PREROLL_FRAMES;
348 if (min_frames < 0) {
349 return 0;
350 }
351 if (max_frames > 0 && min_frames > max_frames) {
352 min_frames = max_frames;
353 }
354 return min_frames;
355 }
356
357 int64_t VideoCacheThread::resolveTimelineEnd() const
358 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected