Lines Matching refs:numboxes
423 LOCAL (boxptr) find_biggest_color_pop (boxptr boxlist, int numboxes) argument
432 for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++)
444 LOCAL (boxptr) find_biggest_volume (boxptr boxlist, int numboxes) argument
453 for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++)
600 median_cut (j_decompress_ptr cinfo, boxptr boxlist, int numboxes, argument
604 boxptr boxlist, int numboxes, int desired_colors)
612 while (numboxes < desired_colors)
617 if (numboxes * 2 <= desired_colors)
619 b1 = find_biggest_color_pop (boxlist, numboxes);
623 b1 = find_biggest_volume (boxlist, numboxes);
627 b2 = &boxlist[numboxes]; /* where new box will go */
702 numboxes++;
704 return numboxes;
789 int numboxes; local
800 numboxes = 1;
811 numboxes = median_cut (cinfo, boxlist, numboxes, desired_colors);
813 for (i = 0; i < numboxes; i++)
815 cinfo->actual_number_of_colors = numboxes;
816 TRACEMS1 (cinfo, 1, JTRC_QUANT_SELECTED, numboxes);
821 numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors);
823 for (i = 0; i < numboxes; i++)
825 nim->colorsTotal = numboxes;