Searched refs:avgdif (Results 1 – 1 of 1) sorted by relevance
1367 float avgdif = hadd_rgb_s(v1 - v0) * (1.0f / 3.0f); in recompute_ideal_colors_1plane() local1368 avgdif = astc::max(avgdif, 0.0f); in recompute_ideal_colors_1plane()1371 vfloat4 ep0 = avg - vfloat4(avgdif) * 0.5f; in recompute_ideal_colors_1plane()1372 rgbo_vectors[i] = vfloat4(ep0.lane<0>(), ep0.lane<1>(), ep0.lane<2>(), avgdif); in recompute_ideal_colors_1plane()1647 float avgdif = hadd_rgb_s(v1 - v0) * (1.0f / 3.0f); in recompute_ideal_colors_2planes() local1648 avgdif = astc::max(avgdif, 0.0f); in recompute_ideal_colors_2planes()1651 vfloat4 ep0 = avg - vfloat4(avgdif) * 0.5f; in recompute_ideal_colors_2planes()1653 rgbo_vector = vfloat4(ep0.lane<0>(), ep0.lane<1>(), ep0.lane<2>(), avgdif); in recompute_ideal_colors_2planes()