Home | History | Annotate | Download | only in src

Lines Matching refs:x2

89     int x1, y1, x2, y2;
99 x1 = pt1->x; y1 = pt1->y; x2 = pt2->x; y2 = pt2->y;
101 c2 = (x2 < 0) + (x2 > right) * 2 + (y2 < 0) * 4 + (y2 > bottom) * 8;
110 x1 += (int) (((int64) (a - y1)) * (x2 - x1) / (y2 - y1));
117 x2 += (int) (((int64) (a - y2)) * (x2 - x1) / (y2 - y1));
119 c2 = (x2 < 0) + (x2 > right) * 2;
126 y1 += (int) (((int64) (a - x1)) * (y2 - y1) / (x2 - x1));
133 y2 += (int) (((int64) (a - x2)) * (y2 - y1) / (x2 - x1));
134 x2 = a;
139 assert( (c1 & c2) != 0 || (x1 | y1 | x2 | y2) >= 0 );
143 pt2->x = x2;
998 int i, y, imin = 0, left = 0, right = 1, x1, x2;
1118 x2 = edge[right].x;
1123 int xx2 = (x2 + delta2) >> XY_SHIFT;
1136 x2 += edge[right].dx;
1139 edge[right].x = x2;
1344 int x2 = prelast->x;
1346 if( x1 > x2 )
1350 x1 = x2;
1351 x2 = t;
1355 x2 = x2 >> XY_SHIFT;
1358 if( x1 < size.width && x2 >= 0 )
1362 if( x2 >= size.width )
1363 x2 = size.width - 1;
1364 ICV_HLINE( timg, x1, x2, color, pix_size );