MCPcopy Create free account
hub / github.com/IENT/YUView / currentSelectedItemsDoubleBufferLoad

Method currentSelectedItemsDoubleBufferLoad

YUViewLib/src/ui/PlaybackController.cpp:633–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633void PlaybackController::currentSelectedItemsDoubleBufferLoad(int itemID)
634{
635 assert(itemID == 0 || itemID == 1);
636 if (this->playbackMode == PlaybackMode::Stalled)
637 {
638 this->waitingForItem[itemID] = false;
639 if (!this->waitingForItem[0] && !this->waitingForItem[1])
640 {
641 DEBUG_PLAYBACK(
642 "PlaybackController::currentSelectedItemsDoubleBufferLoad - timer interval %dms",
643 this->timerInterval.count());
644 this->timer.start(this->timerInterval.count(), Qt::PreciseTimer, this);
645 this->timerEvent(nullptr);
646 this->playbackMode = PlaybackMode::Running;
647 }
648 }
649}
650
651bool PlaybackController::setCurrentFrameAndUpdate(int frame, bool updateView)
652{

Callers

nothing calls this directly

Calls 1

timerEventMethod · 0.95

Tested by

no test coverage detected