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

Function ComputeDiff

tests/gpu/GPUUnitTest.cpp:111–122  ·  view source on GitHub ↗

Return true if diff has been updated.

Source from the content-addressed store, hash-verified

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

Callers 1

DiffComponentFunction · 0.70

Calls 2

RelativeDifferenceFunction · 0.70
AbsoluteDifferenceFunction · 0.70

Tested by

no test coverage detected