• Home
  • Raw
  • Download

Lines Matching refs:diff

734   float diff;                    /*difference from line */  in partition_line()  local
746 diff = ydiffs[blobindex]; /*diff from line */ in partition_line()
753 choose_partition(diff, partdiffs, bestpart, jumplimit, numparts); in partition_line()
763 diff = ydiffs[blobindex]; /*diff from line */ in partition_line()
770 choose_partition(diff, partdiffs, bestpart, jumplimit, numparts); in partition_line()
811 float diff; /*difference from line */ in merge_oldbl_parts() local
853 diff = m * coord.x () + c - coord.y (); in merge_oldbl_parts()
857 diff, coord.x (), coord.y ()); in merge_oldbl_parts()
858 if (diff < jumplimit && -diff < jumplimit) in merge_oldbl_parts()
870 diff = m * coord.x () + c - coord.y (); in merge_oldbl_parts()
874 diff, coord.x (), coord.y ()); in merge_oldbl_parts()
875 if (diff < jumplimit && -diff < jumplimit) in merge_oldbl_parts()
921 float diff; /*current difference */ in get_ydiffs() local
938 diff = blobcoords[blobindex].bottom (); in get_ydiffs()
939 diff -= spline->y (xcentre); in get_ydiffs()
940 diff += drift; in get_ydiffs()
941 ydiffs[blobindex] = diff; /*store difference */ in get_ydiffs()
945 diffsum += ABS (diff); /*add new one */ in get_ydiffs()
963 register float diff, /*diff from spline */ in choose_partition() argument
977 partdiffs[0] = diff; in choose_partition()
983 delta = diff - partdiffs[lastpart] - drift; in choose_partition()
985 tprintf ("Diff=%.2f, Delta=%.3f, Drift=%.3f, ", diff, delta, drift); in choose_partition()
989 bestdelta = diff - partdiffs[0] - drift; in choose_partition()
992 delta = diff - partdiffs[partition] - drift; in choose_partition()
1004 partdiffs[bestpart] = diff - drift; in choose_partition()
1479 register float diff; /*height difference */ in old_first_xheight() local
1512 diff = blobcoords[blobindex].top () - baseline->y (xcentre); in old_first_xheight()
1514 if (diff > lineheight + jumplimit) { in old_first_xheight()
1515 ascenders += diff; in old_first_xheight()
1518 else if (diff > lineheight - jumplimit) { in old_first_xheight()
1519 xsum += diff; /*mean xheight */ in old_first_xheight()