|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::BufferProcessor::process | ( | std::shared_ptr< Buffer > | buffer | ) |
Applies a computational transformation to the data in the provided buffer.
| buffer | Buffer to transform |
This is the main transformation method that must be implemented by all concrete processor classes. It applies the processor's algorithm to the data in the buffer, potentially modifying it in-place or generating derived information. The processor has full agency over how the transformation is executed, including:
The method works seamlessly with any data type supported by the buffer interface, automatically adapting to audio samples, video frames, texture data, or other specialized buffer contents while maintaining type safety through the buffer abstraction. This method calls the core processing function defined in derived classes, with atomic thread-safe management of processing state to ensure that concurrent access does not lead to race conditions or data corruption.
Definition at line 6 of file BufferProcessor.cpp.
References m_active_processing, and processing_function().
Here is the call graph for this function: