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

Method mapPlaneToOFXComponentsTypeString

Engine/ImagePlaneDesc.cpp:505–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505std::string
506ImagePlaneDesc::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}
528NATRON_NAMESPACE_EXIT
529

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected