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

◆ process_token_with_channel_data()

std::unordered_map< unsigned int, std::vector< double > > MayaFlux::Nodes::NodeGraphManager::process_token_with_channel_data ( ProcessingToken  token,
unsigned int  num_samples 
)

Process all channels for a token and return channel-separated data.

Parameters
tokenProcessing domain
num_samplesNumber of samples/frames to process
Returns
Map of channel index to processed data

Processes all channels for a token and returns a map where each channel index maps to its processed data. This enables bulk processing while maintaining per-channel data separation.

Definition at line 253 of file NodeGraphManager.cpp.

255{
256 std::unordered_map<unsigned int, std::vector<double>> channel_data;
257
258 auto channels = get_all_channels(token);
259
260 for (unsigned int channel : channels) {
261 channel_data[channel] = process_channel(token, channel, num_samples);
262 }
263
264 return channel_data;
265}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::vector< double > process_channel(ProcessingToken token, unsigned int channel, unsigned int num_samples)
Process a specific channel within a token domain.
std::vector< unsigned int > get_all_channels(ProcessingToken token) const
Gets all channel indices for a given processing token.

References get_all_channels(), process_channel(), and token.

+ Here is the call graph for this function: