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

◆ get_active_channels() [1/2]

std::vector< uint32_t > MayaFlux::Nodes::get_active_channels ( const std::shared_ptr< Nodes::Node > &  node,
uint32_t  fallback_channel = 0 
)

Extracts active channel list from a node's channel mask.

Parameters
nodeNode to inspect (can be null)
fallback_channelChannel to use if node has no active channels (default: 0)
Returns
Vector of active channel indices

Definition at line 138 of file NodeUtils.cpp.

139{
140 uint32_t channel_mask = node ? node->get_channel_mask().load() : 0;
141 return get_active_channels(channel_mask, fallback_channel);
142}
std::vector< uint32_t > get_active_channels(const std::shared_ptr< Nodes::Node > &node, uint32_t fallback_channel)
Extracts active channel list from a node's channel mask.

References get_active_channels().

Referenced by MayaFlux::Nodes::detail::composite_apply_semantics(), MayaFlux::Nodes::detail::composite_initialize(), get_active_channels(), MayaFlux::Nodes::ChainNode::initialize(), and MayaFlux::Nodes::BinaryOpNode::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: