D | k_means_template.h | 24 #define RENAME(x) RENAME_(x, AV1_K_MEANS_DIM) macro 26 static int RENAME(calc_dist)(const int *p1, const int *p2) { in RENAME() function 35 void RENAME(av1_calc_indices)(const int *data, const int *centroids, in RENAME() function 38 int min_dist = RENAME(calc_dist)(data + i * AV1_K_MEANS_DIM, centroids); in RENAME() 41 const int this_dist = RENAME(calc_dist)(data + i * AV1_K_MEANS_DIM, in RENAME() 51 static void RENAME(calc_centroids)(const int *data, int *centroids, in RENAME() function 82 static int64_t RENAME(calc_total_dist)(const int *data, const int *centroids, in RENAME() function 87 dist += RENAME(calc_dist)(data + i * AV1_K_MEANS_DIM, in RENAME() 93 void RENAME(av1_k_means)(const int *data, int *centroids, uint8_t *indices, in RENAME() function 98 RENAME(av1_calc_indices)(data, centroids, indices, n, k); in RENAME() [all …]
|