| 5560 | } |
| 5561 | |
| 5562 | void |
| 5563 | EffectInstance::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 | |
| 5585 | int |
| 5586 | EffectInstance::getMetadataNComps(int inputNb) const |
no test coverage detected