Lines Matching refs:boxlist
375 LOCAL (boxptr) find_biggest_color_pop (boxptr boxlist, int numboxes) in find_biggest_color_pop() argument
384 for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++) in find_biggest_color_pop()
396 LOCAL (boxptr) find_biggest_volume (boxptr boxlist, int numboxes) in find_biggest_volume() argument
405 for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++) in find_biggest_volume()
544 boxptr boxlist, int numboxes, int desired_colors) in median_cut() argument
558 b1 = find_biggest_color_pop (boxlist, numboxes); in median_cut()
562 b1 = find_biggest_volume (boxlist, numboxes); in median_cut()
566 b2 = &boxlist[numboxes]; /* where new box will go */ in median_cut()
706 boxptr boxlist; in select_colors() local
711 boxlist = (boxptr) safe_emalloc(desired_colors, sizeof (box), 1); in select_colors()
714 boxlist[0].c0min = 0; in select_colors()
715 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT; in select_colors()
716 boxlist[0].c1min = 0; in select_colors()
717 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT; in select_colors()
718 boxlist[0].c2min = 0; in select_colors()
719 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT; in select_colors()
721 update_box (oim, nim, cquantize, &boxlist[0]); in select_colors()
723 numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors); in select_colors()
726 compute_color (oim, nim, cquantize, &boxlist[i], i); in select_colors()
743 gdFree (boxlist); in select_colors()