MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / isInactiveColorSpace

Method isInactiveColorSpace

src/OpenColorIO/Config.cpp:2561–2575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2559}
2560
2561bool Config::isInactiveColorSpace(const char * colorspace) const noexcept
2562{
2563 StringUtils::StringVec svec;
2564 pystring::split(getImpl()->m_inactiveColorSpaceNamesConf.c_str(), svec, ", ");
2565
2566 for (size_t i = 0; i < svec.size(); i++)
2567 {
2568 if (StringUtils::Compare(colorspace, svec.at(i)))
2569 {
2570 // Colorspace is inactive.
2571 return true;
2572 }
2573 }
2574 return false;
2575}
2576
2577void Config::addColorSpace(const ConstColorSpaceRcPtr & original)
2578{

Callers 3

mainFunction · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 3

CompareFunction · 0.85
getImplFunction · 0.50
sizeMethod · 0.45

Tested by 2

OCIO_ADD_TESTFunction · 0.64