MayaFlux 1.0.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 255 of file BufferProcessingChain.cpp.

256{
257 processor->on_attach(buffer);
258 m_final_processors[buffer] = processor;
259}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_final_processors
Map of buffers to their final processors.

References buffer, and m_final_processors.