MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / isInputOnlyAlpha

Method isInputOnlyAlpha

Engine/NodeInputs.cpp:399–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399bool
400Node::isInputOnlyAlpha(int inputNb) const
401{
402 assert(_imp->inputsInitialized);
403
404 const std::list<ImagePlaneDesc>& inputSupportedComps = _imp->inputsComponents[inputNb];
405 return (inputSupportedComps.size() == 1 && inputSupportedComps.front().getNumComponents() == 1);
406}
407
408int
409Node::getNInputs() const

Callers 1

getImageMethod · 0.80

Calls 2

sizeMethod · 0.45
getNumComponentsMethod · 0.45

Tested by

no test coverage detected