/external/opencv/cxcore/src/ |
D | cxdrawing.cpp | 81 cvClipLine( CvSize img_size, CvPoint* pt1, CvPoint* pt2 ) in cvClipLine() argument 93 if( !pt1 || !pt2 ) in cvClipLine() 99 x1 = pt1->x; y1 = pt1->y; x2 = pt2->x; y2 = pt2->y; in cvClipLine() 141 pt1->x = x1; in cvClipLine() 142 pt1->y = y1; in cvClipLine() 160 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2, in cvInitLineIterator() argument 183 if( (unsigned)pt1.x >= (unsigned)(mat->width) || in cvInitLineIterator() 185 (unsigned)pt1.y >= (unsigned)(mat->height) || in cvInitLineIterator() 193 dx = pt2.x - pt1.x; in cvInitLineIterator() 194 dy = pt2.y - pt1.y; in cvInitLineIterator() [all …]
|
/external/fonttools/Lib/fontTools/misc/ |
D | bezierTools.py | 24 def calcQuadraticBounds(pt1, pt2, pt3): argument 33 (ax, ay), (bx, by), (cx, cy) = calcQuadraticParameters(pt1, pt2, pt3) 41 points = [(ax*t*t + bx*t + cx, ay*t*t + by*t + cy) for t in roots if 0 <= t < 1] + [pt1, pt3] 45 def calcCubicBounds(pt1, pt2, pt3, pt4): argument 56 (ax, ay), (bx, by), (cx, cy), (dx, dy) = calcCubicParameters(pt1, pt2, pt3, pt4) 66 … = [(ax*t*t*t + bx*t*t + cx * t + dx, ay*t*t*t + by*t*t + cy * t + dy) for t in roots] + [pt1, pt4] 70 def splitLine(pt1, pt2, where, isHorizontal): argument 89 pt1x, pt1y = pt1 99 return [(pt1, pt2)] 104 return [(pt1, midPt), (midPt, pt2)] [all …]
|
/external/opencv/cv/src/ |
D | cvpgh.cpp | 192 CvPoint pt1, pt2; in icvCalcPGH() local 195 CV_READ_EDGE( pt1, pt2, reader1 ); in icvCalcPGH() 197 dx = pt2.x - pt1.x; in icvCalcPGH() 198 dy = pt2.y - pt1.y; in icvCalcPGH() 214 CvPoint pt1, pt2; in icvCalcPGH() local 218 CV_READ_EDGE( pt1, pt2, reader1 ); in icvCalcPGH() 220 dx = pt2.x - pt1.x; in icvCalcPGH() 221 dy = pt2.y - pt1.y; in icvCalcPGH() 242 int d1 = (pt3.y - pt1.y) * dx - (pt3.x - pt1.x) * dy; in icvCalcPGH() 243 int d2 = (pt4.y - pt1.y) * dx - (pt2.x - pt1.x) * dy; in icvCalcPGH()
|
D | cvcontourtree.cpp | 73 CvPoint *pt1, *pt2; /* pointer to current points */ in icvCreateContourTree() local 160 pt1 = pt_p; in icvCreateContourTree() 171 pt1 = pt_p; in icvCreateContourTree() 181 pt1 = pt_n; in icvCreateContourTree() 187 t = pt1[0]; in icvCreateContourTree() 189 tp1 = pt1[i - 1]; in icvCreateContourTree() 191 tp2 = pt1[i - 2]; in icvCreateContourTree() 193 tp3 = pt1[i - 3]; in icvCreateContourTree() 195 tn1 = pt1[1]; in icvCreateContourTree() 197 tn2 = pt1[2]; in icvCreateContourTree() [all …]
|
D | _cvgeom.h | 46 CV_INLINE float icvDistanceL2_32f( CvPoint2D32f pt1, CvPoint2D32f pt2 ) in icvDistanceL2_32f() argument 48 float dx = pt2.x - pt1.x; in icvDistanceL2_32f() 49 float dy = pt2.y - pt1.y; in icvDistanceL2_32f()
|
/external/fonttools/Lib/fontTools/pens/ |
D | basePen.py | 164 def _curveToOne(self, pt1, pt2, pt3): argument 175 def _qCurveToOne(self, pt1, pt2): argument 181 pt1x, pt1y = pt1 245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points): 246 _curveToOne(pt1, pt2, pt3) 277 for pt1, pt2 in decomposeQuadraticSegment(points): 278 _qCurveToOne(pt1, pt2) 297 pt1, pt2, pt3 = points[0], None, None 312 bezierSegments.append((pt1, pt2, pt3)) 313 pt1, pt2, pt3 = temp, None, None [all …]
|
/external/skia/src/pathops/ |
D | SkPathWriter.cpp | 33 void SkPathWriter::conicTo(const SkPoint& pt1, const SkOpPtT* pt2, SkScalar weight) { in conicTo() argument 37 pt1.fX, pt1.fY, pt2->fPt.fX, pt2->fPt.fY, weight); in conicTo() 39 fCurrent.conicTo(pt1, pt2->fPt, weight); in conicTo() 42 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkOpPtT* pt3) { in cubicTo() argument 46 pt1.fX, pt1.fY, pt2.fX, pt2.fY, pt3->fPt.fX, pt3->fPt.fY); in cubicTo() 48 fCurrent.cubicTo(pt1, pt2, pt3->fPt); in cubicTo() 145 void SkPathWriter::quadTo(const SkPoint& pt1, const SkOpPtT* pt2) { in quadTo() argument 149 pt1.fX, pt1.fY, pt2->fPt.fX, pt2->fPt.fY); in quadTo() 151 fCurrent.quadTo(pt1, pt2->fPt); in quadTo()
|
D | SkPathWriter.h | 24 void conicTo(const SkPoint& pt1, const SkOpPtT* pt2, SkScalar weight); 25 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkOpPtT* pt3); 33 void quadTo(const SkPoint& pt1, const SkOpPtT* pt2);
|
D | SkIntersections.cpp | 98 void SkIntersections::insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2) { in insertNear() argument 101 SkASSERT(pt1 != pt2); in insertNear() 103 (void) insert(one, two, pt1); in insertNear()
|
/external/pdfium/fpdfsdk/pdfwindow/ |
D | PWL_ScrollBar.cpp | 146 CFX_PointF pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f, ptCenter.y); in GetThisAppearanceStream() local 155 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 158 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 164 CFX_PointF pt1(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f, ptCenter.y); in GetThisAppearanceStream() local 173 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 176 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 188 CFX_PointF pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local 197 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 200 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 206 CFX_PointF pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local [all …]
|
D | PWL_Utils.cpp | 108 CFX_PointF pt1(crBBox.left, crBBox.bottom + fHeight / 2); in GetAP_Circle() local 113 csAP << pt1.x << " " << pt1.y << " m\n"; in GetAP_Circle() 115 FX_FLOAT px = pt2.x - pt1.x; in GetAP_Circle() 116 FX_FLOAT py = pt2.y - pt1.y; in GetAP_Circle() 118 csAP << pt1.x << " " << pt1.y + py * FX_BEZIER << " " in GetAP_Circle() 135 px = pt4.x - pt1.x; in GetAP_Circle() 136 py = pt1.y - pt4.y; in GetAP_Circle() 138 csAP << pt4.x - px * FX_BEZIER << " " << pt4.y << " " << pt1.x << " " in GetAP_Circle() 139 << pt1.y - py * FX_BEZIER << " " << pt1.x << " " << pt1.y << " c\n"; in GetAP_Circle() 161 CFX_PointF pt1(crBBox.left, crBBox.bottom + fHeight / 2); in GetAP_Diamond() local [all …]
|
D | PWL_ComboBox.cpp | 107 CFX_PointF pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN, in GetThisAppearanceStream() local 119 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 122 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 138 CFX_PointF pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN, in DrawThisAppearance() local 150 path.AppendPoint(pt1, FXPT_TYPE::MoveTo, false); in DrawThisAppearance() 153 path.AppendPoint(pt1, FXPT_TYPE::LineTo, false); in DrawThisAppearance()
|
/external/valgrind/drd/tests/ |
D | pth_cleanup_handler.c | 39 pthread_t pt1, pt2; in main() local 49 if (pthread_create(&pt1, NULL, f, NULL) != 0) in main() 60 pthread_join(pt1, 0); in main()
|
/external/pdfium/xfa/fde/tto/ |
D | fde_textout.cpp | 777 CFX_PointF pt1, pt2; in DrawLine() local 780 pt1.x = rtText.left; in DrawLine() 781 pt1.y = rtText.top; in DrawLine() 785 pt1.x = rtText.left; in DrawLine() 786 pt1.y = rtText.bottom(); in DrawLine() 790 pPath->AddLine(pt1, pt2); in DrawLine() 795 pt1.x = rtText.left + rtText.width * 2.0f / 5.0f; in DrawLine() 796 pt1.y = rtText.top; in DrawLine() 797 pt2.x = pt1.x; in DrawLine() 800 pt1.x = rtText.left; in DrawLine() [all …]
|
/external/pdfium/xfa/fwl/theme/ |
D | cfwl_checkboxtp.cpp | 226 CFX_PointF pt1(fWidth / 15.0f, fBottom + fHeight * 2 / 5.0f); in InitCheckPath() local 243 m_pCheckPath->MoveTo(pt1); in InitCheckPath() 245 CFX_PointF p1 = CFX_PointF(pt12.x - pt1.x, pt12.y - pt1.y) * FX_BEZIER; in InitCheckPath() 247 m_pCheckPath->BezierTo(pt1 + p1, pt2 + p2, pt2); in InitCheckPath() 262 p2 = CFX_PointF(pt15.x - pt1.x, pt15.y - pt1.y) * FX_BEZIER; in InitCheckPath() 263 m_pCheckPath->BezierTo(pt5 + p1, pt1 + p2, pt1); in InitCheckPath()
|
/external/mesa3d/src/gallium/state_trackers/xorg/ |
D | xorg_renderer.c | 145 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local 149 pt1[0] = (srcX + width); in add_vertex_data1() 150 pt1[1] = srcY; in add_vertex_data1() 158 map_point(src_matrix, pt1[0], pt1[1], &pt1[0], &pt1[1]); in add_vertex_data1() 164 s1 = pt1[0] / src->width0; in add_vertex_data1() 168 t1 = pt1[1] / src->height0; in add_vertex_data1()
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
D | xa_renderer.c | 192 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local 196 pt1[0] = (srcX + width); in add_vertex_data1() 197 pt1[1] = srcY; in add_vertex_data1() 205 map_point((float *)src_matrix, pt1[0], pt1[1], &pt1[0], &pt1[1]); in add_vertex_data1() 211 s1 = pt1[0] / src->width0; in add_vertex_data1() 215 t1 = pt1[1] / src->height0; in add_vertex_data1()
|
/external/pdfium/xfa/fxfa/app/ |
D | cxfa_textlayout.cpp | 1188 CFX_PointF pt1, pt2; in RenderPath() local 1193 pt1.x = pCharPos[j].m_Origin.x; in RenderPath() 1195 pt1.x + pCharPos[j].m_FontCharWidth * pPiece->fFontSize / 1000.0f; in RenderPath() 1196 pt1.y = pt2.y = fEndY; in RenderPath() 1197 pPath->AddLine(pt1, pt2); in RenderPath() 1202 pt1.x = pCharPos[0].m_Origin.x; in RenderPath() 1207 pt1.y = pt2.y = fEndY; in RenderPath() 1208 pPath->AddLine(pt1, pt2); in RenderPath() 1213 pt1.x = pCharPos[0].m_Origin.x; in RenderPath() 1217 pt1.y = pt2.y = fEndY; in RenderPath() [all …]
|
/external/dng_sdk/source/ |
D | dng_rect.h | 242 dng_rect_real64 (const dng_point_real64 &pt1, in dng_rect_real64() argument 244 : t (Min_real64 (pt1.v, pt2.v)) in dng_rect_real64() 245 , l (Min_real64 (pt1.h, pt2.h)) in dng_rect_real64() 246 , b (Max_real64 (pt1.v, pt2.v)) in dng_rect_real64() 247 , r (Max_real64 (pt1.h, pt2.h)) in dng_rect_real64()
|
/external/pdfium/third_party/freetype/src/cff/ |
D | cf2hints.c | 1295 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1303 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1309 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) in cf2_glyphpath_pushPrevElem() 1313 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem() 1323 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1357 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1365 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1370 if ( params.pt1.x != glyphpath->currentDS.x || in cf2_glyphpath_pushPrevElem() 1371 params.pt1.y != glyphpath->currentDS.y ) in cf2_glyphpath_pushPrevElem() 1380 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem() [all …]
|
/external/freetype/src/cff/ |
D | cf2hints.c | 1296 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1304 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1310 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) in cf2_glyphpath_pushPrevElem() 1314 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem() 1324 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1358 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1366 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1371 if ( params.pt1.x != glyphpath->currentDS.x || in cf2_glyphpath_pushPrevElem() 1372 params.pt1.y != glyphpath->currentDS.y ) in cf2_glyphpath_pushPrevElem() 1381 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem() [all …]
|
/external/pdfium/xfa/fde/ |
D | cfde_path.cpp | 157 void CFDE_Path::AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2) { in AddLine() argument 159 if (points.empty() || FXSYS_fabs(points.back().m_Point.x - pt1.x) > 0.001 || in AddLine() 160 FXSYS_fabs(points.back().m_Point.y - pt1.y) > 0.001) { in AddLine() 161 MoveTo(pt1); in AddLine()
|
D | fde_gedevice.cpp | 209 const CFX_PointF& pt1, in DrawBezier() argument 215 points.push_back(pt1); in DrawBezier() 255 const CFX_PointF& pt1, in DrawLine() argument 259 path.AddLine(pt1, pt2); in DrawLine()
|
/external/skia/tests/ |
D | PathOpsAngleIdeas.cpp | 255 static bool equalPoints(const SkDPoint& pt1, const SkDPoint& pt2, double max) { in equalPoints() argument 256 return approximately_zero_when_compared_to(pt1.fX - pt2.fX, max) in equalPoints() 257 && approximately_zero_when_compared_to(pt1.fY - pt2.fY, max); in equalPoints() 302 SkDPoint pt1 = quad1.ptAtT(tRange.t1); in bruteMinT() local 303 if (equalPoints(pt1, best1, maxQuads)) { in bruteMinT() 306 best1 = pt1; in bruteMinT() 361 SkDPoint pt1 = quad1.ptAtT(tRange.t1); in bruteMinT() local 363 if (equalPoints(pt1, best1, maxQuads)) { in bruteMinT() 366 best1 = pt1; in bruteMinT() 371 if (equalPoints(pt1, pt2, maxQuads)) { in bruteMinT()
|
/external/skia/src/pdf/ |
D | SkPDFShader.cpp | 817 SkPoint pt1 = info->fPoint[0]; in make_function_shader() local 819 FixUpRadius(pt1, r1, pt2, r2); in make_function_shader() 821 coords->appendScalar(pt1.fX); in make_function_shader() 822 coords->appendScalar(pt1.fY); in make_function_shader() 830 const SkPoint& pt1 = info->fPoint[0]; in make_function_shader() local 832 coords->appendScalar(pt1.fX); in make_function_shader() 833 coords->appendScalar(pt1.fY); in make_function_shader() 836 coords->appendScalar(pt1.fX); in make_function_shader() 837 coords->appendScalar(pt1.fY); in make_function_shader() 841 const SkPoint& pt1 = info->fPoint[0]; in make_function_shader() local [all …]
|