HomeSort by relevance Sort by last modified time
    Searched refs:pts (Results 1 - 25 of 277) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/include/utils/
SkCubicInterval.h 17 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) {
18 return SkEvalCubicInterval(pts[0].fX, pts[0].fY,
19 pts[1].fX, pts[1].fY, x);
  /external/skia/legacy/include/utils/
SkCubicInterval.h 17 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) {
18 return SkEvalCubicInterval(pts[0].fX, pts[0].fY,
19 pts[1].fX, pts[1].fY, x);
  /external/skia/legacy/include/core/
SkEdgeClipper.h 20 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
21 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
23 SkPath::Verb next(SkPoint pts[]);
39 void appendQuad(const SkPoint pts[3], bool reverse);
40 void appendCubic(const SkPoint pts[4], bool reverse);
44 void sk_assert_monotonic_x(const SkPoint pts[], int count);
45 void sk_assert_monotonic_y(const SkPoint pts[], int count);
47 #define sk_assert_monotonic_x(pts, count)
48 #define sk_assert_monotonic_y(pts, count)
  /external/skia/src/core/
SkEdgeClipper.h 20 bool clipQuad(const SkPoint pts[3], const SkRect& clip);
21 bool clipCubic(const SkPoint pts[4], const SkRect& clip);
23 SkPath::Verb next(SkPoint pts[]);
39 void appendQuad(const SkPoint pts[3], bool reverse);
40 void appendCubic(const SkPoint pts[4], bool reverse);
44 void sk_assert_monotonic_x(const SkPoint pts[], int count);
45 void sk_assert_monotonic_y(const SkPoint pts[], int count);
47 #define sk_assert_monotonic_x(pts, count)
48 #define sk_assert_monotonic_y(pts, count)
SkEdgeClipper.cpp 67 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) {
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) {
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[3], const SkRect& clip)
126 SkPoint pts[3]; local
    [all...]
