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

◆ get_region_group()

const RegionGroup & MayaFlux::Kakshya::VideoStreamContainer::get_region_group ( const std::string &  name) const
overridevirtual

Get a region group by name.

Parameters
nameName of the region group
Returns
Reference to the RegionGroup

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 334 of file VideoStreamContainer.cpp.

335{
336 static const RegionGroup empty;
337 std::shared_lock lock(m_data_mutex);
338 auto it = m_region_groups.find(name);
339 return it != m_region_groups.end() ? it->second : empty;
340}
std::unordered_map< std::string, RegionGroup > m_region_groups
void lock() override
Acquire a lock for thread-safe access.

References lock(), m_data_mutex, and m_region_groups.

+ Here is the call graph for this function: