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

◆ add_postprocessor()

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

Sets a postprocessor to be applied after the main pipeline.

Parameters
processorPostprocessor to add
bufferBuffer to associate with this postprocessor

The postprocessor is applied after all regular processors when process() is called. This is useful for final data adjustments that must occur immediately after the main transformation sequence, such as clamping values, applying effects, or cleanup. NOTE: This is different from the final processor, and runs before it.

Definition at line 199 of file BufferProcessingChain.cpp.

200{
201 processor->on_attach(buffer);
202 m_postprocessors[buffer] = processor;
203}
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_postprocessors
Map of buffers to their postprocessors.

References m_postprocessors.