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

Function CDLStyleFromString

src/OpenColorIO/ParseUtils.cpp:321–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321CDLStyle CDLStyleFromString(const char * style)
322{
323 const char * p = (style ? style : "");
324 const std::string str = StringUtils::Lower(p);
325
326 if (str == "asc") return CDL_ASC;
327 else if (str == "noclamp") return CDL_NO_CLAMP;
328
329 std::ostringstream oss;
330 oss << "Wrong CDL style: '" << p << "'.";
331 throw Exception(oss.str().c_str());
332}
333
334const char * RangeStyleToString(RangeStyle style)
335{

Callers 1

loadFunction · 0.85

Calls 1

LowerFunction · 0.85

Tested by

no test coverage detected