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

◆ lag_behind_head()

void MayaFlux::Kakshya::DynamicVideoStream::lag_behind_head ( double  frames)

Play back a fixed number of frames behind the write head.

Call it after enable_circular_buffer and before frames are appended, and keep frames below the ring capacity. Playback holds the first frame until the lag has elapsed.

Parameters
framesDistance behind the head in frames.

Definition at line 204 of file DynamicVideoStream.cpp.

205{
206 seek_processor()->trail(static_cast<double>(m_write_head), frames);
207}
std::shared_ptr< FrameSeekProcessor > seek_processor()
The FrameSeekProcessor that reads this stream, installed on first use.

References m_write_head, and seek_processor().

+ Here is the call graph for this function: