MayaFlux 0.2.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 229 of file BufferProcessingChain.cpp.

230{
231 auto pre_it = m_preprocessors.find(buffer);
232 if (pre_it != m_preprocessors.end()) {
233 pre_it->second->process(buffer);
234 }
235}
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_preprocessors
Map of buffers to their preprocessors.

References m_preprocessors.

Referenced by process_complete().

+ Here is the caller graph for this function: