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

◆ set_container()

void MayaFlux::Buffers::VideoContainerBuffer::set_container ( const std::shared_ptr< Kakshya::StreamContainer > &  container)

Replace the backing container at runtime.

Updates the VideoStreamReader's source. Does not resize the TextureBuffer — caller is responsible for ensuring dimension compatibility or recreating the buffer.

Parameters
containerNew StreamContainer to read from.

Definition at line 251 of file VideoContainerBuffer.cpp.

252{
253 m_container = container;
254
255 if (m_video_reader) {
256 m_video_reader->set_container(container);
257 }
258}
std::shared_ptr< Kakshya::StreamContainer > m_container
std::shared_ptr< VideoStreamReader > m_video_reader

References m_container, and m_video_reader.