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

◆ get_associated_buffer()

MAYAFLUX_API std::shared_ptr< Buffers::VideoContainerBuffer > MayaFlux::get_associated_buffer ( const std::shared_ptr< Kakshya::VideoStreamContainer > &  container)

The buffer a video or camera container was hooked to.

Hooking happens through | Graphics or IOManager::hook_*. Returns nullptr when the container has not been hooked.

Definition at line 151 of file Depot.cpp.

153{
154 const auto io = get_io_manager();
155 if (!io || !container) {
156 return nullptr;
157 }
158
159 if (const auto camera = std::dynamic_pointer_cast<Kakshya::CameraContainer>(container)) {
160 return io->get_camera_buffer(camera);
161 }
162
163 return io->get_video_buffer(container);
164}
std::shared_ptr< IO::IOManager > get_io_manager()
Retrieves the global IOManager instance for file loading and buffer management.
Definition Depot.cpp:575

References get_io_manager().

+ Here is the call graph for this function: