• Home
  • Raw
  • Download

Lines Matching refs:boxes

279 best_splittable_box (struct box *bv, unsigned int boxes, const double max_mse)  in best_splittable_box()  argument
285 for (i = 0; i < boxes; i++) { in best_splittable_box()
319 unsigned int boxes, hist_item * achv);
321 const struct box *bv, unsigned int boxes);
342 unsigned int boxes, const histogram * hist) in total_box_error_below_target() argument
349 for (i = 0; i < boxes; i++) { in total_box_error_below_target()
358 for (i = 0; i < boxes; i++) { in total_box_error_below_target()
382 unsigned int i, boxes, subset_size; in mediancut() local
401 boxes = 1; in mediancut()
409 while (boxes < newcolors) { in mediancut()
418 if (boxes == subset_size) { in mediancut()
419 representative_subset = pam_colormap (boxes, malloc, free); in mediancut()
420 set_colormap_from_boxes (representative_subset, bv, boxes, achv); in mediancut()
424 current_max_mse = max_mse + (boxes / (double) newcolors) * 16.0 * max_mse; in mediancut()
425 bi = best_splittable_box (bv, boxes, current_max_mse); in mediancut()
466 bv[boxes].ind = indx + break_at; in mediancut()
467 bv[boxes].colors = clrs - break_at; in mediancut()
468 bv[boxes].sum = sm - lowersum; in mediancut()
469 bv[boxes].color = in mediancut()
470 averagepixels (bv[boxes].colors, &achv[bv[boxes].ind], min_opaque_val, in mediancut()
472 bv[boxes].total_error = -1; in mediancut()
473 bv[boxes].variance = box_variance (achv, &bv[boxes]); in mediancut()
474 bv[boxes].max_error = box_max_error (achv, &bv[boxes]); in mediancut()
476 ++boxes; in mediancut()
478 if (total_box_error_below_target (target_mse, bv, boxes, hist)) { in mediancut()
483 map = pam_colormap (boxes, malloc, free); in mediancut()
484 set_colormap_from_boxes (map, bv, boxes, achv); in mediancut()
487 adjust_histogram (achv, map, bv, boxes); in mediancut()
493 set_colormap_from_boxes (colormap * map, struct box *bv, unsigned int boxes, in set_colormap_from_boxes() argument
504 for (unsigned int bi = 0; bi < boxes; ++bi) { in set_colormap_from_boxes()
518 unsigned int boxes) in adjust_histogram() argument
520 for (unsigned int bi = 0; bi < boxes; ++bi) { in adjust_histogram()