MayaFlux 0.3.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 215 of file Scheduler.cpp.

216{
217 switch (token) {
225 return 1;
227 return 1000;
228 default:
230 }
231}
@ MULTI_RATE
Coroutine can handle multiple sample rates. Picks the frame-accurate processing token by default.
@ FRAME_ACCURATE
Coroutine is frame-accurate.
@ SAMPLE_ACCURATE
Coroutine is sample-accurate.
@ ON_DEMAND
Coroutine is executed on demand, not scheduled.

References 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: