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

◆ get_default_rate()

unsigned int MayaFlux::Vruta::TaskScheduler::get_default_rate ( ProcessingToken  token) const
private

Get the default rate for a processing token.

Parameters
tokenProcessing domain
Returns
Default rate for the domain

Definition at line 344 of file Scheduler.cpp.

345{
346 switch (token) {
354 return 1;
356 return 1000;
358 return 0;
359 default:
361 }
362}
@ MULTI_RATE
Coroutine can handle multiple sample rates. Picks the frame-accurate processing token by default.
@ CONDITIONAL
Condition-driven execution - resume when a caller-supplied predicate returns true.
@ FRAME_ACCURATE
Coroutine is frame-accurate.
@ SAMPLE_ACCURATE
Coroutine is sample-accurate.
@ ON_DEMAND
Coroutine is executed on demand, not scheduled.

References MayaFlux::Vruta::CONDITIONAL, MayaFlux::Vruta::CUSTOM, MayaFlux::Vruta::FRAME_ACCURATE, m_registered_frame_rate, m_registered_sample_rate, MayaFlux::Vruta::MULTI_RATE, MayaFlux::Vruta::ON_DEMAND, and MayaFlux::Vruta::SAMPLE_ACCURATE.

Referenced by ensure_domain(), and get_rate().

+ Here is the caller graph for this function: