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

Function saveClamp

src/OpenColorIO/OCIOYaml.cpp:1853–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1851}
1852
1853inline void saveClamp(YAML::Emitter & out,
1854 double blackVal, double defaultBlackVal,
1855 double whiteVal, double defaultWhiteVal)
1856{
1857 if (blackVal != defaultBlackVal || whiteVal != defaultWhiteVal)
1858 {
1859 out << YAML::Key << "clamp";
1860 out << YAML::Value << YAML::Flow << YAML::BeginMap;
1861 save(out, "black", blackVal, defaultBlackVal);
1862 save(out, "white", whiteVal, defaultWhiteVal);
1863 out << YAML::EndMap;
1864 }
1865}
1866
1867inline void save(YAML::Emitter & out, ConstGradingPrimaryTransformRcPtr t)
1868{

Callers 1

saveFunction · 0.85

Calls 1

saveFunction · 0.70

Tested by

no test coverage detected