MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ recalculate_frame_duration()

void MayaFlux::Vruta::FrameClock::recalculate_frame_duration ( )
private

Recalculate frame duration when target FPS changes.

Definition at line 171 of file Clock.cpp.

172{
173 double ns_per_frame = 1'000'000'000.0 / m_target_fps;
174 m_frame_duration = std::chrono::nanoseconds(static_cast<uint64_t>(ns_per_frame));
175}
std::chrono::nanoseconds m_frame_duration
Definition Clock.hpp:276

References m_frame_duration, and m_target_fps.

Referenced by FrameClock(), and set_target_fps().

+ Here is the caller graph for this function: