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

◆ DynamicVideoStream()

MayaFlux::Kakshya::DynamicVideoStream::DynamicVideoStream ( const VideoStreamSpec &  spec)
explicit

Build a stream from a spec, enabling the ring when it asks for one.

Parameters
specFrame size, format, rate and optional ring size. The rate is used by readers that auto advance; zero leaves it unset.

Definition at line 12 of file DynamicVideoStream.cpp.

13 : VideoStreamContainer(spec.width, spec.height, spec.format, spec.frame_rate)
14{
15 if (spec.ring_frames > 0) {
16 enable_circular_buffer(spec.ring_frames);
17 }
18}
void enable_circular_buffer(uint64_t capacity)
Keep only the most recent capacity frames.
VideoStreamContainer(uint32_t width=0, uint32_t height=0, ImageFormat format=ImageFormat::RGBA8, double frame_rate=0.0)
Construct a VideoStreamContainer with specified parameters.

References enable_circular_buffer(), and MayaFlux::Kakshya::VideoStreamSpec::ring_frames.

+ Here is the call graph for this function: