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

259{
260 auto post_it = m_postprocessors.find(buffer);
261 if (post_it != m_postprocessors.end()) {
262 post_it->second->process(buffer);
263 }
264}
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: