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

◆ is_frame_available()

bool MayaFlux::Kakshya::VideoStreamContainer::is_frame_available ( uint64_t  frame_index) const

Check if a frame is currently valid in the ring.

Parameters
frame_indexAbsolute frame index.

Definition at line 156 of file VideoStreamContainer.cpp.

157{
158 if (m_ring_capacity == 0)
159 return false;
160
161 return m_slot_frame[slot_for(frame_index)].load(std::memory_order_acquire) == frame_index;
162}
std::vector< std::atomic< uint64_t > > m_slot_frame
uint32_t slot_for(uint64_t frame_index) const

References m_ring_capacity, m_slot_frame, and slot_for().

+ Here is the call graph for this function: