Home
last modified time | relevance | path

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

/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dmediancut.c24 static f_pixel averagepixels (unsigned int clrs, const hist_item achv[],
49 box_variance (const hist_item achv[], const struct box *box) in box_variance() argument
55 f_pixel px = achv[box->ind + i].acolor; in box_variance()
56 double weight = achv[box->ind + i].adjusted_weight; in box_variance()
69 box_max_error (const hist_item achv[], const struct box *box) in box_max_error() argument
76 const double diff = colordifference (mean, achv[box->ind + i].acolor); in box_max_error()
201 static f_pixel get_median (const struct box *b, hist_item achv[]);
220 prepare_sort (struct box *b, hist_item achv[]) in prepare_sort() argument
236 const float *chans = (const float *) &achv[b->ind + i].acolor; in prepare_sort()
239 achv[b->ind + i].tmp.sort_value = in prepare_sort()
[all …]
Dviter.c85 hist_item *const achv = hist->achv; in viter_do_iteration() local
94 nearest_search (n, achv[j].acolor, achv[j].tmp.likely_colormap_index, in viter_do_iteration()
96 achv[j].tmp.likely_colormap_index = match; in viter_do_iteration()
97 total_diff += diff * achv[j].perceptual_weight; in viter_do_iteration()
99 viter_update_color (achv[j].acolor, achv[j].perceptual_weight, map, match, in viter_do_iteration()
103 callback (&achv[j], diff); in viter_do_iteration()
Dpam.c214 hist->achv[j].acolor = to_f(gamma_lut, entry.color.rgba); \
215 …total_weight += hist->achv[j].adjusted_weight = hist->achv[j].perceptual_weight = MIN(entry.percep…
232 .achv = malloc (acht->colors * sizeof (hist->achv[0])),.size = in pam_acolorhashtoacolorhist()
234 if (!hist->achv) in pam_acolorhashtoacolorhist()
273 hist->free (hist->achv); in pam_freeacolorhist()
Dlibimagequant.c1434 if (colordifference (hist->achv[j].acolor, in remove_fixed_colors_from_histogram()
1436 …hist->achv[j] = hist->achv[--hist->size]; // remove color from histogram by overwriting with t… in remove_fixed_colors_from_histogram()
1826 hist->achv[j].adjusted_weight = in find_best_palette()
1827 (hist->achv[j].perceptual_weight + in find_best_palette()
1828 hist->achv[j].adjusted_weight) / 2.0; in find_best_palette()
1866 acolormap->palette[i].acolor = hist->achv[i].acolor; in pngquant_quantize()
1867 acolormap->palette[i].popularity = hist->achv[i].perceptual_weight; in pngquant_quantize()
1896 if (hist->achv[j].tmp.likely_colormap_index >= acolormap->colors) { in pngquant_quantize()
1897 …hist->achv[j].tmp.likely_colormap_index = 0; // actual value doesn't matter, as the guess i… in pngquant_quantize()
Dpam.h243 hist_item *achv; member