| 461 | |
| 462 | |
| 463 | static std::string |
| 464 | natronCustomCompToOfxComp(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 | |
| 486 | std::string |
no test coverage detected