HomeSort by relevance Sort by last modified time
    Searched defs:pts (Results 26 - 50 of 237) sorted by null

12 3 4 5 6 7 8 910

  /external/skia/samplecode/
SampleEffects.cpp 42 SkPoint pts[] = { { 3, 0 }, { 7, 5 } }; local
43 paint->setShader(SkGradientShader::CreateLinear(pts, colors, NULL, 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]);
SampleShaders.cpp 28 SkPoint pts[2]; local
31 pts[0].set(0, 0);
32 pts[1].set(0, SkIntToScalar(bm.height()));
35 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
58 SkPoint pts[2]; local
61 pts[0].set(0, 0);
62 pts[1].set(SkIntToScalar(100), 0);
65 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
67 pts[0].set(0, 0);
68 pts[1].set(0, SkIntToScalar(100))
    [all...]
SampleCull.cpp 20 static void addbump(SkPath* path, const SkPoint pts[2], SkScalar bump) {
23 tang.setLength(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY, bump);
25 path->lineTo(SkScalarHalf(pts[0].fX + pts[1].fX) - tang.fY,
26 SkScalarHalf(pts[0].fY + pts[1].fY) + tang.fX);
27 path->lineTo(pts[1])
32 SkPoint pts[4]; local
55 SkPoint pts[4]; local
    [all...]
SampleFontScalerTest.cpp 78 SkPoint pts[4]; local
79 pts[0].set(1.61061274e+09f, 6291456);
80 pts[1].set(-7.18397061e+15f,
82 pts[2].set(-1.30077315e+16f,
84 pts[3].set(-1.30077315e+16f,
88 path.moveTo(pts[0]);
89 path.cubicTo(pts[1], pts[2], pts[3]);
SampleLayers.cpp 32 SkPoint pts[] = { { 0, 0 }, { 0, SK_Scalar1*20 } }; local
33 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode,
SampleText.cpp 83 SkPoint pts[1000]; local
85 SkASSERT(length <= SK_ARRAY_COUNT(pts));
87 pts[i].set(xpos, y), xpos += paint.getTextSize();
89 canvas->drawPosText(text, length, pts, paint);
141 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) {
143 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480);
  /external/skia/src/effects/
SkCornerPathEffect.cpp 41 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[0].fY + step.fY)
    [all...]
  /hardware/intel/common/libmix/mix_video/test/src/
test_framemanager.c 13 guint64 pts; local
20 mixresult = mix_videoframe_get_timestamp(mvf, &pts);
21 g_print("dequeued timestamp = %"G_GINT64_FORMAT"\n", pts);
62 guint64 pts = 0; local
96 pts = idx * G_USEC_PER_SEC * G_GINT64_CONSTANT(1000) * fps_d / fps_n;
97 mixresult = mix_videoframe_set_timestamp(mvf, pts);
102 g_print("original timestamp = %"G_GINT64_FORMAT"\n", pts);
138 mixresult = mix_videoframe_get_timestamp(mvf_1st, &pts);
142 g_print("shuffled timestamp = %"G_GINT64_FORMAT"\n", pts);
164 mixresult = mix_videoframe_get_timestamp(mvf, &pts);
    [all...]
  /external/eigen/test/
geo_homogeneous.cpp 74 Matrix<Scalar, Size, Dynamic> pts; local
79 pts.setRandom(Size,internal::random<int>(1,20));
81 pts1 = pts.colwise().homogeneous();
82 VERIFY_IS_APPROX(aff * pts.colwise().homogeneous(), (aff * pts1).colwise().hnormalized());
83 VERIFY_IS_APPROX(caff * pts.colwise().homogeneous(), (caff * pts1).colwise().hnormalized());
84 VERIFY_IS_APPROX(proj * pts.colwise().homogeneous(), (proj * pts1));
86 VERIFY_IS_APPROX((aff * pts1).colwise().hnormalized(), aff * pts);
87 VERIFY_IS_APPROX((caff * pts1).colwise().hnormalized(), caff * pts);
  /external/libvpx/libvpx/test/
i420_video_source.h 69 // Models a stream where Timebase = 1/FPS, so pts == frame.
70 virtual vpx_codec_pts_t pts() const { return frame_; } function in class:libvpx_test::I420VideoSource
y4m_video_source.h 74 // Models a stream where Timebase = 1/FPS, so pts == frame.
75 virtual vpx_codec_pts_t pts() const { return frame_; } function in class:libvpx_test::Y4mVideoSource
  /external/skia/bench/
ImageFilterCollapse.cpp 64 SkPoint pts[] = { {0, 0}, {SkIntToScalar(W), SkIntToScalar(H)} }; local
70 pts, colors, NULL, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode
PatchBench.cpp 77 const SkPoint pts[] = { { 200.f / 4.f, 0.f }, { 3.f * 200.f / 4, 200.f } }; local
79 return SkGradientShader::CreateLinear(pts, colors, NULL,
VertBench.cpp 27 PTS = (ROW + 1) * (COL + 1),
31 SkPoint fPts[PTS];
32 SkColor fColors[PTS];
46 SkPoint* pts = fPts; local
53 pts->set(xx, yy);
54 pts += 1;
60 SkASSERT(idx[i] < PTS);
67 SkASSERT(PTS == pts - fPts);
71 for (int i = 0; i < PTS; ++i)
    [all...]
  /external/skia/gm/
blurroundrect.cpp 100 SkPoint pts[2] = { local
111 center0.set(SkScalarAve(pts[0].fX, pts[1].fX),
112 SkScalarAve(pts[0].fY, pts[1].fY));
113 center1.set(SkScalarInterp(pts[0].fX, pts[1].fX, SkIntToScalar(3)/5),
114 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4));
115 return SkGradientShader::CreateTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7
    [all...]
gammatext.cpp 14 static SkShader* make_heatGradient(const SkPoint pts[2]) {
17 return SkGradientShader::CreateLinear(pts, bw, NULL,
51 SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } }; local
52 SkShader* s = make_heatGradient(pts);
103 const SkPoint pts[] = { { 0, 0 }, { 240, 0 } }; local
107 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
gradtext.cpp 16 SkPoint pts[] = { { 0, 0 }, { width, 0 } }; local
17 return SkGradientShader::CreateLinear(pts, colors, NULL,
25 SkPoint pts[] = { { 0, 0 }, { width, 0 } }; local
26 return SkGradientShader::CreateLinear(pts, colors, NULL,
33 SkPoint pts[] = { { 0, 0 }, { 1, 0 } }; local
34 return SkGradientShader::CreateLinear(pts, colors, NULL, 2,
matrixconvolution.cpp 36 SkPoint pts[2] = { SkPoint::Make(0, 0), local
41 pts, colors, pos, 2, SkShader::kClamp_TileMode))->unref();
surface.cpp 19 SkPoint pts[] = { { 0, 0 }, { W, H } }; local
21 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
vertices.cpp 18 const SkPoint pts[] = { { w/4, 0 }, { 3*w/4, h } }; local
20 return SkGradientShader::CreateLinear(pts, colors, NULL,
  /external/skia/src/core/
SkEdgeBuilder.cpp 25 void SkEdgeBuilder::addLine(const SkPoint pts[]) {
27 if (edge->setLine(pts[0], pts[1], fShiftUp)) {
34 void SkEdgeBuilder::addQuad(const SkPoint pts[]) {
36 if (edge->setQuadratic(pts, fShiftUp)) {
43 void SkEdgeBuilder::addCubic(const SkPoint pts[]) {
45 if (edge->setCubic(pts, fShiftUp)) {
53 SkPoint pts[4]; local
56 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) {
59 this->addLine(pts);
85 SkPoint pts[4]; local
178 SkPoint pts[4]; local
    [all...]
SkLineClipper.cpp 166 const SkPoint pts[] = { local
170 float x = sect_with_horizontal(pts, 0);
171 SkASSERT(is_between_unsorted(x, pts[0].fX, pts[1].fX));
175 int SkLineClipper::ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[],
190 if (pts[0].fY < pts[1].fY) {
200 if (pts[index1].fY <= clip.fTop) { // we're above the clip
203 if (pts[index0].fY >= clip.fBottom) { // we're below the clip
210 memcpy(tmp, pts, sizeof(tmp))
    [all...]
  /external/skia/src/pathops/
SkAddIntersections.cpp 13 static void debugShowLineIntersection(int pts, const SkIntersectionHelper& wt,
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, const SkIntersectionHelper& wt
282 int pts = 0; local
    [all...]
SkIntersectionHelper.h 51 const SkPoint* pts() const { function in class:SkIntersectionHelper
52 return fSegment->pts();
95 return x() != pts()[0].fX;
103 return y() != pts()[0].fY;
SkPathOpsQuad.h 16 const SkDQuad& first() const { return (const SkDQuad&) pts[0]; }
17 const SkDQuad& second() const { return (const SkDQuad&) pts[2]; }
18 SkDPoint pts[5]; member in struct:SkDQuadPair
50 const SkDQuad& set(const SkPoint pts[kPointCount]) {
51 fPts[0] = pts[0];
52 fPts[1] = pts[1];
53 fPts[2] = pts[2];
83 static SkDPoint SubDivide(const SkPoint pts[kPointCount], const SkDPoint& a, const SkDPoint& c,
86 quad.set(pts);

Completed in 403 milliseconds

12 3 4 5 6 7 8 910