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

◆ clone()

std::shared_ptr< PolynomialProcessor > MayaFlux::Buffers::PolynomialProcessor::clone ( ) const

Same configuration over an independent copy of the node.

For attaching one processor per channel: the clone has its own history and coefficient array (see Polynomial::clone), so channels do not share state. The clone owns its node.

Definition at line 78 of file PolynomialProcessor.cpp.

79{
80 if (!m_polynomial) {
81 return std::make_shared<PolynomialProcessor>();
82 }
83
84 auto copy = std::make_shared<PolynomialProcessor>(m_polynomial->clone(), m_process_mode, m_window_size);
85 copy->m_use_internal = true;
86 return copy;
87}
size_t m_window_size
Window size for windowed processing.
std::shared_ptr< Nodes::Generator::Polynomial > m_polynomial
Polynomial node for processing.
ProcessMode m_process_mode
Current processing mode.
CopiedText copy(std::string_view text, const LayoutResult &layout, size_t a, size_t b)
Copy a byte range: the text it spans, and the quads that render it.

References m_polynomial, m_process_mode, and m_window_size.