Searched refs:clamp (Results 1 - 4 of 4) sorted by relevance

/haiku/src/kits/game/
H A DGSUtility.h58 static inline T clamp(float value) function
H A DGameSoundBuffer.cpp50 data[index * 2] = clamp<T, min, max>(float(data[index * 2] - middle)
52 data[index * 2 + 1] = clamp<T, min, max>(float(data[index * 2 + 1] - middle)
H A DFileGameSound.cpp43 dest[sample] = clamp<T, min, max>(float(src[sample] - middle) * gain
/haiku/src/add-ons/translators/exr/
H A DEXRGamma.cpp96 // Scale and clamp
99 return Imath::clamp (x * s, 0.f, 255.f);

Completed in 93 milliseconds