Lines Matching refs:endpoints
357 uint8_t endpoints[][4]) in extract_unorm_endpoints()
369 endpoints[subset * 2 + endpoint][component] = in extract_unorm_endpoints()
380 endpoints[subset * 2 + endpoint][3] = in extract_unorm_endpoints()
390 endpoints[subset * 2 + endpoint][3] = 255; in extract_unorm_endpoints()
403 endpoints[subset * 2 + endpoint][component] <<= 1; in extract_unorm_endpoints()
404 endpoints[subset * 2 + endpoint][component] |= pbit; in extract_unorm_endpoints()
415 endpoints[subset * 2 + endpoint][component] <<= 1; in extract_unorm_endpoints()
416 endpoints[subset * 2 + endpoint][component] |= pbit; in extract_unorm_endpoints()
426 endpoints[subset * 2 + endpoint][component] = in extract_unorm_endpoints()
427 expand_component(endpoints[subset * 2 + endpoint][component], in extract_unorm_endpoints()
434 endpoints[subset * 2 + endpoint][3] = in extract_unorm_endpoints()
435 expand_component(endpoints[subset * 2 + endpoint][3], in extract_unorm_endpoints()
551 uint8_t endpoints[3 * 2][4]; in fetch_rgba_unorm_from_block() local
596 bit_offset = extract_unorm_endpoints(mode, block, bit_offset, endpoints); in fetch_rgba_unorm_from_block()
633 result[component] = interpolate(endpoints[subset_num * 2][component], in fetch_rgba_unorm_from_block()
634 endpoints[subset_num * 2 + 1][component], in fetch_rgba_unorm_from_block()
647 result[3] = interpolate(endpoints[subset_num * 2][3], in fetch_rgba_unorm_from_block()
648 endpoints[subset_num * 2 + 1][3], in fetch_rgba_unorm_from_block()
673 uint8_t endpoints[3 * 2][4]; in decompress_rgba_unorm_block() local
723 bit_offset_head = extract_unorm_endpoints(mode, block, bit_offset_head, endpoints); in decompress_rgba_unorm_block()
768 result[component] = interpolate(endpoints[subset_num * 2][component], in decompress_rgba_unorm_block()
769 endpoints[subset_num * 2 + 1][component], in decompress_rgba_unorm_block()
782 result[3] = interpolate(endpoints[subset_num * 2][3], in decompress_rgba_unorm_block()
783 endpoints[subset_num * 2 + 1][3], in decompress_rgba_unorm_block()
879 int32_t endpoints[][3], in extract_float_endpoints()
893 memset(endpoints, 0, sizeof endpoints[0][0] * n_endpoints * 3); in extract_float_endpoints()
902 endpoints[bitfield->endpoint][bitfield->component] |= in extract_float_endpoints()
906 endpoints[bitfield->endpoint][bitfield->component] |= in extract_float_endpoints()
915 value = sign_extend(endpoints[endpoint][component], in extract_float_endpoints()
917 endpoints[endpoint][component] = in extract_float_endpoints()
918 ((endpoints[0][component] + value) & in extract_float_endpoints()
927 value = sign_extend(endpoints[endpoint][component], in extract_float_endpoints()
929 endpoints[endpoint][component] = in extract_float_endpoints()
936 endpoints[endpoint][component] = in extract_float_endpoints()
937 unsigned_unquantize(endpoints[endpoint][component], in extract_float_endpoints()
975 int32_t endpoints[2 * 2][3]; in fetch_rgb_float_from_block() local
998 endpoints, is_signed); in fetch_rgb_float_from_block()
1026 value = interpolate(endpoints[subset_num * 2][component], in fetch_rgb_float_from_block()
1027 endpoints[subset_num * 2 + 1][component], in fetch_rgb_float_from_block()
1057 int32_t endpoints[2 * 2][3]; in decompress_rgb_float_block() local
1088 endpoints, is_signed); in decompress_rgb_float_block()
1125 value = interpolate(endpoints[subset_num * 2][component], in decompress_rgb_float_block()
1126 endpoints[subset_num * 2 + 1][component], in decompress_rgb_float_block()
1216 uint8_t endpoints[][4]) in get_rgba_endpoints_unorm()
1260 endpoints[0][i] = endpoints[1][i] = in get_rgba_endpoints_unorm()
1264 endpoints[0][i] = sums[0][i] / rgb_left_endpoint_count; in get_rgba_endpoints_unorm()
1265 endpoints[1][i] = (sums[1][i] / in get_rgba_endpoints_unorm()
1272 endpoints[0][3] = endpoints[1][3] = in get_rgba_endpoints_unorm()
1275 endpoints[0][3] = sums[0][3] / alpha_left_endpoint_count; in get_rgba_endpoints_unorm()
1276 endpoints[1][3] = (sums[1][3] / in get_rgba_endpoints_unorm()
1285 endpoints[endpoint][0] + in get_rgba_endpoints_unorm()
1286 endpoints[endpoint][1] + in get_rgba_endpoints_unorm()
1287 endpoints[endpoint][2]; in get_rgba_endpoints_unorm()
1293 memcpy(temp, endpoints[0], 3); in get_rgba_endpoints_unorm()
1294 memcpy(endpoints[0], endpoints[1], 3); in get_rgba_endpoints_unorm()
1295 memcpy(endpoints[1], temp, 3); in get_rgba_endpoints_unorm()
1300 midpoint = (endpoints[0][3] + endpoints[1][3]) / 2; in get_rgba_endpoints_unorm()
1302 if ((src[3] <= midpoint) != (endpoints[0][3] <= midpoint)) { in get_rgba_endpoints_unorm()
1303 temp[0] = endpoints[0][3]; in get_rgba_endpoints_unorm()
1304 endpoints[0][3] = endpoints[1][3]; in get_rgba_endpoints_unorm()
1305 endpoints[1][3] = temp[0]; in get_rgba_endpoints_unorm()
1313 uint8_t endpoints[][4]) in write_rgb_indices_unorm()
1323 endpoints[endpoint][0] + in write_rgb_indices_unorm()
1324 endpoints[endpoint][1] + in write_rgb_indices_unorm()
1325 endpoints[endpoint][2]; in write_rgb_indices_unorm()
1369 uint8_t endpoints[][4]) in write_alpha_indices_unorm()
1376 if (endpoints[0][3] == endpoints[1][3]) { in write_alpha_indices_unorm()
1383 index = (((int) src[3] - (int) endpoints[0][3]) * 7 / in write_alpha_indices_unorm()
1384 ((int) endpoints[1][3] - endpoints[0][3])); in write_alpha_indices_unorm()
1416 uint8_t endpoints[2][4]; in compress_rgba_unorm_block() local
1424 endpoints); in compress_rgba_unorm_block()
1437 write_bits(&writer, 5, endpoints[endpoint][component] >> 3); in compress_rgba_unorm_block()
1441 write_bits(&writer, 6, endpoints[endpoint][3] >> 2); in compress_rgba_unorm_block()
1446 endpoints); in compress_rgba_unorm_block()
1450 endpoints); in compress_rgba_unorm_block()
1519 float average_luminance, float endpoints[][3], in get_endpoints_float()
1555 endpoints[0][i] = endpoints[1][i] = in get_endpoints_float()
1559 endpoints[0][i] = sums[0][i] / left_endpoint_count; in get_endpoints_float()
1560 endpoints[1][i] = sums[1][i] / (width * height - left_endpoint_count); in get_endpoints_float()
1568 endpoints[endpoint][component] = in get_endpoints_float()
1569 clamp_value(endpoints[endpoint][component], is_signed); in get_endpoints_float()
1578 endpoints[endpoint][0] + in get_endpoints_float()
1579 endpoints[endpoint][1] + in get_endpoints_float()
1580 endpoints[endpoint][2]; in get_endpoints_float()
1586 memcpy(temp, endpoints[0], sizeof temp); in get_endpoints_float()
1587 memcpy(endpoints[0], endpoints[1], sizeof temp); in get_endpoints_float()
1588 memcpy(endpoints[1], temp, sizeof temp); in get_endpoints_float()
1596 float endpoints[][3]) in write_rgb_indices_float()
1606 endpoints[endpoint][0] + in write_rgb_indices_float()
1607 endpoints[endpoint][1] + in write_rgb_indices_float()
1608 endpoints[endpoint][2]; in write_rgb_indices_float()
1685 float endpoints[2][3]; in compress_rgb_float_block() local
1693 average_luminance, endpoints, is_signed); in compress_rgb_float_block()
1705 get_endpoint_value(endpoints[endpoint][component], is_signed); in compress_rgb_float_block()
1713 endpoints); in compress_rgb_float_block()