Lines Matching refs:boxlist
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)
619 b1 = find_biggest_color_pop (boxlist, numboxes);
623 b1 = find_biggest_volume (boxlist, numboxes);
627 b2 = &boxlist[numboxes]; /* where new box will go */
788 boxptr boxlist; local
794 boxlist = (boxptr) (*cinfo->mem->alloc_small)
797 boxlist = (boxptr) safe_emalloc(desired_colors, sizeof (box), 1);
801 boxlist[0].c0min = 0;
802 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT;
803 boxlist[0].c1min = 0;
804 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT;
805 boxlist[0].c2min = 0;
806 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT;
809 update_box (cinfo, &boxlist[0]);
811 numboxes = median_cut (cinfo, boxlist, numboxes, desired_colors);
814 compute_color (cinfo, &boxlist[i], i);
819 update_box (oim, nim, cquantize, &boxlist[0]);
821 numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors);
824 compute_color (oim, nim, cquantize, &boxlist[i], i);
841 gdFree (boxlist);