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

Function operator&&

src/OpenColorIO/ColorSpaceSet.cpp:324–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324ConstColorSpaceSetRcPtr operator&&(const ConstColorSpaceSetRcPtr & lcss,
325 const ConstColorSpaceSetRcPtr & rcss)
326{
327 ColorSpaceSetRcPtr css = ColorSpaceSet::Create();
328
329 for (int idx = 0; idx < rcss->getNumColorSpaces(); ++idx)
330 {
331 ConstColorSpaceRcPtr tmp = rcss->getColorSpaceByIndex(idx);
332 if (lcss->hasColorSpace(tmp->getName()))
333 {
334 css->addColorSpace(tmp);
335 }
336 }
337
338 return css;
339}
340
341ConstColorSpaceSetRcPtr operator-(const ConstColorSpaceSetRcPtr & lcss,
342 const ConstColorSpaceSetRcPtr & rcss)

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