SkEdgeBuilder.h 43 void addLine(const SkPoint pts[]);
44 void addQuad(const SkPoint pts[]);
45 void addCubic(const SkPoint pts[]);
SkQuadClipper.h 39 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)
SkStroke.cpp 103 void quad_to(const SkPoint pts[3],
107 void cubic_to(const SkPoint pts[4],
237 void SkPathStroker::quad_to(const SkPoint pts[3],
241 if (!set_normal_unitnormal(pts[1], pts[2], fRadius,
243 // pts[1] nearly equals pts[2], so just draw a line to pts[2]
244 this->line_to(pts[2], normalAB);
254 SkChopQuadAtHalf(pts, tmp)
383 SkPoint pts[3], tmp[5]; local
444 SkPoint pts[4], tmp[13]; local
650 SkPoint pts[4]; local
734 SkPoint pts[8]; local
    [all...]
SkPath.cpp 94 SkPoint pts[4]; local
95 return SkPath::kDone_Verb == iter.next(pts);
356 SkPoint pts[4]; local
359 while ((verb = iter.next(pts)) != kDone_Verb) {
365 firstPt = prevPt = pts[0];
385 if (!check_edge_against_rect(prevPt, pts[nextPt], rect, direction)) {
388 prevPt = pts[nextPt];
447 const SkPoint* pts = fPathRef->points(); local
448 line[0] = pts[0];
449 line[1] = pts[1]
496 const SkPoint* pts = *ptsPtr; local
588 const SkPoint* pts = fPathRef->points(); local
599 const SkPoint* pts = fPathRef->points(); local
606 const SkPoint* pts = fPathRef->points(); local
803 SkPoint* pts = ed.growForVerb(kQuad_Verb); local
825 SkPoint* pts = ed.growForVerb(kCubic_Verb); local
1276 SkPoint pts[kSkBuildQuadArcStorage]; local
1303 SkPoint pts[kSkBuildQuadArcStorage]; local
1366 SkPoint pts[kSkBuildQuadArcStorage]; local
1397 SkPoint pts[4]; local
1454 const SkPoint* pts = path.fPathRef->points() + 1; local
1488 const SkPoint* pts = path.fPathRef->points(); local
1522 const SkPoint* pts = src.fPathRef->pointsEnd(); local
1616 SkPoint pts[4]; local
1907 SkPoint* SK_RESTRICT pts = ptsParam; local
2145 SkPoint pts[4]; local
2344 SkPoint pts[4]; local
2400 const SkPoint* pts() const { return fCurrPt; } function in class:ContourIter
2631 const SkPoint* pts = iter.pts(); local
    [all...]
  /external/skia/legacy/src/core/
SkEdgeClipper.cpp 67 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) {
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) {
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[3], const SkRect& clip)
122 SkPoint pts[3]; local
    [all...]
SkConcaveToTriangles.h 27 const SkPoint pts[],
SkEdgeBuilder.h 32 void addLine(const SkPoint pts[]);
33 void addQuad(const SkPoint pts[]);
34 void addCubic(const SkPoint pts[]);
SkQuadClipper.h 39 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)
SkEdgeBuilder.cpp 23 void SkEdgeBuilder::addLine(const SkPoint pts[]) {
25 if (edge->setLine(pts[0], pts[1], NULL, fShiftUp)) {
32 void SkEdgeBuilder::addQuad(const SkPoint pts[]) {
34 if (edge->setQuadratic(pts, fShiftUp)) {
41 void SkEdgeBuilder::addCubic(const SkPoint pts[]) {
43 if (edge->setCubic(pts, NULL, fShiftUp)) {
51 SkPoint pts[4]; local
54 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) {
57 this->addLine(pts);
87 SkPoint pts[4]; local
    [all...]
  /external/skia/src/effects/
SkCornerPathEffect.cpp 41 SkPoint pts[4]; local
54 switch (verb = iter.next(pts, false)) {
62 moveTo = pts[0];
65 dst->moveTo(pts[0]);
70 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step);
76 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX + step.fX,
77 pts[0].fY + step.fY)
    [all...]
  /external/skia/bench/
PathIterBench.cpp 17 static int rand_pts(SkRandom& rand, SkPoint pts[4]) {
22 pts[i].fX = rand.nextSScalar1();
23 pts[i].fY = rand.nextSScalar1();
42 SkPoint pts[4]; local
43 int n = rand_pts(rand, pts);
46 fPath.moveTo(pts[0]);
49 fPath.lineTo(pts[1]);
52 fPath.quadTo(pts[1], pts[2]);
55 fPath.cubicTo(pts[1], pts[2], pts[3])
73 SkPoint pts[4]; variable
81 SkPoint pts[4]; variable
    [all...]
GradientBench.cpp 42 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data,
45 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos,
49 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data,
53 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
54 SkScalarAve(pts[0].fY, pts[1].fY));
61 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data,
65 center.set(SkScalarAve(pts[0].fX, pts[1].fX)
179 const SkPoint pts[2] = { local
237 const SkPoint pts[] = { local
    [all...]
  /frameworks/base/core/java/android/gesture/
Instance.java 73 float[] pts; local
76 pts = temporalSampler(orientationType, gesture);
77 instance = new Instance(gesture.getID(), pts, label);
80 pts = spatialSampler(gesture);
81 instance = new Instance(gesture.getID(), pts, label);
91 float[] pts = GestureUtils.temporalSampling(gesture.getStrokes().get(0), local
93 float[] center = GestureUtils.computeCentroid(pts);
94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]);
107 GestureUtils.translate(pts, -center[0], -center[1])
    [all...]
  /external/skia/gm/
points.cpp 26 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) {
33 pts[i].set(x, y);
53 SkPoint* pts = new SkPoint[n]; local
54 fill_pts(pts, n, &rand);
56 canvas->drawPoints(SkCanvas::kPolygon_PointMode, n, pts, p0);
57 canvas->drawPoints(SkCanvas::kLines_PointMode, n, pts, p1);
58 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p2);
59 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p3);
61 delete[] pts;
shadertext.cpp 22 SkPoint pts[] = { { 0, 0 }, { s, s } }; local
34 paint.setShader(SkGradientShader::CreateLinear(pts, colors, pos,
65 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data,
67 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos,
71 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data,
74 center.set(SkScalarAve(pts[0].fX, pts[1].fX),
75 SkScalarAve(pts[0].fY, pts[1].fY));
80 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data
132 SkPoint pts[2] = { local
    [all...]
composeshader.cpp 24 SkPoint pts[2]; local
27 pts[0].set(0, 0);
28 pts[1].set(SkIntToScalar(100), 0);
31 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2,
34 pts[0].set(0, 0);
35 pts[1].set(0, SkIntToScalar(100));
38 SkShader* shaderB = SkGradientShader::CreateLinear(pts, colors, NULL, 2,
  /external/skia/tests/
GeometryTest.cpp 38 SkPoint pts[3], dst[5]; local
40 pts[0].set(0, 0);
41 pts[1].set(100, 50);
42 pts[2].set(0, 100);
44 int count = SkChopQuadAtMaxCurvature(pts, dst);
47 pts[0].set(0, 0);
48 pts[1].set(SkIntToScalar(3), 0);
49 pts[2].set(SkIntToScalar(3), SkIntToScalar(3));
50 SkConvertQuadToCubic(pts, dst);
  /external/skia/legacy/src/effects/
SkCornerPathEffect.cpp 46 SkPoint pts[4]; local
59 switch (verb = iter.next(pts)) {
67 moveTo = pts[0];
70 dst->moveTo(pts[0]);
75 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step);
81 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX + step.fX,
82 pts[0].fY + step.fY)
    [all...]
  /external/libvpx/libvpx/test/
resize_test.cc 56 : pts(_pts), w(_w), h(_h) {}
58 vpx_codec_pts_t pts; member in struct:__anon10900::ResizeTest::FrameInfo
79 frame_info_list_.push_back(FrameInfo(pkt->data.frame.pts, w, h));
92 const vpx_codec_pts_t pts = info->pts; local
93 const unsigned int expected_w = ScaleForFrameNumber(pts, kInitialWidth);
94 const unsigned int expected_h = ScaleForFrameNumber(pts, kInitialHeight);
97 << "Frame " << pts << "had unexpected width";
99 << "Frame " << pts << "had unexpected height";
  /external/eigen/unsupported/test/
splines.cpp 109 MatrixXd pts(10,3);
110 pts << 0.707620811535916, 0.510258911240815, 0.417485437023409,
120 pts.transposeInPlace();
125 VERIFY( (pt - pts.col(i)).norm() < 1e-14 );
136 MatrixXd pts(11,3);
137 pts << 0.959743958516081, 0.340385726666133, 0.585267750979777,
148 pts.transposeInPlace();
153 VERIFY( (pt - pts.col(i)).norm() < 1e-14 );
175 MatrixXd pts(12,2);
176 pts << -0.370967741935484, 0.236842105263158
    [all...]

Completed in 568 milliseconds

1 2 3 4 5 6 7 8 91011>>