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

◆ postprocess()

void MayaFlux::Buffers::BufferProcessingChain::postprocess ( const std::shared_ptr< Buffer > &  buffer)

Applies the postprocessor to a buffer.

Parameters
bufferBuffer to postprocess

If the buffer has a postprocessor, it is applied after the main processing sequence. This is useful for final data adjustments that must occur immediately after the main transformation sequence, such as clamping values, applying effects, or cleanup.

Definition at line 237 of file BufferProcessingChain.cpp.

238{
239 auto post_it = m_postprocessors.find(buffer);
240 if (post_it != m_postprocessors.end()) {
241 post_it->second->process(buffer);
242 }
243}
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_postprocessors
Map of buffers to their postprocessors.

References m_postprocessors.

Referenced by process_complete().

+ Here is the caller graph for this function: