Lines Matching defs:y2

451  * (x1, y1), (x2, y2) -  fixed point coordinates of the endpoints
473 void ProcessFixedLine(ProcessHandler* hnd,jint x1,jint y1,jint x2,jint y2,
478 jint c = ((x1 ^ x2) | (y1 ^ y2));
491 if (x1 == x2 || y1 == y2) {
495 ry2 = y2 + MDP_HALF_MULT;
499 jint dy = y2 - y1;
501 /* Floor of x1, y1, x2, y2 */
505 jint fy2 = y2 & MDP_W_MASK;
515 /* Boundary at the direction from (x1,y1) to (x2,y2) */
517 jint by1 = (y1 < y2) ? fy1 + MDP_MULT : fy1;
533 if (fx2 == x2 || fy2 == y2) {
538 ry2 = y2 + MDP_HALF_MULT;
540 /* Boundary at the direction from (x2,y2) to (x1,y1) */
542 jint by2 = (y1 > y2) ? fy2 + MDP_MULT : fy2;
545 jint cross = y2 + ((bx2 - x2)*dy)/dx;
551 cross = x2 + ((by2 - y2)*dx)/dy;
603 jint y2 = y0;
637 y1 = y2;
640 y2 = y0w + (py >> shift);
653 /* Bounding y2 by ye */
654 if (((ye-y2)^dy) < 0) {
655 y2 = ye;
658 hnd->pProcessFixedLine(hnd, x1, y1, x2, y2, pixelInfo, checkBounds,
667 hnd->pProcessFixedLine(hnd, x2, y2, xe, ye, pixelInfo, checkBounds,
1048 jint y2 = y0;
1124 y1 = y2;
1127 y2 = y0w + (py >> shift);
1140 /* Bounding y2 by ye */
1141 if (((ye-y2)^dy) < 0) {
1142 y2 = ye;
1145 hnd->pProcessFixedLine(hnd, x1, y1, x2, y2, pixelInfo, checkBounds,
1148 hnd->pProcessFixedLine(hnd, x2, y2, xe, ye, pixelInfo, checkBounds,
1375 jfloat y2 = coord2[1];
1385 TESTANDCLIP(yMin, yMax, y1, x1, y2, x2, jfloat, res);
1388 TESTANDCLIP(yMin, yMax, y2, x2, y1, x1, jfloat, res);
1395 x1, y1, x2, y2, jfloat, res);
1399 x2, y2, x1, y1, jfloat, res);
1406 Y2 = (jint)(y2*MDP_MULT);
1423 CLIPCLAMP(xMin, xMax, x1, y1, x2, y2, x3, y3, jfloat, res);
1440 CLIPCLAMP(xMin, xMax, x2, y2, x1, y1, x3, y3, jfloat, res);
1446 Y2 = (jint)(y2*MDP_MULT);
2094 void StoreFixedLine(ProcessHandler* hnd,jint x1,jint y1,jint x2,jint y2,
2118 TESTANDCLIP(outYMin, outYMax, y1, x1, y2, x2, jint, res);
2120 TESTANDCLIP(outYMin, outYMax, y2, x2, y1, x1, jint, res);
2125 CLIPCLAMP(outXMin, outXMax, x1, y1, x2, y2, x3, y3, jint, res);
2137 CLIPCLAMP(outXMin, outXMax, x2, y2, x1, y1, x3, y3, jint, res);
2142 StoreFixedLine(hnd, x1, y1, x2, y2, pixelInfo,
2147 StoreFixedLine(hnd, x2, y2, x3, y3, pixelInfo,
2162 FD_ADD_POINT(pfd, x2, y2, JNI_FALSE);