MayaFlux 0.3.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 172 of file Clock.cpp.

173{
174 double ns_per_frame = 1'000'000'000.0 / m_target_fps;
175 m_frame_duration = std::chrono::nanoseconds(static_cast<uint64_t>(ns_per_frame));
176}
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: