Home
last modified time | relevance | path

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

/third_party/astc-encoder/Source/
H A Dastcenccli_image.cpp369 dst[4 * x ] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + (4 * x )]) * 255.0f)); in unorm8x4_array_from_astc_img()
370 dst[4 * x + 1] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + (4 * x + 1)]) * 255.0f)); in unorm8x4_array_from_astc_img()
371 dst[4 * x + 2] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + (4 * x + 2)]) * 255.0f)); in unorm8x4_array_from_astc_img()
372 dst[4 * x + 3] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + (4 * x + 3)]) * 255.0f)); in unorm8x4_array_from_astc_img()
H A Dastcenc_mathlib.h280 static inline float clamp1f(float v) in clamp1f() function
H A Dastcenc_ideal_endpoints_and_weights.cpp186 value = astc::clamp1f(value); in compute_ideal_colors_and_weights_1_comp()
318 idx = astc::clamp1f(idx);
512 idx = astc::clamp1f(idx);
637 idx = astc::clamp1f(idx);
1339 scalediv = astc::clamp1f(scalediv);
1586 scalediv = astc::clamp1f(scalediv);
H A Dastcenc_color_quantize.cpp752 float scalea = astc::clamp1f(color.lane<3>() * (oldcolorsum + 1e-10f) / (newcolorsum + 1e-10f)); in quantize_rgbs()

Completed in 6 milliseconds