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

Method getNextKeyframe

Engine/TrackMarker.cpp:588–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588int
589TrackMarker::getNextKeyframe( int time) const
590{
591 QMutexLocker k(&_imp->trackMutex);
592
593 for (std::set<int>::const_iterator it = _imp->userKeyframes.begin(); it != _imp->userKeyframes.end(); ++it) {
594 if (*it > time) {
595 return *it;
596 }
597 }
598
599 return std::numeric_limits<int>::max();
600}
601
602void
603TrackMarker::getUserKeyframes(std::set<int>* keyframes) const

Callers 1

goToNextKeyFrameMethod · 0.80

Calls 3

maxFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected