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 353 of file VideoStreamContainer.cpp.

354{
355 if (is_looping())
356 return false;
357
358 uint64_t total = (m_ring_capacity > 0) ? m_total_source_frames : m_num_frames;
359 return total == 0 || m_read_position.load() >= total;
360}
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: