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

◆ clear()

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

Clear all data in the container.

Implements MayaFlux::Kakshya::NDDataContainer< DataVariant >.

Definition at line 384 of file WindowContainer.cpp.

385{
386 {
387 Memory::SeqlockWriteGuard g(m_data_lock);
388 const size_t sz = m_structure.get_width() * m_structure.get_height()
390 m_processed_data.resize(1);
391 m_processed_data[0] = std::vector<uint8_t>(sz, 0U);
392 if (!m_normalised_dirty.empty())
393 m_normalised_dirty[0].store(true, std::memory_order_release);
394 }
396}
std::vector< DataVariant > m_processed_data
std::vector< std::atomic< bool > > m_normalised_dirty
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.
static uint64_t get_height(const std::vector< DataDimension > &dimensions)
Extract height from image/video dimensions.
static uint64_t get_channel_count(const std::vector< DataDimension > &dimensions)
Extract channel count from dimensions.
static uint64_t get_width(const std::vector< DataDimension > &dimensions)
Extract width from image/video dimensions.

References MayaFlux::Kakshya::ContainerDataStructure::get_channel_count(), MayaFlux::Kakshya::ContainerDataStructure::get_height(), MayaFlux::Kakshya::ContainerDataStructure::get_width(), MayaFlux::Kakshya::IDLE, m_data_lock, m_normalised_dirty, m_processed_data, m_structure, and update_processing_state().

+ Here is the call graph for this function: