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

◆ get_open_devices()

std::vector< uint32_t > MayaFlux::Core::SerialInputBackend::get_open_devices ( ) const
nodiscardoverridevirtual

Get list of currently open device IDs.

Implements MayaFlux::Core::IInputBackend.

Definition at line 380 of file SerialInputBackend.cpp.

381{
382 std::vector<uint32_t> open;
383 if (const auto roster = m_roster.read()) {
384 for (const auto& [id, entry] : roster->entries) {
385 if (entry.device) {
386 open.push_back(id);
387 }
388 }
389 }
390 return open;
391}
Memory::SnapshotCell< Roster > m_roster
void open(std::span< const float > mask, std::span< float > tmp, std::span< float > dst, uint32_t w, uint32_t h, uint32_t radius)
Morphological opening writing into dst.

References get_open_devices(), and m_roster.

Referenced by get_open_devices().

Here is the call graph for this function:
Here is the caller graph for this function: