MayaFlux 0.2.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 395 of file VideoStreamContainer.cpp.

396{
397 if (is_looping())
398 return false;
399
400 uint64_t total = (m_ring_capacity > 0) ? m_total_source_frames : m_num_frames;
401 return total == 0 || m_read_position.load() >= total;
402}
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: