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

Method getNextKeyframe

Engine/TrackMarker.cpp:529–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529int
530TrackMarker::getNextKeyframe( int time) const
531{
532 QMutexLocker k(&_imp->trackMutex);
533
534 for (std::set<int>::const_iterator it = _imp->userKeyframes.begin(); it != _imp->userKeyframes.end(); ++it) {
535 if (*it > time) {
536 return *it;
537 }
538 }
539
540 return INT_MAX;
541}
542
543void
544TrackMarker::getUserKeyframes(std::set<int>* keyframes) const

Callers 1

goToNextKeyFrameMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected