Lines Matching refs:endpoint_luminances
1014 int endpoint_luminances[2]; in get_rgba_endpoints_unorm() local
1080 endpoint_luminances[endpoint] = in get_rgba_endpoints_unorm()
1085 midpoint = (endpoint_luminances[0] + endpoint_luminances[1]) / 2; in get_rgba_endpoints_unorm()
1088 (endpoint_luminances[0] <= midpoint)) { in get_rgba_endpoints_unorm()
1112 int endpoint_luminances[2]; in write_rgb_indices_unorm() local
1118 endpoint_luminances[endpoint] = in write_rgb_indices_unorm()
1126 if (endpoint_luminances[0] == endpoint_luminances[1]) { in write_rgb_indices_unorm()
1135 index = ((luminance - endpoint_luminances[0]) * 3 / in write_rgb_indices_unorm()
1136 (endpoint_luminances[1] - endpoint_luminances[0])); in write_rgb_indices_unorm()
1363 float endpoint_luminances[2]; in get_endpoints_float() local
1418 endpoint_luminances[endpoint] = in get_endpoints_float()
1423 midpoint = (endpoint_luminances[0] + endpoint_luminances[1]) / 2.0f; in get_endpoints_float()
1426 (endpoint_luminances[0] <= midpoint)) { in get_endpoints_float()
1440 float endpoint_luminances[2]; in write_rgb_indices_float() local
1446 endpoint_luminances[endpoint] = in write_rgb_indices_float()
1454 if (endpoint_luminances[0] == endpoint_luminances[1]) { in write_rgb_indices_float()
1463 index = ((luminance - endpoint_luminances[0]) * 15 / in write_rgb_indices_float()
1464 (endpoint_luminances[1] - endpoint_luminances[0])); in write_rgb_indices_float()