Searched refs:clamp1f (Results 1 – 4 of 4) sorted by relevance
366 …dst[4 * x ] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + … in unorm8x4_array_from_astc_img()367 …dst[4 * x + 1] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + … in unorm8x4_array_from_astc_img()368 …dst[4 * x + 2] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + … in unorm8x4_array_from_astc_img()369 …dst[4 * x + 3] = static_cast<uint8_t>(astc::flt2int_rtn(astc::clamp1f(data32[(4 * dim_x * ymod) + … in unorm8x4_array_from_astc_img()
270 static inline float clamp1f(float v) in clamp1f() function
186 value = astc::clamp1f(value); in compute_ideal_colors_and_weights_1_comp()318 idx = astc::clamp1f(idx); in compute_ideal_colors_and_weights_2_comp()467 idx = astc::clamp1f(idx); in compute_ideal_colors_and_weights_3_comp()592 idx = astc::clamp1f(idx); in compute_ideal_colors_and_weights_4_comp()1296 scalediv = astc::clamp1f(scalediv); in recompute_ideal_colors_1plane()1539 scalediv = astc::clamp1f(scalediv); in recompute_ideal_colors_2planes()
809 float scalea = astc::clamp1f(color.lane<3>() * (oldcolorsum + 1e-10f) / (newcolorsum + 1e-10f)); in quantize_rgbs()