MayaFlux 0.4.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 250 of file BufferProcessingChain.cpp.

251{
252 auto pre_it = m_preprocessors.find(buffer);
253 if (pre_it != m_preprocessors.end()) {
254 pre_it->second->process(buffer);
255 }
256}
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: