| 503 | } |
| 504 | |
| 505 | std::string |
| 506 | ImagePlaneDesc::mapPlaneToOFXComponentsTypeString(const ImagePlaneDesc& plane) |
| 507 | { |
| 508 | if ( plane == ImagePlaneDesc::getNoneComponents() ) { |
| 509 | return kOfxImageComponentNone; |
| 510 | } else if ( plane == ImagePlaneDesc::getAlphaComponents() ) { |
| 511 | return kOfxImageComponentAlpha; |
| 512 | } else if ( plane == ImagePlaneDesc::getRGBComponents() ) { |
| 513 | return kOfxImageComponentRGB; |
| 514 | } else if ( plane == ImagePlaneDesc::getRGBAComponents() ) { |
| 515 | return kOfxImageComponentRGBA; |
| 516 | } else if ( plane == ImagePlaneDesc::getXYComponents() ) { |
| 517 | return kNatronOfxImageComponentXY; |
| 518 | } else if ( plane == ImagePlaneDesc::getBackwardMotionComponents() || |
| 519 | plane == ImagePlaneDesc::getForwardMotionComponents()) { |
| 520 | return kFnOfxImageComponentMotionVectors; |
| 521 | } else if ( plane == ImagePlaneDesc::getDisparityLeftComponents() || |
| 522 | plane == ImagePlaneDesc::getDisparityRightComponents()) { |
| 523 | return kFnOfxImageComponentStereoDisparity; |
| 524 | } else { |
| 525 | return natronCustomCompToOfxComp(plane); |
| 526 | } |
| 527 | } |
| 528 | NATRON_NAMESPACE_EXIT |
| 529 |
nothing calls this directly
no test coverage detected