|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Kakshya::DynamicVideoStream::enable_circular_buffer | ( | uint64_t | capacity | ) |
Keep only the most recent capacity frames.
Allocates the ring and discards any frames already held, so call it before appending. Use is_ring_mode and get_ring_capacity to query it.
| capacity | Number of frames to keep. |
Definition at line 131 of file DynamicVideoStream.cpp.
References MayaFlux::Journal::Configuration, MayaFlux::Journal::Kakshya, MayaFlux::Kakshya::VideoStreamContainer::m_format, MayaFlux::Kakshya::VideoStreamContainer::m_frame_rate, MayaFlux::Kakshya::VideoStreamContainer::m_height, MayaFlux::Kakshya::VideoStreamContainer::m_total_source_frames, MayaFlux::Kakshya::VideoStreamContainer::m_width, m_write_head, MF_ERROR, publish_frame_count(), and MayaFlux::Kakshya::VideoStreamContainer::setup_ring().
Referenced by clear(), and DynamicVideoStream().
Here is the call graph for this function:
Here is the caller graph for this function: