Lines Matching refs:best_d
124 int x, y, i, j, match, d, best_d, av_uninit(best_j); in count_colors() local
139 best_d = INT_MAX; in count_colors()
143 if (d < best_d) { in count_colors()
144 best_d = d; in count_colors()
195 int best_d = color_distance(refcolor[i], pseudopal[selected[i]]); in select_palette() local
198 if (d < best_d) { in select_palette()
200 best_d = d; in select_palette()
217 int i, j, d, best_d; in build_color_map() local
224 best_d = INT_MAX; in build_color_map()
227 if (d < best_d) { in build_color_map()
229 best_d = d; in build_color_map()