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

Method getNComps

Engine/NodeMetadata.cpp:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315int
316NodeMetadata::getNComps(int inputNb) const
317{
318 if (inputNb == -1) {
319 return _imp->outputData.nComps;
320 } else {
321 if ( inputNb < (int)_imp->inputsData.size() ) {
322 return _imp->inputsData[inputNb].nComps;
323 } else {
324 return 4;
325 }
326 }
327}
328
329void
330NodeMetadata::setComponentsType(int inputNb,const std::string& componentsType)

Callers 5

getMetadataComponentsMethod · 0.80
getMetadataNCompsMethod · 0.80
checkMetadataMethod · 0.80
onMetadataRefreshedMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected