/external/skqp/tests/ |
PathOpsLineIntersectionTest.cpp | 113 int pts = i.intersect(line1, line2); local 114 REPORTER_ASSERT(reporter, pts); 115 REPORTER_ASSERT(reporter, pts == i.used()); 156 int pts = ts.intersect(line1, line2); local 157 REPORTER_ASSERT(reporter, pts == 2); 158 REPORTER_ASSERT(reporter, pts == ts.used()); 168 REPORTER_ASSERT(reporter, pts == 2); 169 REPORTER_ASSERT(reporter, pts == ts.used()); 177 REPORTER_ASSERT(reporter, pts == 2); 178 REPORTER_ASSERT(reporter, pts == ts.used()) 218 int pts = ts.intersect(line1, line2); local [all...] |
SubsetPath.cpp | 66 SkPoint pts[4]; local 69 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { 103 SkPoint pts[4]; local 107 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { 109 result.moveTo(pts[0]); 117 result.lineTo(pts[1]); 122 result.quadTo(pts[1], pts[2]); 127 result.conicTo(pts[1], pts[2], iter.conicWeight()) 157 SkPoint pts[4]; local 190 SkPoint pts[4]; local [all...] |
/external/libvpx/libvpx/ |
rate_hist.c | 29 int64_t *pts; member in struct:rate_hist 59 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); 72 free(hist->pts); 85 const int64_t now = pkt->data.frame.pts * 1000 * 94 hist->pts[idx] = now; 107 then = hist->pts[i_idx];
|
/external/libvpx/libvpx/test/ |
y4m_video_source.h | 67 // Models a stream where Timebase = 1/FPS, so pts == frame. 68 virtual vpx_codec_pts_t pts() const { return frame_; } function in class:libvpx_test::Y4mVideoSource
|
/external/skia/bench/ |
PatchBench.cpp | 77 const SkPoint pts[] = { { 200.f / 4.f, 0.f }, { 3.f * 200.f / 4, 200.f } }; local 79 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), 345 const SkPoint pts[] = { variable 355 SkPatchUtils::MakeVertices(pts, colors, tex, 20, 20, fLinearInterp);
|
/external/skia/gm/ |
aaxfermodes.cpp | 77 SkPoint pts[4] = { variable 83 fOval.moveTo(pts[0]); 84 fOval.quadTo(pts[1], pts[2]); 85 fOval.quadTo(pts[3], pts[0]);
|
arithmode.cpp | 27 SkPoint pts[] = { {0, 0}, {SkIntToScalar(WW), SkIntToScalar(HH)} }; local 32 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), 43 SkPoint pts[] = { {0, SkIntToScalar(HH)}, {SkIntToScalar(WW), 0} }; local 48 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors),
|
bitmaprect.cpp | 25 const SkPoint pts[] = { { 0, 0 }, { 64, 64 } }; local 27 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2,
|
colorfilterimagefilter.cpp | 58 const SkPoint pts[] = { { 0, 0 }, { 100, 100 } }; local 60 return SkGradientShader::MakeLinear(pts, colors, nullptr, 3, SkShader::kRepeat_TileMode); 64 const SkPoint pts[] = { { 0, 0 }, { 100, 100 } }; local 66 return SkGradientShader::MakeLinear(pts, colors, nullptr, 3, SkShader::kRepeat_TileMode);
|
constcolorprocessor.cpp | 44 SkPoint pts[] = { SkPoint::Make(0, 0), SkPoint::Make(kRectSize, kRectSize) }; variable 45 fShader = SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors),
|
dstreadshuffle.cpp | 111 SkPoint pts[] = {{3.f, 7.f}, {29.f, 7.f}}; local 118 canvas->drawLine(pts[0], pts[1], hairPaint); 119 rot.mapPoints(pts, 2);
|
highcontrastfilter.cpp | 66 SkPoint pts[] = { { 0, 0 }, { 1, 0 } }; local 70 pts, colors, pos, 77 pts, colors2, pos,
|
imagescalealigned.cpp | 91 const SkPoint pts[] = { start, end }; local 92 surface->getCanvas()->drawPoints(SkCanvas::kPoints_PointMode, 2, pts, paint);
|
shadermaskfilter.cpp | 33 const SkPoint pts[] = { local 37 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kRepeat_TileMode);
|
tilemodes_scaled.cpp | 25 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(w), SkIntToScalar(h)} }; local 31 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 171 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} }; local 179 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx);
|
vertices.cpp | 22 const SkPoint pts[] = {{kShaderSize / 4, 0}, {3 * kShaderSize / 4, kShaderSize}}; local 25 sk_sp<SkShader> grad = SkGradientShader::MakeLinear(pts, colors, nullptr, 56 static void fill_mesh(SkPoint pts[kMeshVertexCnt], SkPoint texs[kMeshVertexCnt], 58 pts[0].set(0, 0); 59 pts[1].set(kMeshSize / 2, 3); 60 pts[2].set(kMeshSize, 0); 61 pts[3].set(3, kMeshSize / 2); 62 pts[4].set(kMeshSize / 2, kMeshSize / 2); 63 pts[5].set(kMeshSize - 3, kMeshSize / 2); 64 pts[6].set(0, kMeshSize) 202 SkPoint* pts = builder.positions(); local [all...] |
/external/skia/samplecode/ |
ClockFaceView.cpp | 30 SkTDArray<SkPoint>* pts) 31 : Sk2DPathEffect(matrix), fRadius(radius), fPts(pts) {} 104 static sk_sp<SkPathEffect> makepe(float interp, SkTDArray<SkPoint>* pts) { 109 return sk_make_sp<Dot2DPathEffect>(rad, lattice, pts); 140 SkTDArray<SkPoint> pts; local 141 auto pe = makepe(0, &pts); 152 canvas->drawPoints(SkCanvas::kPoints_PointMode, pts.count(), pts.begin(), p);
|
SampleAAGeometry.cpp | 99 SkPoint pts[4]; local 103 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { 115 SkPoint pts[4]; local 119 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { 131 SkPoint pts[4]; local 136 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { 159 pts[index - startIndex] = pt; 164 result.moveTo(pts[0]); 167 result.lineTo(pts[1]); 171 result.quadTo(pts[1], pts[2]) 203 SkPoint pts[4]; local 279 SkPoint pts[4]; local 317 SkPoint pts[4]; local 354 SkPoint pts[4]; local [all...] |
SampleBitmapRect.cpp | 37 const SkPoint pts[] = { { 0, 0 }, { SCALAR_SIZE, SCALAR_SIZE } }; local 39 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2,
|
SampleGradients.cpp | 14 SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } }; local 15 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 65 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 66 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); 69 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 71 center.set(SkScalarAve(pts[0].fX, pts[1].fX), 72 SkScalarAve(pts[0].fY, pts[1].fY)); 77 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) 131 SkPoint pts[2] = { variable [all...] |
SampleHairline.cpp | 30 static void generate_pts(SkPoint pts[], int count, int w, int h) { 32 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), 77 SkPoint pts[N]; local 79 generate_pts(pts, N, WIDTH, HEIGHT); 81 canvas->drawLine(pts[0], pts[1], paint); 84 pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY) 93 SkPoint pts[N]; local 116 SkPoint pts[N]; local 140 SkPoint pts[N]; local [all...] |
SampleTiling.cpp | 33 SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(w), SkIntToScalar(h) } }; local 39 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos,
|
SampleVertices.cpp | 42 SkPoint pts[] = { { 0, 0 }, local 45 return SkGradientShader::MakeLinear(pts, colors, nullptr,
|
/external/skia/src/core/ |
SkEdgeBuilder.cpp | 122 void SkEdgeBuilder::addLine(const SkPoint pts[]) { 125 if (line->set(pts)) { 130 if (edge->setLine(pts[0], pts[1])) { 148 if (edge->setLine(pts[0], pts[1], fShiftUp)) { 167 void SkEdgeBuilder::addQuad(const SkPoint pts[]) { 170 if (quad->set(pts)) { 175 if (edge->setQuadratic(pts)) { 182 if (edge->setQuadratic(pts, fShiftUp)) 214 SkPoint pts[4]; local 258 SkPoint pts[4]; local 361 SkPoint pts[4]; local [all...] |
/external/skia/src/effects/ |
SkDashPathEffect.cpp | 58 static bool cull_line(SkPoint* pts, const SkStrokeRec& rec, 66 SkScalar dx = pts[1].x() - pts[0].x(); 67 SkScalar dy = pts[1].y() - pts[0].y(); 76 // cullRect is in device space while pts are in the local coordinate system 89 SkScalar minX = pts[0].fX; 90 SkScalar maxX = pts[1].fX; 116 pts[0].fX = minX; 117 pts[1].fX = maxX 177 SkPoint pts[2]; local [all...] |