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

◆ preprocess()

void MayaFlux::Buffers::BufferProcessingChain::preprocess ( const std::shared_ptr< Buffer > &  buffer)

Applies the preprocessor to a buffer.

Parameters
bufferBuffer to preprocess

If the buffer has a preprocessor, it is applied before the main processing sequence. This is useful for initial data preparation steps that must occur prior to the main transformation sequence, such as format conversion, normalization, or validation.

Definition at line 300 of file BufferProcessingChain.cpp.

301{
302 auto pre_it = m_preprocessors.find(buffer);
303 if (pre_it != m_preprocessors.end()) {
304 pre_it->second->process(buffer);
305 }
306}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_preprocessors
Map of buffers to their preprocessors.

References buffer, and m_preprocessors.

Referenced by process_complete().

+ Here is the caller graph for this function: