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

Method isInputOnlyAlpha

Engine/Node.cpp:5418–5425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5416}
5417
5418bool
5419Node::isInputOnlyAlpha(int inputNb) const
5420{
5421 assert(_imp->inputsInitialized);
5422
5423 const std::list<ImagePlaneDesc>& inputSupportedComps = _imp->inputsComponents[inputNb];
5424 return (inputSupportedComps.size() == 1 && inputSupportedComps.front().getNumComponents() == 1);
5425}
5426
5427bool
5428Node::isInputConnected(int inputNb) const

Callers 1

getImageMethod · 0.80

Calls 2

sizeMethod · 0.45
getNumComponentsMethod · 0.45

Tested by

no test coverage detected