MayaFlux 0.5.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 273 of file VideoContainerBuffer.cpp.

274{
275 m_container = container;
276
277 if (m_video_reader) {
278 m_video_reader->set_container(container);
279 }
280}
std::shared_ptr< Kakshya::StreamContainer > m_container
std::shared_ptr< VideoStreamReader > m_video_reader

References m_container, and m_video_reader.