MayaFlux 1.0.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
436 return total == 0 || m_read_position.load() >= total;
437}
uint32_t total
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, m_total_source_frames, and total.

+ Here is the call graph for this function: