|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< DynamicVideoStream > MayaFlux::Kakshya::DynamicVideoStream::snapshot | ( | uint64_t | frames | ) | const |
Copy the most recent frames into a new linear stream, oldest first.
Frames that have already been overwritten come out black. The copy is independent of this stream.
| frames | Frames to keep, capped at the ring capacity, or at the frames written for a linear stream. |
Definition at line 157 of file DynamicVideoStream.cpp.
References available, count, MayaFlux::Kakshya::VideoStreamContainer::get_frame_byte_size(), MayaFlux::Kakshya::VideoStreamContainer::get_frame_pixels(), index, MayaFlux::Kakshya::VideoStreamContainer::is_ring_mode(), MayaFlux::Kakshya::VideoStreamContainer::m_format, MayaFlux::Kakshya::VideoStreamContainer::m_frame_rate, MayaFlux::Kakshya::VideoStreamContainer::m_height, MayaFlux::Kakshya::VideoStreamContainer::m_ring_capacity, MayaFlux::Kakshya::VideoStreamContainer::m_width, m_write_head, pixels, and MayaFlux::Kakshya::VideoStreamSpec::width.
Here is the call graph for this function: