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

◆ add_final_processor()

void MayaFlux::Buffers::BufferProcessingChain::add_final_processor ( const std::shared_ptr< BufferProcessor > &  processor,
const std::shared_ptr< Buffer > &  buffer 
)

Sets a special processor to be applied after the main pipeline.

Parameters
processorFinal processor to add
bufferBuffer to associate with this final processor

The final processor is applied after all regular processors when process_final() is called. This is essential for operations like normalization, boundary enforcement, format conversion, or validation that must be applied as the last step in a transformation pipeline, regardless of the optimization strategies used for the main processing sequence.

Definition at line 185 of file BufferProcessingChain.cpp.

186{
187 processor->on_attach(buffer);
188 m_final_processors[buffer] = processor;
189}
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_final_processors
Map of buffers to their final processors.

References m_final_processors.