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

◆ until_condition()

BufferCapture & MayaFlux::Kriya::BufferCapture::until_condition ( std::function< bool()>  predicate)

Set a condition that stops capture when met.

Parameters
predicateFunction returning true when capture should stop
Returns
Reference to this BufferCapture for chaining

Definition at line 32 of file Capture.cpp.

33{
34 m_stop_condition = std::move(predicate);
36 return *this;
37}
@ TRIGGERED
Capture only when condition met.
std::function< bool()> m_stop_condition
Definition Capture.hpp:186

References m_mode, m_stop_condition, and TRIGGERED.

Referenced by MayaFlux::Kriya::CaptureBuilder::until_condition().

+ Here is the caller graph for this function: