377{
378 if (!source) {
380 "VisionWorkflow::{}: no video stream", caller);
381 return nullptr;
382 }
383
387 "VisionWorkflow::{}: the engine's managers are gone", caller);
388 return nullptr;
389 }
390
391 std::shared_ptr<Buffers::TextureBuffer>
input;
392 if (const auto camera = std::dynamic_pointer_cast<Kakshya::CameraContainer>(source)) {
393 input = io->get_camera_buffer(camera);
395 input = io->hook_camera_to_buffer(camera);
396 } else {
397 input = io->get_video_buffer(source);
399 input = io->hook_video_container_to_buffer(source);
400 }
401
404 "VisionWorkflow::{}: the video stream could not be hooked to a buffer", caller);
405 return nullptr;
406 }
407
409}
#define MF_ERROR(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
Core::GlobalInputConfig input
std::weak_ptr< Vruta::EventManager > m_event_manager
std::weak_ptr< Vruta::TaskScheduler > m_scheduler
std::weak_ptr< IO::IOManager > m_io_manager
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP)
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.