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

Function ComputeDiff

tests/osl/UnitTestOSL.cpp:112–123  ·  view source on GitHub ↗

Return true if diff has been updated.

Source from the content-addressed store, hash-verified

110
111// Return true if diff has been updated.
112inline bool ComputeDiff(float x1, float x2, bool rel, float min_x1, float diff)
113{
114 if (rel)
115 {
116 return RelativeDifference(x1, x2, min_x1, diff);
117 }
118 else
119 {
120 return AbsoluteDifference(x1, x2, diff);
121 }
122
123}
124
125} // anon.
126

Callers 1

ExecuteOSLShaderFunction · 0.70

Calls 2

RelativeDifferenceFunction · 0.70
AbsoluteDifferenceFunction · 0.70

Tested by

no test coverage detected