MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / operator-

Function operator-

src/OpenColorIO/ColorSpaceSet.cpp:341–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341ConstColorSpaceSetRcPtr operator-(const ConstColorSpaceSetRcPtr & lcss,
342 const ConstColorSpaceSetRcPtr & rcss)
343{
344 ColorSpaceSetRcPtr css = ColorSpaceSet::Create();
345
346 for (int idx = 0; idx < lcss->getNumColorSpaces(); ++idx)
347 {
348 ConstColorSpaceRcPtr tmp = lcss->getColorSpaceByIndex(idx);
349
350 if (!rcss->hasColorSpace(tmp->getName()))
351 {
352 css->addColorSpace(tmp);
353 }
354 }
355
356 return css;
357}
358
359} // namespace OCIO_NAMESPACE
360

Callers

nothing calls this directly

Calls 5

getColorSpaceByIndexMethod · 0.80
getNumColorSpacesMethod · 0.45
hasColorSpaceMethod · 0.45
getNameMethod · 0.45
addColorSpaceMethod · 0.45

Tested by

no test coverage detected