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

◆ get_preprocessor()

std::shared_ptr< BufferProcessor > MayaFlux::Buffers::BufferProcessingChain::get_preprocessor ( const std::shared_ptr< Buffer > &  buffer) const

Returns the preprocessor for a buffer, or nullptr if none is set.

Parameters
bufferBuffer to query

Definition at line 230 of file BufferProcessingChain.cpp.

231{
232 auto it = m_preprocessors.find(buffer);
233 return it != m_preprocessors.end() ? it->second : nullptr;
234}
std::unordered_map< std::shared_ptr< Buffer >, std::shared_ptr< BufferProcessor > > m_preprocessors
Map of buffers to their preprocessors.

References m_preprocessors.