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

◆ set_processing_token()

virtual void MayaFlux::Buffers::BufferProcessor::set_processing_token ( ProcessingToken  token)
inlinevirtual

Gets the preferred processing backend for this processor.

Parameters
bufferBuffer that will be processed
Returns
Preferred backend identifier, or default if no preference

This method allows processors to influence or override the processing backend used by the buffer. Processors can analyze the buffer's characteristics and current system state to recommend the most appropriate backend:

  • CPU_SEQUENTIAL: For lightweight operations or when parallel overhead exceeds benefits
  • CPU_PARALLEL: For CPU-intensive operations that benefit from multi-threading
  • GPU_COMPUTE: For massively parallel operations suitable for GPU acceleration
  • SPECIALIZED_HARDWARE: For operations optimized for specific hardware (DSP, FPGA, etc.)

The buffer management system may use this recommendation to optimize processing performance, though the final backend selection may depend on system availability and resource constraints.

Definition at line 158 of file BufferProcessor.hpp.

159 {
162 }
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void validate_token(ProcessingToken token)
Validates that a processing token has a valid, non-conflicting configuration.

References token, and MayaFlux::Buffers::validate_token().

+ Here is the call graph for this function: