|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Kakshya::CameraContainer > MayaFlux::IO::IOManager::open_camera | ( | const CameraConfig & | config | ) |
Open a camera device and create a CameraContainer.
Constructs a CameraReader, opens the device, creates the container, configures its FrameAccessProcessor (auto_advance disabled), assigns a globally unique reader_id, registers the reader for IOService dispatch, and wires the container's IOService callback via CameraContainer::setup_io().
After this call, the normal processing pipeline drives frame pulls: CameraContainer::process_default() → IOService::request_frame(reader_id) → dispatch_frame_request() → CameraReader::pull_frame_all() → decode thread → pull_frame() → mutable_frame_ptr() write → READY.
| config | Device and resolution configuration. |
Definition at line 253 of file IOManager.cpp.
References MayaFlux::Journal::API, MayaFlux::IO::CameraConfig::device_name, MayaFlux::Journal::FileIO, m_camera_mutex, m_camera_readers, m_next_reader_id, MF_ERROR, and MF_INFO.