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

◆ processing_function()

template<typename FuncType >
void MayaFlux::Buffers::QuickProcess< FuncType >::processing_function ( const std::shared_ptr< Buffer > &  buffer)
inlineoverridevirtual

The core processing function that must be implemented by derived classes.

Parameters
bufferBuffer to process

This method is where the actual transformation logic is implemented. It should contain the algorithmic details of how the buffer's data is transformed, analyzed, or processed. The implementation can utilize any backend capabilities available to the processor, including:

  • Parallel Processing: Using multi-threading or GPU compute for large datasets
  • Data Transformations: Applying mathematical operations, filters, or effects
  • Feature Extraction: Analyzing data characteristics for further processing

Derived classes must override this method to provide specific processing behavior.

Implements MayaFlux::Buffers::BufferProcessor.

Definition at line 16 of file QuickProcess.hpp.

17 {
18 if constexpr (std::is_same_v<FuncType, AudioProcessingFunction>) {
19 if (auto audio_buf = std::dynamic_pointer_cast<AudioBuffer>(buffer)) {
20 m_function(audio_buf);
21 }
22 } else {
23 if (auto vk_buf = std::dynamic_pointer_cast<VKBuffer>(buffer)) {
24 m_function(vk_buf);
25 }
26 }
27 }

References MayaFlux::Buffers::QuickProcess< FuncType >::m_function.