Searched refs:Computed_colors (Results 1 – 5 of 5) sorted by relevance
275 Computed_colors[add_index].r = r; in add_computed_color()276 Computed_colors[add_index].g = g; in add_computed_color()277 Computed_colors[add_index].b = b; in add_computed_color()299 if (r == Computed_colors[i].r) in gr_find_closest_color()300 if (g == Computed_colors[i].g) in gr_find_closest_color()301 if (b == Computed_colors[i].b) { in gr_find_closest_color()304 trec = Computed_colors[i-1]; in gr_find_closest_color()305 Computed_colors[i-1] = Computed_colors[i]; in gr_find_closest_color()306 Computed_colors[i] = trec; in gr_find_closest_color()307 return Computed_colors[i-1].color_num; in gr_find_closest_color()[all …]
130 Computed_colors[add_index].r = r; in add_computed_color()131 Computed_colors[add_index].g = g; in add_computed_color()132 Computed_colors[add_index].b = b; in add_computed_color()154 if (r == Computed_colors[i].r) in gr_find_closest_color()155 if (g == Computed_colors[i].g) in gr_find_closest_color()156 if (b == Computed_colors[i].b) { in gr_find_closest_color()159 trec = Computed_colors[i-1]; in gr_find_closest_color()160 Computed_colors[i-1] = Computed_colors[i]; in gr_find_closest_color()161 Computed_colors[i] = trec; in gr_find_closest_color()162 return Computed_colors[i-1].color_num; in gr_find_closest_color()[all …]
131 Computed_colors[add_index].r = r; in add_computed_color()132 Computed_colors[add_index].g = g; in add_computed_color()133 Computed_colors[add_index].b = b; in add_computed_color()155 if (r == Computed_colors[i].r) in gr_find_closest_color()156 if (g == Computed_colors[i].g) in gr_find_closest_color()157 if (b == Computed_colors[i].b) { in gr_find_closest_color()160 trec = Computed_colors[i-1]; in gr_find_closest_color()161 Computed_colors[i-1] = Computed_colors[i]; in gr_find_closest_color()162 Computed_colors[i] = trec; in gr_find_closest_color()163 return Computed_colors[i-1].color_num; in gr_find_closest_color()[all …]
195 Computed_colors[add_index].r = r; in add_computed_color()196 Computed_colors[add_index].g = g; in add_computed_color()197 Computed_colors[add_index].b = b; in add_computed_color()219 if (r == Computed_colors[i].r) in gr_find_closest_color()220 if (g == Computed_colors[i].g) in gr_find_closest_color()221 if (b == Computed_colors[i].b) { in gr_find_closest_color()224 trec = Computed_colors[i-1]; in gr_find_closest_color()225 Computed_colors[i-1] = Computed_colors[i]; in gr_find_closest_color()226 Computed_colors[i] = trec; in gr_find_closest_color()227 return Computed_colors[i-1].color_num; in gr_find_closest_color()[all …]
234 static std::array<color_record, 32> Computed_colors; in gr_find_closest_color() local239 auto &c = Computed_colors[i]; in gr_find_closest_color()245 std::swap(Computed_colors[i-1], c); in gr_find_closest_color()254 auto &cc = (num_computed_colors < Computed_colors.size()) in gr_find_closest_color()255 ? Computed_colors[Num_computed_colors++] in gr_find_closest_color()256 : Computed_colors.back(); in gr_find_closest_color()