Home
last modified time | relevance | path

Searched refs:dxdy (Results 1 – 18 of 18) sorted by relevance

/external/mesa3d/src/mesa/swrast/
Ds_aatritemp.h182 const GLfloat dxdy = majDx / majDy; variable
183 const GLfloat xAdj = dxdy < 0.0F ? -dxdy : 0.0F;
189 GLfloat x = pMin[0] - (yMin - iy) * dxdy;
251 const GLfloat dxdy = majDx / majDy; variable
252 const GLfloat xAdj = dxdy > 0 ? dxdy : 0.0F;
258 GLfloat x = pMin[0] - (yMin - iy) * dxdy;
Ds_tritemp.h125 GLfloat dxdy; /* dx/dy */ in NAME() member
260 eMaj.dxdy = eMaj.dx / eMaj.dy; in NAME()
261 eMaj.fdxdy = SignedFloatToFixed(eMaj.dxdy); in NAME()
264 eMaj.fsx = eMaj.fx0 + (GLfixed) (eMaj.adjy * eMaj.dxdy); in NAME()
273 eTop.dxdy = eTop.dx / eTop.dy; in NAME()
274 eTop.fdxdy = SignedFloatToFixed(eTop.dxdy); in NAME()
277 eTop.fsx = eTop.fx0 + (GLfixed) (eTop.adjy * eTop.dxdy); in NAME()
283 eBot.dxdy = eBot.dx / eBot.dy; in NAME()
284 eBot.fdxdy = SignedFloatToFixed(eBot.dxdy); in NAME()
287 eBot.fsx = eBot.fx0 + (GLfixed) (eBot.adjy * eBot.dxdy); in NAME()
Ds_aaline.c416 GLfloat dxdy = line->dx / line->dy; in segment() local
456 xLeft += dxdy; in segment()
457 xRight += dxdy; in segment()
/external/skia/samplecode/
DSamplePathClip.cpp85 double dxdy = (double)(p1.fX - p0.fX) / (p1.fY - p0.fY); local
87 p0.fX = SkDoubleToScalar(p0.fX + dxdy * (bounds.top() - p0.fY));
91 p1.fX = SkDoubleToScalar(p1.fX + dxdy * (bounds.bottom() - p1.fY));
117 float y = SkDoubleToScalar(p0.fY + (bounds.left() - p0.fX) / dxdy);
123 float y = SkDoubleToScalar(p0.fY + (bounds.right() - p0.fX) / dxdy);
/external/skqp/samplecode/
DSamplePathClip.cpp93 double dxdy = (double)(p1.fX - p0.fX) / (p1.fY - p0.fY); local
95 p0.fX = SkDoubleToScalar(p0.fX + dxdy * (bounds.top() - p0.fY));
99 p1.fX = SkDoubleToScalar(p1.fX + dxdy * (bounds.bottom() - p1.fY));
125 float y = SkDoubleToScalar(p0.fY + (bounds.left() - p0.fX) / dxdy);
131 float y = SkDoubleToScalar(p0.fY + (bounds.right() - p0.fX) / dxdy);
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_line.c459 const float dxdy = dx / dy; in try_setup_line() local
485 float xintersect = fracf(v1[0][0]) + y1diff * dxdy; in try_setup_line()
503 float xintersect = fracf(v2[0][0]) + y2diff * dxdy; in try_setup_line()
523 x_offset_end = y_offset_end * dxdy; in try_setup_line()
527 x_offset = y_offset * dxdy; in try_setup_line()
534 x_offset = y_offset * dxdy; in try_setup_line()
539 x_offset_end = y_offset_end * dxdy; in try_setup_line()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c57 float dxdy; /**< dx/dy */ member
680 setup->emaj.dxdy = setup->emaj.dy ? setup->emaj.dx / setup->emaj.dy : .0f; in setup_tri_edges()
681 setup->emaj.sx = vmin_x + (setup->emaj.sy - vmin_y) * setup->emaj.dxdy; in setup_tri_edges()
685 setup->etop.dxdy = setup->etop.dy ? setup->etop.dx / setup->etop.dy : .0f; in setup_tri_edges()
686 setup->etop.sx = vmid_x + (setup->etop.sy - vmid_y) * setup->etop.dxdy; in setup_tri_edges()
690 setup->ebot.dxdy = setup->ebot.dy ? setup->ebot.dx / setup->ebot.dy : .0f; in setup_tri_edges()
691 setup->ebot.sx = vmin_x + (setup->ebot.sy - vmin_y) * setup->ebot.dxdy; in setup_tri_edges()
741 int left = (int)(eleft->sx + y * eleft->dxdy); in subtriangle()
742 int right = (int)(eright->sx + y * eright->dxdy); in subtriangle()
765 eleft->sx += lines * eleft->dxdy; in subtriangle()
[all …]
/external/skia/src/core/
DSkPathRef.cpp514 SkVector dxdy; in getRRect() local
517 dxdy.set(SkScalarAbs(v1_0.fX), SkScalarAbs(v2_1.fY)); in getRRect()
520 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v2_1.fY)); in getRRect()
523 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v1_0.fY)); in getRRect()
532 radii[corner] = dxdy; in getRRect()
/external/skqp/src/core/
DSkPathRef.cpp750 SkVector dxdy; in getRRect() local
753 dxdy.set(SkScalarAbs(v1_0.fX), SkScalarAbs(v2_1.fY)); in getRRect()
756 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v2_1.fY)); in getRRect()
759 dxdy.set(SkScalarAbs(v2_1.fX), SkScalarAbs(v1_0.fY)); in getRRect()
768 radii[corner] = dxdy; in getRRect()
/external/skqp/src/pathops/
DSkOpSegment.cpp835 SkDVector dxdy = (*CurveDSlopeAtT[this->verb()])(this->pts(), this->weight(), t); in isClose() local
836 SkDLine perp = {{ cPt, {cPt.fX + dxdy.fY, cPt.fY - dxdy.fX} }}; in isClose()
1681 SkDVector dxdy = (*CurveDDSlopeAtT[fVerb])(curvePart, 0.5f); in testForCoincidence() local
1683 SkDLine ray = {{{midPt.fX, midPt.fY}, {partMidPt.fX + dxdy.fY, partMidPt.fY - dxdy.fX}}}; in testForCoincidence()
DSkPathOpsTSect.cpp14 SkDVector dxdy = c1.dxdyAtT(t); in setPerp() local
15 SkDLine perp = {{ cPt, {cPt.fX + dxdy.fY, cPt.fY - dxdy.fX} }}; in setPerp()
1239 SkDVector dxdy = this->fCurve.dxdyAtT(t); in matchedDirection() local
1241 return dxdy.dot(dxdy2) >= 0; in matchedDirection()
DSkOpCoincidence.cpp304 SkDVector dxdy = baseSeg->dSlopeAtT(base->t()); in addEndMovedSpans() local
306 SkDLine ray = {{{pt.fX, pt.fY}, {pt.fX + dxdy.fY, pt.fY - dxdy.fX}}}; in addEndMovedSpans()
DSkPathOpsDebug.cpp1505 SkDVector dxdy = baseSeg->dSlopeAtT(base->t()); in debugAddEndMovedSpans() local
1507 SkDLine ray = {{{pt.fX, pt.fY}, {pt.fX + dxdy.fY, pt.fY - dxdy.fX}}}; in debugAddEndMovedSpans()
/external/skia/src/pathops/
DSkOpSegment.cpp835 SkDVector dxdy = (*CurveDSlopeAtT[this->verb()])(this->pts(), this->weight(), t); in isClose() local
836 SkDLine perp = {{ cPt, {cPt.fX + dxdy.fY, cPt.fY - dxdy.fX} }}; in isClose()
1681 SkDVector dxdy = (*CurveDDSlopeAtT[fVerb])(curvePart, 0.5f); in testForCoincidence() local
1683 SkDLine ray = {{{midPt.fX, midPt.fY}, {partMidPt.fX + dxdy.fY, partMidPt.fY - dxdy.fX}}}; in testForCoincidence()
DSkPathOpsTSect.cpp15 SkDVector dxdy = c1.dxdyAtT(t); in setPerp() local
16 SkDLine perp = {{ cPt, {cPt.fX + dxdy.fY, cPt.fY - dxdy.fX} }}; in setPerp()
1240 SkDVector dxdy = this->fCurve.dxdyAtT(t); in matchedDirection() local
1242 return dxdy.dot(dxdy2) >= 0; in matchedDirection()
DSkOpCoincidence.cpp304 SkDVector dxdy = baseSeg->dSlopeAtT(base->t()); in addEndMovedSpans() local
306 SkDLine ray = {{{pt.fX, pt.fY}, {pt.fX + dxdy.fY, pt.fY - dxdy.fX}}}; in addEndMovedSpans()
DSkPathOpsDebug.cpp1482 SkDVector dxdy = baseSeg->dSlopeAtT(base->t()); in debugAddEndMovedSpans() local
1484 SkDLine ray = {{{pt.fX, pt.fY}, {pt.fX + dxdy.fY, pt.fY - dxdy.fX}}}; in debugAddEndMovedSpans()
/external/mesa3d/src/imgui/
Dimstb_truetype.h2746 float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); in stbtt__new_active() local
2751 if (dxdy < 0) in stbtt__new_active()
2752 z->dx = -STBTT_ifloor(STBTT_FIX * -dxdy); in stbtt__new_active()
2754 z->dx = STBTT_ifloor(STBTT_FIX * dxdy); in stbtt__new_active()
2768 float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); in stbtt__new_active() local
2772 z->fdx = dxdy; in stbtt__new_active()
2773 z->fdy = dxdy != 0.0f ? (1.0f/dxdy) : 0.0f; in stbtt__new_active()
2774 z->fx = e->x0 + dxdy * (start_point - e->y0); in stbtt__new_active()