Home
last modified time | relevance | path

Searched refs:clamp255f (Results 1 – 2 of 2) sorted by relevance

/third_party/astc-encoder/Source/
Dastcenc_color_quantize.cpp114 float r0 = astc::clamp255f(color0.lane<0>() * scale); in quantize_rgb()
115 float g0 = astc::clamp255f(color0.lane<1>() * scale); in quantize_rgb()
116 float b0 = astc::clamp255f(color0.lane<2>() * scale); in quantize_rgb()
118 float r1 = astc::clamp255f(color1.lane<0>() * scale); in quantize_rgb()
119 float g1 = astc::clamp255f(color1.lane<1>() * scale); in quantize_rgb()
120 float b1 = astc::clamp255f(color1.lane<2>() * scale); in quantize_rgb()
175 float a0 = astc::clamp255f(color0.lane<3>() * scale); in quantize_rgba()
176 float a1 = astc::clamp255f(color1.lane<3>() * scale); in quantize_rgba()
279 float a0 = astc::clamp255f(color0.lane<3>() * scale); in try_quantize_rgba_blue_contract()
280 float a1 = astc::clamp255f(color1.lane<3>() * scale); in try_quantize_rgba_blue_contract()
[all …]
Dastcenc_mathlib.h284 static inline float clamp255f(float v) in clamp255f() function