/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/skia/src/pathops/ |
D | SkPathWriter.cpp | 38 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { in cubicTo() argument 40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) in cubicTo() 51 pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo() 53 fPathPtr->cubicTo(pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo() 122 void SkPathWriter::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument 124 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in quadTo() 134 pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY); in quadTo() 136 fPathPtr->quadTo(pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY); in quadTo()
|
D | SkPathWriter.h | 16 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3); 27 void quadTo(const SkPoint& pt1, const SkPoint& pt2);
|
/external/chromium_org/third_party/skia/src/pathops/ |
D | SkPathWriter.cpp | 38 void SkPathWriter::cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3) { in cubicTo() argument 40 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2) in cubicTo() 51 pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo() 53 fPathPtr->cubicTo(pt1.fX, pt1.fY, pt2.fX, pt2.fY, fDefer[1].fX, fDefer[1].fY); in cubicTo() 122 void SkPathWriter::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument 124 if (fEmpty && AlmostEqualUlps(fDefer[0], pt1) && AlmostEqualUlps(pt1, pt2)) { in quadTo() 134 pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY); in quadTo() 136 fPathPtr->quadTo(pt1.fX, pt1.fY, fDefer[1].fX, fDefer[1].fY); in quadTo()
|
D | SkPathWriter.h | 16 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3); 27 void quadTo(const SkPoint& pt1, const SkPoint& pt2);
|
/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/pdfium/fpdfsdk/src/pdfwindow/ |
D | PWL_ScrollBar.cpp | 184 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y); in GetThisAppearanceStream() local 192 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 195 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 203 CPDF_Point pt1(ptCenter.x + PWL_TRIANGLE_HALFLEN * 0.5f,ptCenter.y); in GetThisAppearanceStream() local 211 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 214 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 229 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN,ptCenter.y - PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local 237 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 240 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 248 CPDF_Point pt1(ptCenter.x - PWL_TRIANGLE_HALFLEN,ptCenter.y + PWL_TRIANGLE_HALFLEN * 0.5f); in GetThisAppearanceStream() local [all …]
|
D | PWL_ComboBox.cpp | 126 …CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFL… in GetThisAppearanceStream() local 136 sButton << pt1.x << " " << pt1.y << " m\n"; in GetThisAppearanceStream() 139 sButton << pt1.x << " " << pt1.y << " l f\n"; in GetThisAppearanceStream() 156 …CPDF_Point pt1(ptCenter.x - PWL_CBBUTTON_TRIANGLE_HALFLEN,ptCenter.y + PWL_CBBUTTON_TRIANGLE_HALFL… in DrawThisAppearance() local 168 path.SetPoint(0, pt1.x, pt1.y, FXPT_MOVETO); in DrawThisAppearance() 171 path.SetPoint(3, pt1.x, pt1.y, FXPT_LINETO); in DrawThisAppearance()
|
/external/valgrind/main/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/skia/experimental/Intersection/ |
D | CubicIntersection_Test.cpp | 230 int pt1, pt2, pt3; 234 for (pt1 = 0; pt1 < intersections2.used(); ++pt1) { 235 tt1 = intersections2.fT[0][pt1]; 239 pt2 = intersections2.fFlip ? intersections2.used() - pt1 - 1 : pt1; 244 __FUNCTION__, tt1, xy1.x, xy1.y, intersections2.fPt[pt1].x, 245 intersections2.fPt[pt1].y, xy2.x, xy2.y, tt2); 265 for (pt1 = 0; pt1 < intersections2.used(); ++pt1) { 266 if (approximately_equal(tt3, intersections2.fT[0][pt1])) { 279 __FUNCTION__, tt1, xy1.x, xy1.y, intersections3.fPt[pt1].x, 280 intersections3.fPt[pt1].y, xy2.x, xy2.y, tt2); [all …]
|
/external/chromium_org/third_party/skia/experimental/Intersection/ |
D | CubicIntersection_Test.cpp | 230 int pt1, pt2, pt3; 234 for (pt1 = 0; pt1 < intersections2.used(); ++pt1) { 235 tt1 = intersections2.fT[0][pt1]; 239 pt2 = intersections2.fFlip ? intersections2.used() - pt1 - 1 : pt1; 244 __FUNCTION__, tt1, xy1.x, xy1.y, intersections2.fPt[pt1].x, 245 intersections2.fPt[pt1].y, xy2.x, xy2.y, tt2); 265 for (pt1 = 0; pt1 < intersections2.used(); ++pt1) { 266 if (approximately_equal(tt3, intersections2.fT[0][pt1])) { 279 __FUNCTION__, tt1, xy1.x, xy1.y, intersections3.fPt[pt1].x, 280 intersections3.fPt[pt1].y, xy2.x, xy2.y, tt2); [all …]
|
/external/chromium_org/third_party/mesa/src/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/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/pdfium/fpdfsdk/src/fxedit/ |
D | fxet_pageobjs.cpp | 47 CPDF_Point pt1(0,0), pt2(1,0); in DrawTextString() local 48 pUser2Device->Transform(pt1.x, pt1.y); in DrawTextString() 51 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); in DrawTextString() 66 CPDF_Point pt1(0,0), pt2(1,0); in DrawTextString() local 67 pUser2Device->Transform(pt1.x, pt1.y); in DrawTextString() 70 gsd.m_LineWidth = (FX_FLOAT)FXSYS_fabs((pt2.x + pt2.y) - (pt1.x + pt1.y)); in DrawTextString() 401 const CPDF_Point& pt1, const CPDF_Point& pt2) in AddLineToPageObjects() argument 407 pPathData->SetPoint(0, pt1.x, pt1.y, FXPT_MOVETO); in AddLineToPageObjects()
|
/external/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/skia/experimental/StrokePathRenderer/ |
D | GrStrokePathRenderer.cpp | 166 const SkPoint* pt1 = ccw ? &l2a : &l1a; in onDrawPath() local 180 const SkPoint pt2 = *pt0+v0, pt3 = *pt1+v1; in onDrawPath() 181 if (intersection(*pt0, pt2, *pt1, pt3, miterPt[0]) != in onDrawPath() 184 SkPoint miterPt1 = miterPt[0] - *pt1; in onDrawPath() 195 miterPt[1] = *pt1+v1; in onDrawPath()
|
/external/skia/experimental/StrokePathRenderer/ |
D | GrStrokePathRenderer.cpp | 166 const SkPoint* pt1 = ccw ? &l2a : &l1a; in onDrawPath() local 180 const SkPoint pt2 = *pt0+v0, pt3 = *pt1+v1; in onDrawPath() 181 if (intersection(*pt0, pt2, *pt1, pt3, miterPt[0]) != in onDrawPath() 184 SkPoint miterPt1 = miterPt[0] - *pt1; in onDrawPath() 195 miterPt[1] = *pt1+v1; in onDrawPath()
|
/external/freetype/src/cff/ |
D | cf2hints.c | 1294 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1302 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1308 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) in cf2_glyphpath_pushPrevElem() 1312 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem() 1322 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1356 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1364 ¶ms.pt1, in cf2_glyphpath_pushPrevElem() 1369 if ( params.pt1.x != glyphpath->currentDS.x || in cf2_glyphpath_pushPrevElem() 1370 params.pt1.y != glyphpath->currentDS.y ) in cf2_glyphpath_pushPrevElem() 1379 glyphpath->currentDS = params.pt1; in cf2_glyphpath_pushPrevElem() [all …]
|
/external/skia/src/core/ |
D | SkStroke.cpp | 366 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument 367 bool degenerateAB = SkPath::IsLineDegenerate(fPrevPt, pt1); in quadTo() 368 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in quadTo() 379 this->preJoinTo(pt1, &normalAB, &unitAB, false); in quadTo() 384 pts[1] = pt1; in quadTo() 421 void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2, in cubicTo() argument 423 bool degenerateAB = SkPath::IsLineDegenerate(fPrevPt, pt1); in cubicTo() 424 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in cubicTo() 436 const SkPoint* nextPt = &pt1; in cubicTo() 449 pts[1] = pt1; in cubicTo()
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkStroke.cpp | 366 void SkPathStroker::quadTo(const SkPoint& pt1, const SkPoint& pt2) { in quadTo() argument 367 bool degenerateAB = SkPath::IsLineDegenerate(fPrevPt, pt1); in quadTo() 368 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in quadTo() 379 this->preJoinTo(pt1, &normalAB, &unitAB, false); in quadTo() 384 pts[1] = pt1; in quadTo() 421 void SkPathStroker::cubicTo(const SkPoint& pt1, const SkPoint& pt2, in cubicTo() argument 423 bool degenerateAB = SkPath::IsLineDegenerate(fPrevPt, pt1); in cubicTo() 424 bool degenerateBC = SkPath::IsLineDegenerate(pt1, pt2); in cubicTo() 437 const SkPoint* nextPt = &pt1; in cubicTo() 450 pts[1] = pt1; in cubicTo()
|