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

Method getFrameRate

Engine/OfxImageEffectInstance.cpp:417–423  ·  view source on GitHub ↗

For an instance, this is the frame rate of the project the effect is in.

Source from the content-addressed store, hash-verified

415
416// For an instance, this is the frame rate of the project the effect is in.
417double
418OfxImageEffectInstance::getFrameRate() const
419{
420 assert( getOfxEffectInstance() && getOfxEffectInstance()->getApp() );
421
422 return getOfxEffectInstance()->getApp()->getProjectFrameRate();
423}
424
425/// This is called whenever a param is changed by the plugin so that
426/// the recursive instanceChangedAction will be fed the correct frame

Callers

nothing calls this directly

Calls 3

getOfxEffectInstanceFunction · 0.85
getAppMethod · 0.45
getProjectFrameRateMethod · 0.45

Tested by

no test coverage detected