MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / renderFromCurrentFrame

Method renderFromCurrentFrame

Engine/OutputSchedulerThread.cpp:1847–1866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845}
1846
1847void
1848OutputSchedulerThread::renderFromCurrentFrame(bool enableRenderStats,
1849 const std::vector<ViewIdx>& viewsToRender,
1850 RenderDirectionEnum timelineDirection)
1851{
1852 {
1853 QMutexLocker k(&_imp->lastRunArgsMutex);
1854 _imp->lastPlaybackRenderDirection = timelineDirection;
1855 _imp->lastPlaybackViewsToRender = viewsToRender;
1856 }
1857 int firstFrame, lastFrame;
1858
1859 getFrameRangeToRender(firstFrame, lastFrame);
1860
1861 ///Make sure current frame is in the frame range
1862 int currentTime = timelineGetTime();
1863 OutputSchedulerThreadPrivate::getNearestInSequence(timelineDirection, currentTime, firstFrame, lastFrame, &currentTime);
1864 OutputSchedulerThreadStartArgsPtr args = std::make_shared<OutputSchedulerThreadStartArgs>(false, enableRenderStats, firstFrame, lastFrame, 1, viewsToRender, timelineDirection);
1865 startTask(args);
1866}
1867
1868void
1869OutputSchedulerThread::notifyRenderFailure(const std::string& errorMessage)

Callers 3

startPauseMethod · 0.80
startBackwardMethod · 0.80

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected