| 5486 | } |
| 5487 | |
| 5488 | void |
| 5489 | EffectInstance::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 | |
| 5511 | int |
| 5512 | EffectInstance::getMetadataNComps(int inputNb) const |
no test coverage detected