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

◆ has_data()

bool MayaFlux::Kakshya::VideoStreamContainer::has_data ( ) const
overridevirtual

Check if the container currently holds any data.

Returns
true if data is present, false otherwise

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 488 of file VideoStreamContainer.cpp.

489{
490 if (m_ring_capacity > 0)
491 return m_total_source_frames > 0;
492
493 std::shared_lock lock(m_data_mutex);
494 if (m_data.empty())
495 return false;
496 return std::visit([](const auto& vec) { return !vec.empty(); }, m_data[0]);
497}
void lock() override
Acquire a lock for thread-safe access.

References lock(), m_data, m_data_mutex, m_ring_capacity, and m_total_source_frames.

Referenced by is_ready(), is_ready_for_processing(), and mark_ready_for_processing().

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