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

Method setBitDepth

Engine/NodeMetadata.cpp:273–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void
274NodeMetadata::setBitDepth(int inputNb,
275 ImageBitDepthEnum depth)
276{
277 if (inputNb == -1) {
278 _imp->outputData.bitdepth = depth;
279 } else {
280 if ( inputNb < (int)_imp->inputsData.size() ) {
281 _imp->inputsData[inputNb].bitdepth = depth;
282 }
283
284 }
285}
286
287ImageBitDepthEnum
288NodeMetadata::getBitDepth(int inputNb) const

Callers 3

getDefaultMetadataMethod · 0.45
checkMetadataMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected