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

Method getMetadataComponents

Engine/EffectInstance.cpp:5562–5583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5560}
5561
5562void
5563EffectInstance::getMetadataComponents(int inputNb, ImagePlaneDesc* plane, ImagePlaneDesc* pairedPlane) const
5564{
5565 int nComps;
5566 std::string componentsType;
5567 {
5568 QMutexLocker k(&_imp->metadataMutex);
5569 nComps = _imp->metadata.getNComps(inputNb);
5570 componentsType = _imp->metadata.getComponentsType(inputNb);
5571 }
5572 if (componentsType == kNatronColorPlaneID) {
5573 *plane = ImagePlaneDesc::mapNCompsToColorPlane(nComps);
5574 } else if (componentsType == kNatronDisparityComponentsLabel) {
5575 *plane = ImagePlaneDesc::getDisparityLeftComponents();
5576 *pairedPlane = ImagePlaneDesc::getDisparityRightComponents();
5577 } else if (componentsType == kNatronMotionComponentsLabel) {
5578 *plane = ImagePlaneDesc::getBackwardMotionComponents();
5579 *pairedPlane = ImagePlaneDesc::getForwardMotionComponents();
5580 } else {
5581 *plane = ImagePlaneDesc::getNoneComponents();
5582 }
5583}
5584
5585int
5586EffectInstance::getMetadataNComps(int inputNb) const

Callers 6

renderHandlerMethod · 0.80
trackMarkerMethod · 0.80
processFrameMethod · 0.80
renderViewer_internalMethod · 0.80
Node.cppFile · 0.80

Calls 2

getNCompsMethod · 0.80
getComponentsTypeMethod · 0.80

Tested by

no test coverage detected