MayaFlux 0.5.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 445 of file VideoStreamContainer.cpp.

446{
447 if (m_ring_capacity > 0)
448 return m_total_source_frames > 0;
449
450 bool result = false;
452 if (m_data.empty())
453 return;
454 result = std::visit([](const auto& vec) { return !vec.empty(); }, m_data[0]);
455 });
456 return result;
457}
bool seqlock_read_void(const Seqlock &lock, uint32_t max_attempts, Fn &&fn)
Invoke a void read functor under a Seqlock with a bounded retry count.
Definition SeqLock.hpp:222

References m_data, m_data_lock, m_ring_capacity, and m_total_source_frames.

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

+ Here is the caller graph for this function: