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

Method isViewShared

src/OpenColorIO/Config.cpp:3345–3359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3343}
3344
3345bool Config::isViewShared(const char * dispName, const char * viewName) const
3346{
3347 if (!viewName || !*viewName) return false;
3348
3349 for (int v = 0; v < getNumViews(VIEW_SHARED, dispName); v++)
3350 {
3351 const char * sharedViewName = getView(VIEW_SHARED, dispName, v);
3352 if (sharedViewName && *sharedViewName && Platform::Strcasecmp(sharedViewName, viewName) == 0)
3353 {
3354 return true;
3355 }
3356 }
3357
3358 return false;
3359}
3360
3361void Config::addSharedView(const char * view, const char * viewTransform,
3362 const char * colorSpace, const char * looks,

Callers 4

processDisplaysMethod · 0.80
test_virtual_displayMethod · 0.80
OCIO_ADD_TESTFunction · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 1

StrcasecmpFunction · 0.85

Tested by 3

test_virtual_displayMethod · 0.64
OCIO_ADD_TESTFunction · 0.64
OCIO_ADD_TESTFunction · 0.64