MayaFlux 0.1.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 241 of file NodeGraphManager.cpp.

243{
244 std::unordered_map<unsigned int, std::vector<double>> channel_data;
245
246 auto channels = get_all_channels(token);
247
248 for (unsigned int channel : channels) {
249 channel_data[channel] = process_channel(token, channel, num_samples);
250 }
251
252 return channel_data;
253}
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: