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

463{
464 std::unique_lock lock(m_data_mutex);
465
466 std::ranges::for_each(m_data, [](auto& v) {
467 std::visit([](auto& vec) { vec.clear(); }, v);
468 });
469
470 m_num_frames = 0;
471 m_read_position.store(0);
472
475}
void lock() override
Acquire a lock for thread-safe access.
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, lock(), m_data, m_data_mutex, m_num_frames, m_read_position, setup_dimensions(), and update_processing_state().

+ Here is the call graph for this function: