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

◆ is_at_end()

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

Check if read position has reached the end of the stream.

Returns
true if at or past the end of data

Useful for detecting end-of-stream in playback or streaming contexts.

Implements MayaFlux::Kakshya::StreamContainer.

Definition at line 430 of file VideoStreamContainer.cpp.

431{
432 if (is_looping())
433 return false;
434
435 uint64_t total = (m_ring_capacity > 0) ? m_total_source_frames : m_num_frames;
436 return total == 0 || m_read_position.load() >= total;
437}
bool is_looping() const override
Check if looping is enabled for the stream.

References is_looping(), m_num_frames, m_read_position, m_ring_capacity, and m_total_source_frames.

+ Here is the call graph for this function: