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

Function savePivot

src/OpenColorIO/OCIOYaml.cpp:1835–1851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1833}
1834
1835inline void savePivot(YAML::Emitter & out, double val, bool saveContrast,
1836 double blackVal, double defaultBlackVal,
1837 double whiteVal, double defaultWhiteVal)
1838{
1839 if (saveContrast || blackVal != defaultBlackVal || whiteVal != defaultWhiteVal)
1840 {
1841 out << YAML::Key << "pivot";
1842 out << YAML::Value << YAML::Flow << YAML::BeginMap;
1843 if (saveContrast)
1844 {
1845 out << YAML::Key << "contrast" << YAML::Value << YAML::Flow << val;
1846 }
1847 save(out, "black", blackVal, defaultBlackVal);
1848 save(out, "white", whiteVal, defaultWhiteVal);
1849 out << YAML::EndMap;
1850 }
1851}
1852
1853inline void saveClamp(YAML::Emitter & out,
1854 double blackVal, double defaultBlackVal,

Callers 1

saveFunction · 0.85

Calls 1

saveFunction · 0.70

Tested by

no test coverage detected