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

◆ clear()

void MayaFlux::Kakshya::VideoStreamContainer::clear ( )
overridevirtual

Clear all data in the container.

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 420 of file VideoStreamContainer.cpp.

421{
422 {
423 Memory::SeqlockWriteGuard g(m_data_lock);
424 std::ranges::for_each(m_data, [](auto& v) {
425 std::visit([](auto& vec) { vec.clear(); }, v);
426 });
427 m_num_frames = 0;
428 m_read_position.store(0);
430 }
432}
void update_processing_state(ProcessingState new_state) override
Update the processing state of the container.
@ IDLE
Container is inactive with no data or not ready for processing.

References MayaFlux::Kakshya::IDLE, m_data, m_data_lock, m_num_frames, m_read_position, setup_dimensions(), and update_processing_state().

+ Here is the call graph for this function: