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

309{
310 auto post_it = m_postprocessors.find(buffer);
311 if (post_it != m_postprocessors.end()) {
312 post_it->second->process(buffer);
313 }
314}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_postprocessors
Map of buffers to their postprocessors.

References buffer, and m_postprocessors.

Referenced by process_complete().

+ Here is the caller graph for this function: