Lines Matching refs:b1
549 register boxptr b1, b2; in median_cut() local
558 b1 = find_biggest_color_pop (boxlist, numboxes); in median_cut()
562 b1 = find_biggest_volume (boxlist, numboxes); in median_cut()
564 if (b1 == NULL) /* no splittable boxes left! */ in median_cut()
568 b2->c0max = b1->c0max; in median_cut()
569 b2->c1max = b1->c1max; in median_cut()
570 b2->c2max = b1->c2max; in median_cut()
571 b2->c0min = b1->c0min; in median_cut()
572 b2->c1min = b1->c1min; in median_cut()
573 b2->c2min = b1->c2min; in median_cut()
578 c0 = ((b1->c0max - b1->c0min) << C0_SHIFT) * C0_SCALE; in median_cut()
579 c1 = ((b1->c1max - b1->c1min) << C1_SHIFT) * C1_SCALE; in median_cut()
580 c2 = ((b1->c2max - b1->c2min) << C2_SHIFT) * C2_SCALE; in median_cut()
618 lb = (b1->c0max + b1->c0min) / 2; in median_cut()
619 b1->c0max = lb; in median_cut()
623 lb = (b1->c1max + b1->c1min) / 2; in median_cut()
624 b1->c1max = lb; in median_cut()
628 lb = (b1->c2max + b1->c2min) / 2; in median_cut()
629 b1->c2max = lb; in median_cut()
634 update_box (oim, nim, cquantize, b1); in median_cut()