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

Method mapPlaneToOFXPlaneString

Engine/ImagePlaneDesc.cpp:486–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484
485
486std::string
487ImagePlaneDesc::mapPlaneToOFXPlaneString(const ImagePlaneDesc& plane)
488{
489 if (plane.isColorPlane()) {
490 return kFnOfxImagePlaneColour;
491 } else if ( plane == ImagePlaneDesc::getBackwardMotionComponents() ) {
492 return kFnOfxImagePlaneBackwardMotionVector;
493 } else if ( plane == ImagePlaneDesc::getForwardMotionComponents()) {
494 return kFnOfxImagePlaneForwardMotionVector;
495 } else if ( plane == ImagePlaneDesc::getDisparityLeftComponents()) {
496 return kFnOfxImagePlaneStereoDisparityLeft;
497 } else if ( plane == ImagePlaneDesc::getDisparityRightComponents() ) {
498 return kFnOfxImagePlaneStereoDisparityRight;
499 } else {
500 return natronCustomCompToOfxComp(plane);
501 }
502
503}
504
505std::string
506ImagePlaneDesc::mapPlaneToOFXComponentsTypeString(const ImagePlaneDesc& plane)

Callers

nothing calls this directly

Calls 2

isColorPlaneMethod · 0.45

Tested by

no test coverage detected