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

Function natronCustomCompToOfxComp

Engine/ImagePlaneDesc.cpp:463–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461
462
463static std::string
464natronCustomCompToOfxComp(const ImagePlaneDesc &comp)
465{
466 std::stringstream ss;
467 const std::vector<std::string>& channels = comp.getChannels();
468 const std::string& planeID = comp.getPlaneID();
469 const std::string& planeLabel = comp.getPlaneLabel();
470 const std::string& channelsLabel = comp.getChannelsLabel();
471 ss << kNatronOfxImageComponentsPlaneName << planeID;
472 if (!planeLabel.empty()) {
473 ss << kNatronOfxImageComponentsPlaneLabel << planeLabel;
474 }
475 if (!channelsLabel.empty()) {
476 ss << kNatronOfxImageComponentsPlaneChannelsLabel << channelsLabel;
477 }
478 for (std::size_t i = 0; i < channels.size(); ++i) {
479 ss << kNatronOfxImageComponentsPlaneChannel << channels[i];
480 }
481
482 return ss.str();
483} // natronCustomCompToOfxComp
484
485
486std::string

Calls 3

emptyMethod · 0.80
getChannelsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected