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

Method getCurrentItemsFrameRate

YUViewLib/src/ui/PlaybackController.cpp:693–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693double PlaybackController::getCurrentItemsFrameRate() const
694{
695 auto frameRate = this->currentItem[0]->properties().isIndexedByFrame()
696 ? this->currentItem[0]->properties().frameRate
697 : this->currentItem[1]->properties().frameRate;
698
699 const auto lowestPossibleFps = 0.01;
700 if (frameRate < lowestPossibleFps)
701 frameRate = lowestPossibleFps;
702 return frameRate;
703}

Callers 2

startOrUpdateTimerMethod · 0.95
goToNextFrameMethod · 0.95

Calls 2

isIndexedByFrameMethod · 0.80
propertiesMethod · 0.80

Tested by

no test coverage detected