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

Method getMetadataComponents

Engine/EffectInstance.cpp:5488–5509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5486}
5487
5488void
5489EffectInstance::getMetadataComponents(int inputNb, ImagePlaneDesc* plane, ImagePlaneDesc* pairedPlane) const
5490{
5491 int nComps;
5492 std::string componentsType;
5493 {
5494 QMutexLocker k(&_imp->metadataMutex);
5495 nComps = _imp->metadata.getNComps(inputNb);
5496 componentsType = _imp->metadata.getComponentsType(inputNb);
5497 }
5498 if (componentsType == kNatronColorPlaneID) {
5499 *plane = ImagePlaneDesc::mapNCompsToColorPlane(nComps);
5500 } else if (componentsType == kNatronDisparityComponentsLabel) {
5501 *plane = ImagePlaneDesc::getDisparityLeftComponents();
5502 *pairedPlane = ImagePlaneDesc::getDisparityRightComponents();
5503 } else if (componentsType == kNatronMotionComponentsLabel) {
5504 *plane = ImagePlaneDesc::getBackwardMotionComponents();
5505 *pairedPlane = ImagePlaneDesc::getForwardMotionComponents();
5506 } else {
5507 *plane = ImagePlaneDesc::getNoneComponents();
5508 }
5509}
5510
5511int
5512EffectInstance::getMetadataNComps(int inputNb) const

Callers 6

renderHandlerMethod · 0.80
trackMarkerMethod · 0.80
processFrameMethod · 0.80
renderViewer_internalMethod · 0.80
getRotoContextMethod · 0.80

Calls 2

getNCompsMethod · 0.80
getComponentsTypeMethod · 0.80

Tested by

no test coverage detected