Lines Matching refs:numboxes
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
551 while (numboxes < desired_colors) in median_cut()
556 if (numboxes * 2 <= desired_colors) in median_cut()
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()
636 numboxes++; in median_cut()
638 return numboxes; in median_cut()
707 int numboxes; in select_colors() local
713 numboxes = 1; in select_colors()
723 numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors); in select_colors()
725 for (i = 0; i < numboxes; i++) in select_colors()
727 nim->colorsTotal = numboxes; in select_colors()