Home
last modified time | relevance | path

Searched refs:centroids (Results 1 – 1 of 1) sorted by relevance

/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dnearest.c141 struct nearest_map *centroids = mempool_create (&m, in nearest_init() local
142 sizeof (*centroids) + heads_size /* heads array is appended to it */ , in nearest_init()
149 centroids->mempool = m; in nearest_init()
153 centroids->nearest_other_color_dist[i] = dist / 4.f; // half of squared distance in nearest_init()
156 centroids->map = map; in nearest_init()
171 centroids->heads[h] = in nearest_init()
173 &centroids->mempool, error_margin, skip_index, &skipped); in nearest_init()
174 if (centroids->heads[h].num_candidates == 0) { in nearest_init()
187 centroids->heads[h] = build_head ((f_pixel) { in nearest_init()
189 , map, map->colors, &centroids->mempool, error_margin, in nearest_init()
[all …]