Lines Matching refs:endpoints
357 uint8_t endpoints[][4])
369 endpoints[subset * 2 + endpoint][component] =
380 endpoints[subset * 2 + endpoint][3] =
390 endpoints[subset * 2 + endpoint][3] = 255;
403 endpoints[subset * 2 + endpoint][component] <<= 1;
404 endpoints[subset * 2 + endpoint][component] |= pbit;
415 endpoints[subset * 2 + endpoint][component] <<= 1;
416 endpoints[subset * 2 + endpoint][component] |= pbit;
426 endpoints[subset * 2 + endpoint][component] =
427 expand_component(endpoints[subset * 2 + endpoint][component],
434 endpoints[subset * 2 + endpoint][3] =
435 expand_component(endpoints[subset * 2 + endpoint][3],
551 uint8_t endpoints[3 * 2][4];
596 bit_offset = extract_unorm_endpoints(mode, block, bit_offset, endpoints);
633 result[component] = interpolate(endpoints[subset_num * 2][component],
634 endpoints[subset_num * 2 + 1][component],
647 result[3] = interpolate(endpoints[subset_num * 2][3],
648 endpoints[subset_num * 2 + 1][3],
673 uint8_t endpoints[3 * 2][4];
723 bit_offset_head = extract_unorm_endpoints(mode, block, bit_offset_head, endpoints);
768 result[component] = interpolate(endpoints[subset_num * 2][component],
769 endpoints[subset_num * 2 + 1][component],
782 result[3] = interpolate(endpoints[subset_num * 2][3],
783 endpoints[subset_num * 2 + 1][3],
869 int32_t endpoints[][3],
883 memset(endpoints, 0, sizeof endpoints[0][0] * n_endpoints * 3);
892 endpoints[bitfield->endpoint][bitfield->component] |=
896 endpoints[bitfield->endpoint][bitfield->component] |=
902 /* The endpoints are specified as signed offsets from e0 */
905 value = util_sign_extend(endpoints[endpoint][component],
907 endpoints[endpoint][component] =
908 ((endpoints[0][component] + value) &
917 value = util_sign_extend(endpoints[endpoint][component],
919 endpoints[endpoint][component] =
926 endpoints[endpoint][component] =
927 unsigned_unquantize(endpoints[endpoint][component],
965 int32_t endpoints[2 * 2][3];
988 endpoints, is_signed);
1016 value = interpolate(endpoints[subset_num * 2][component],
1017 endpoints[subset_num * 2 + 1][component],
1047 int32_t endpoints[2 * 2][3];
1078 endpoints, is_signed);
1115 value = interpolate(endpoints[subset_num * 2][component],
1116 endpoints[subset_num * 2 + 1][component],
1206 uint8_t endpoints[][4])
1250 endpoints[0][i] = endpoints[1][i] =
1254 endpoints[0][i] = sums[0][i] / rgb_left_endpoint_count;
1255 endpoints[1][i] = (sums[1][i] /
1262 endpoints[0][3] = endpoints[1][3] =
1265 endpoints[0][3] = sums[0][3] / alpha_left_endpoint_count;
1266 endpoints[1][3] = (sums[1][3] /
1270 /* We may need to swap the endpoints to ensure the most-significant bit of
1275 endpoints[endpoint][0] +
1276 endpoints[endpoint][1] +
1277 endpoints[endpoint][2];
1283 memcpy(temp, endpoints[0], 3);
1284 memcpy(endpoints[0], endpoints[1], 3);
1285 memcpy(endpoints[1], temp, 3);
1288 /* Same for the alpha endpoints */
1290 midpoint = (endpoints[0][3] + endpoints[1][3]) / 2;
1292 if ((src[3] <= midpoint) != (endpoints[0][3] <= midpoint)) {
1293 temp[0] = endpoints[0][3];
1294 endpoints[0][3] = endpoints[1][3];
1295 endpoints[1][3] = temp[0];
1303 uint8_t endpoints[][4])
1313 endpoints[endpoint][0] +
1314 endpoints[endpoint][1] +
1315 endpoints[endpoint][2];
1318 /* If the endpoints have the same luminance then we'll just use index 0 for
1359 uint8_t endpoints[][4])
1364 /* If the endpoints have the same alpha then we'll just use index 0 for
1366 if (endpoints[0][3] == endpoints[1][3]) {
1373 index = (((int) src[3] - (int) endpoints[0][3]) * 7 /
1374 ((int) endpoints[1][3] - endpoints[0][3]));
1406 uint8_t endpoints[2][4];
1414 endpoints);
1424 /* Write the color endpoints */
1427 write_bits(&writer, 5, endpoints[endpoint][component] >> 3);
1429 /* Write the alpha endpoints */
1431 write_bits(&writer, 6, endpoints[endpoint][3] >> 2);
1436 endpoints);
1440 endpoints);
1509 float average_luminance, float endpoints[][3],
1545 endpoints[0][i] = endpoints[1][i] =
1549 endpoints[0][i] = sums[0][i] / left_endpoint_count;
1550 endpoints[1][i] = sums[1][i] / (width * height - left_endpoint_count);
1554 /* Clamp the endpoints to the range of a half float and strip out
1558 endpoints[endpoint][component] =
1559 clamp_value(endpoints[endpoint][component], is_signed);
1563 /* We may need to swap the endpoints to ensure the most-significant bit of
1568 endpoints[endpoint][0] +
1569 endpoints[endpoint][1] +
1570 endpoints[endpoint][2];
1576 memcpy(temp, endpoints[0], sizeof temp);
1577 memcpy(endpoints[0], endpoints[1], sizeof temp);
1578 memcpy(endpoints[1], temp, sizeof temp);
1586 float endpoints[][3])
1596 endpoints[endpoint][0] +
1597 endpoints[endpoint][1] +
1598 endpoints[endpoint][2];
1601 /* If the endpoints have the same luminance then we'll just use index 0 for
1675 float endpoints[2][3];
1683 average_luminance, endpoints, is_signed);
1691 /* Write the endpoints */
1695 get_endpoint_value(endpoints[endpoint][component], is_signed);
1703 endpoints);