Searched refs:pts (Results 1 - 25 of 343) sorted by relevance

1234567891011>>

/external/skia/samplecode/
H A DSampleHairCurves.cpp43 SkScalar pts[] = { local
49 curves.moveTo(pts[0], pts[1]);
50 curves.cubicTo(pts[2], pts[3],
51 pts[4], pts[5],
52 pts[6], pts[7]);
54 hulls.moveTo(pts[
65 SkScalar pts[] = { local
83 SkScalar pts[] = { local
104 SkScalar pts[] = { local
[all...]
H A DSampleGradients.cpp15 SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } }; local
16 return SkGradientShader::CreateLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode);
66 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
67 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, data.fCount, tm);
70 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
72 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
73 SkScalarAve(pts[0].fY, pts[1].fY));
78 static SkShader* MakeSweep(const SkPoint pts[ argument
85 Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
97 Make2ConicalConcentric(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
133 SkPoint pts[2] = { local
[all...]
H A DSamplePoints.cpp42 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { argument
44 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480);
63 SkPoint* pts = new SkPoint[n]; local
64 fill_pts(pts, n, &rand);
66 canvas->drawPoints(SkCanvas::kPolygon_PointMode, n, pts, p0);
67 canvas->drawPoints(SkCanvas::kLines_PointMode, n, pts, p1);
68 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p2);
69 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p3);
71 delete[] pts;
H A DSampleHairline.cpp34 static void generate_pts(SkPoint pts[], int count, int w, int h) { argument
36 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w),
81 SkPoint pts[N]; local
83 generate_pts(pts, N, WIDTH, HEIGHT);
85 canvas->drawLine(pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY, paint);
88 pts[0].fX, pts[
97 SkPoint pts[N]; local
120 SkPoint pts[N]; local
144 SkPoint pts[N]; local
[all...]
H A DSampleShaderText.cpp20 SkPoint pts[] = { { 0, 0 }, { s, s } }; local
26 paint.setShader(SkGradientShader::CreateLinear(pts, colors, pos,
57 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
58 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, data.fCount, tm);
61 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
63 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
64 SkScalarAve(pts[0].fY, pts[1].fY));
69 static SkShader* MakeSweep(const SkPoint pts[ argument
76 Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
120 SkPoint pts[2] = { local
[all...]
H A DSampleEffects.cpp42 SkPoint pts[] = { { 3, 0 }, { 7, 5 } }; local
43 paint->setShader(SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors),
70 const float pts[] = { local
79 fPath.moveTo(pts[0], pts[1]);
80 for (i = 2; i < SK_ARRAY_COUNT(pts); i += 2) {
81 fPath.lineTo(pts[i], pts[i+1]);
/external/skia/src/pathops/
H A DSkLineParameters.h31 bool cubicEndPoints(const SkDCubic& pts) { argument
33 cubicEndPoints(pts, 0, endIndex);
38 cubicEndPoints(pts, 0, ++endIndex);
44 cubicEndPoints(pts, 0, ++endIndex); // line
55 if (NotAlmostEqualUlps(pts[0].fY, pts[++endIndex].fY)) {
56 if (pts[0].fY > pts[endIndex].fY) {
65 if (pts[0].fY > pts[
71 cubicEndPoints(const SkDCubic& pts, int s, int e) argument
85 lineEndPoints(const SkDLine& pts) argument
91 quadEndPoints(const SkDQuad& pts) argument
110 quadEndPoints(const SkDQuad& pts, int s, int e) argument
138 cubicDistanceY(const SkDCubic& pts, SkDCubic& distance) const argument
146 quadDistanceY(const SkDQuad& pts, SkDQuad& distance) const argument
154 controlPtDistance(const SkDCubic& pts, int index) const argument
[all...]
H A DSkAddIntersections.cpp13 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt, argument
15 SkASSERT(i.used() == pts);
16 if (!pts) {
18 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts()));
22 i[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0));
23 if (pts == 2) {
26 SkDebugf(" wnTs[0]=%g " LINE_DEBUG_STR, i[1][0], LINE_DEBUG_DATA(wn.pts()));
27 if (pts == 2) {
33 static void debugShowQuadLineIntersection(int pts, cons argument
54 debugShowQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
74 debugShowConicLineIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
94 debugShowConicQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
114 debugShowConicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
135 debugShowCubicLineIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
155 debugShowCubicQuadIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
175 debugShowCubicConicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
195 debugShowCubicIntersection(int pts, const SkIntersectionHelper& wt, const SkIntersectionHelper& wn, const SkIntersections& i) argument
282 int pts = 0; local
[all...]
H A DSkReduceOrder.h24 static SkPath::Verb Conic(const SkPoint pts[3], SkScalar weight, SkPoint* reducePts);
25 static SkPath::Verb Cubic(const SkPoint pts[4], SkPoint* reducePts);
26 static SkPath::Verb Quad(const SkPoint pts[3], SkPoint* reducePts);
H A DSkOpEdgeBuilder.cpp79 SkPoint pts[4]; local
83 verb = iter.next(pts);
90 force_small_to_zero(&pts[0]);
91 *fPathPts.append() = pts[0];
92 curveStart = curve[0] = pts[0];
96 force_small_to_zero(&pts[1]);
97 if (SkDPoint::ApproximatelyEqual(curve[0], pts[1])) {
100 fPathPts.top() = pts[1];
106 force_small_to_zero(&pts[1]);
107 force_small_to_zero(&pts[
[all...]
/external/skia/gm/
H A Dgradients_2pt_conical.cpp40 static SkShader* Make2ConicalOutside(const SkPoint pts[2], const GradData& data, argument
43 SkScalar radius0 = (pts[1].fX - pts[0].fX) / 10;
44 SkScalar radius1 = (pts[1].fX - pts[0].fX) / 3;
45 center0.set(pts[0].fX + radius0, pts[0].fY + radius0);
46 center1.set(pts[1].fX - radius1, pts[1].fY - radius1);
53 static SkShader* Make2ConicalOutsideFlip(const SkPoint pts[ argument
66 Make2ConicalInside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
79 Make2ConicalInsideFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
92 Make2ConicalInsideCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
105 Make2ConicalZeroRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
118 Make2ConicalZeroRadFlip(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
131 Make2ConicalZeroRadCenter(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
144 Make2ConicalZeroRadOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
157 Make2ConicalZeroRadFlipOutside(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
170 Make2ConicalEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
184 Make2ConicalEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
198 Make2ConicalZeroRadEdgeX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
212 Make2ConicalZeroRadEdgeY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
226 Make2ConicalTouchX(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
240 Make2ConicalTouchY(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
254 Make2ConicalInsideSmallRad(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm, const SkMatrix& localMatrix) argument
325 SkPoint pts[2] = { local
[all...]
H A Dpoints.cpp27 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { argument
34 pts[i].set(x, y);
54 SkPoint* pts = new SkPoint[n]; variable
55 fill_pts(pts, n, &rand);
57 canvas->drawPoints(SkCanvas::kPolygon_PointMode, n, pts, p0);
58 canvas->drawPoints(SkCanvas::kLines_PointMode, n, pts, p1);
59 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p2);
60 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p3);
62 delete[] pts;
H A Dshadertext.cpp21 SkPoint pts[] = { { 0, 0 }, { s, s } }; local
27 paint.setShader(SkGradientShader::CreateLinear(pts, colors, pos,
49 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
50 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, data.fCount, tm);
53 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { argument
55 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
56 SkScalarAve(pts[0].fY, pts[1].fY));
61 static SkShader* MakeSweep(const SkPoint pts[ argument
68 Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) argument
110 SkPoint pts[2] = { variable
[all...]
/external/skia/bench/
H A DPathIterBench.cpp18 static int rand_pts(SkRandom& rand, SkPoint pts[4]) { argument
23 pts[i].fX = rand.nextSScalar1();
24 pts[i].fY = rand.nextSScalar1();
41 SkPoint pts[4]; local
42 int n = rand_pts(rand, pts);
45 fPath.moveTo(pts[0]);
48 fPath.lineTo(pts[1]);
51 fPath.quadTo(pts[1], pts[2]);
54 fPath.cubicTo(pts[
74 SkPoint pts[4]; variable
82 SkPoint pts[4]; variable
[all...]
/external/skia/src/effects/
H A DSkArcToPathEffect.cpp20 SkPoint pts[4]; local
26 switch (verb = iter.next(pts, false)) {
31 dst->moveTo(pts[0]);
35 dst->arcTo(pts[0], pts[1], fRadius);
37 lastCorner = pts[1];
40 dst->quadTo(pts[1], pts[2]);
41 lastCorner = pts[2];
44 dst->conicTo(pts[
[all...]
H A DSkCornerPathEffect.cpp41 SkPoint pts[4]; local
55 switch (verb = iter.next(pts, false)) {
63 moveTo = pts[0];
66 dst->moveTo(pts[0]);
71 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step);
77 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX + step.fX,
78 pts[
[all...]
/external/skia/src/gpu/batches/
H A DGrDashLinePathRenderer.cpp14 SkPoint pts[2]; local
15 if (args.fStroke->isDashed() && args.fPath->isLine(pts)) {
16 return GrDashingEffect::CanDrawDashLine(pts, *args.fStroke, *args.fViewMatrix);
23 SkPoint pts[2]; local
24 SkAssertResult(args.fPath->isLine(pts));
26 *args.fViewMatrix, pts, args.fAntiAlias, *args.fStroke);
/external/skia/src/core/
H A DSkEdgeClipper.cpp67 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) { argument
68 return chopMonoQuadAt(pts[0].fY, pts[1].fY, pts[2].fY, y, t);
71 static bool chopMonoQuadAtX(SkPoint pts[3], SkScalar x, SkScalar* t) { argument
72 return chopMonoQuadAt(pts[0].fX, pts[1].fX, pts[2].fX, x, t);
75 // Modify pts[] in place so that it is clipped in Y to the clip rect
76 static void chop_quad_in_Y(SkPoint pts[ argument
126 SkPoint pts[3]; local
261 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) argument
300 SkPoint pts[4]; local
361 quick_reject_in_y(const SkPoint pts[4], const SkRect& clip) argument
407 appendQuad(const SkPoint pts[3], bool reverse) argument
421 appendCubic(const SkPoint pts[4], bool reverse) argument
434 next(SkPoint pts[]) argument
481 sk_assert_monotonic_y(const SkPoint pts[], int count) argument
487 sk_assert_monotonic_x(const SkPoint pts[], int count) argument
[all...]
H A DSkEdgeClipper.h22 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
23 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
25 SkPath::Verb next(SkPoint pts[]);
44 void appendQuad(const SkPoint pts[3], bool reverse);
45 void appendCubic(const SkPoint pts[4], bool reverse);
49 void sk_assert_monotonic_x(const SkPoint pts[], int count);
50 void sk_assert_monotonic_y(const SkPoint pts[], int count);
52 #define sk_assert_monotonic_x(pts, count)
53 #define sk_assert_monotonic_y(pts, count)
H A DSkQuadClipper.h39 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
40 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
42 SkPath::Verb next(SkPoint pts[]);
58 void appendQuad(const SkPoint pts[3], bool reverse);
59 void appendCubic(const SkPoint pts[4], bool reverse);
63 void sk_assert_monotonic_x(const SkPoint pts[], int count);
64 void sk_assert_monotonic_y(const SkPoint pts[], int count);
66 #define sk_assert_monotonic_x(pts, count)
67 #define sk_assert_monotonic_y(pts, count)
/external/opencv3/modules/cudaimgproc/perf/
H A Dperf_gftt.cpp72 cv::cuda::GpuMat pts; local
74 TEST_CYCLE() d_detector->detect(d_image, pts);
76 CUDA_SANITY_CHECK(pts);
80 cv::Mat pts; local
82 TEST_CYCLE() cv::goodFeaturesToTrack(image, pts, maxCorners, qualityLevel, minDistance);
84 CPU_SANITY_CHECK(pts);
/external/skia/src/gpu/effects/
H A DGrDashingEffect.h24 const SkMatrix& viewMatrix, const SkPoint pts[2], bool useAA,
26 bool CanDrawDashLine(const SkPoint pts[2], const GrStrokeInfo& strokeInfo,
/external/eigen/unsupported/test/
H A Dsplines.cpp113 MatrixXd pts(10,3);
114 pts << 0.707620811535916, 0.510258911240815, 0.417485437023409,
124 pts.transposeInPlace();
129 VERIFY( (pt - pts.col(i)).norm() < 1e-14 );
140 MatrixXd pts(11,3);
141 pts << 0.959743958516081, 0.340385726666133, 0.585267750979777,
152 pts.transposeInPlace();
157 VERIFY( (pt - pts.col(i)).norm() < 1e-14 );
179 MatrixXd pts(12,2);
180 pts <<
[all...]
/external/skia/tests/
H A DSubsetPath.cpp65 SkPoint pts[4]; local
68 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
102 SkPoint pts[4]; local
106 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
108 result.moveTo(pts[0]);
116 result.lineTo(pts[1]);
121 result.quadTo(pts[1], pts[2]);
126 result.conicTo(pts[1], pts[
156 SkPoint pts[4]; local
189 SkPoint pts[4]; local
[all...]
H A DGeometryTest.cpp50 SkPoint pts[3]; local
52 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100);
58 SkEvalQuadAt(pts, t, &r0);
59 SkPoint r1 = SkEvalQuadAt(pts, t);
63 SkEvalQuadAt(pts, t, nullptr, &v0);
64 SkVector v1 = SkEvalQuadTangentAt(pts, t);
89 SkPoint pts[3]; local
91 pts[j].set(rand.nextSScalar1() * 100, rand.nextSScalar1() * 100);
95 SkConic conic(pts, w);
109 SkPoint pts[] local
129 SkPoint pts[] = { local
149 SkPoint pts[] = { local
170 SkPoint pts[3], dst[5]; local
[all...]

Completed in 615 milliseconds

1234567891011>>