Home
last modified time | relevance | path

Searched refs:pts (Results 126 - 150 of 883) sorted by relevance

12345678910>>...36

/third_party/skia/src/core/
H A DSkGeometry.h71 inline float SkMeasureQuadRotation(const SkPoint pts[3]) { in SkMeasureQuadRotation() argument
72 return SkMeasureAngleBetweenVectors(pts[1] - pts[0], pts[2] - pts[1]); in SkMeasureQuadRotation()
305 SkConic(const SkPoint pts[3], SkScalar w) { in SkConic()
306 memcpy(fPts, pts, sizeof(fPts)); in SkConic()
313 void set(const SkPoint pts[3], SkScalar w) { in set()
314 memcpy(fPts, pts, 3 * sizeof(SkPoint)); in set()
350 * Chop this conic into N quads, stored continguously in pts[], wher
502 SkPoint* pts = fStorage.reset(1 + 2 * fQuadCount); computeQuads() local
507 computeQuads(const SkPoint pts[3], SkScalar weight, SkScalar tol) computeQuads() argument
[all...]
H A DSkStroke.cpp437 SkPoint pts[4]; in has_valid_tangent() local
438 while ((verb = copy.next(pts))) { in has_valid_tangent()
443 if (pts[0] == pts[1]) { in has_valid_tangent()
449 if (pts[0] == pts[1] && pts[0] == pts[2]) { in has_valid_tangent()
454 if (pts[0] == pts[ in has_valid_tangent()
[all...]
H A DSkPath_serial.cpp103 int32_t pts = fPathRef->countPoints(); in writeToMemory() local
109 size = safe.add(size, safe.mul(pts, sizeof(SkPoint))); in writeToMemory()
122 buffer.write32(pts); in writeToMemory()
125 buffer.write(fPathRef->points(), pts * sizeof(SkPoint)); in writeToMemory()
220 int32_t pts, cnx, vbs; in readFromMemory_EQ4Or5() local
221 if (!buffer.readS32(&pts) || !buffer.readS32(&cnx) || !buffer.readS32(&vbs)) { in readFromMemory_EQ4Or5()
225 const SkPoint* points = buffer.skipCount<SkPoint>(pts); in readFromMemory_EQ4Or5()
236 if (p && ((pts -= p) < 0)) { \ in readFromMemory_EQ4Or5()
252 tmp.incReserve(pts); in readFromMemory_EQ4Or5()
287 if (pts || cn in readFromMemory_EQ4Or5()
[all...]
/third_party/skia/gm/
H A Dcomposeshader.cpp34 SkPoint pts[2]; in make_shader() local
37 pts[0].set(0, 0); in make_shader()
38 pts[1].set(SkIntToScalar(100), 0); in make_shader()
41 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp); in make_shader()
43 pts[0].set(0, 0); in make_shader()
44 pts[1].set(0, SkIntToScalar(100)); in make_shader()
47 auto shaderB = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp); in make_shader()
157 SkPoint pts[2]; in make_linear_gradient_shader() local
159 pts[0].set(0, 0); in make_linear_gradient_shader()
160 pts[ in make_linear_gradient_shader()
287 const SkPoint pts[] = { { 0, 0 }, { 0, size } }; make_src_shader() local
293 const SkPoint pts[] = { { 0, 0 }, { size, 0 } }; make_dst_shader() local
[all...]
H A Dgradtext.cpp31 SkPoint pts[] = { { 0, 0 }, { width, 0 } }; in make_grad() local
32 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_grad()
39 SkPoint pts[] = { { 0, 0 }, { width, 0 } }; in make_grad2() local
40 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_grad2()
46 SkPoint pts[] = { { 0, 0 }, { 1, 0 } }; in make_chrome_solid() local
47 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp); in make_chrome_solid()
H A Dperspshaders.cpp195 SkPoint pts[6]; in make_path() local
196 for (auto& p : pts) { in make_path()
199 path.moveTo(pts[0]).quadTo(pts[1], pts[2]).quadTo(pts[3], pts[4]).lineTo(pts[5]); in make_path()
H A Dpathfill.cpp644 SkPoint pts[] = { in DEF_SIMPLE_GM() local
659 path.moveTo(pts[0]).cubicTo(pts[1], pts[2], pts[3]) in DEF_SIMPLE_GM()
660 .cubicTo(pts[4], pts[5], pts[6]) in DEF_SIMPLE_GM()
661 .cubicTo(pts[7], pts[ in DEF_SIMPLE_GM()
677 SkPoint pts[] = { {20, 20}, {100, 20}, {100, 60}, {130, 150}, {180, 160} }; DEF_SIMPLE_GM() local
[all...]
H A Dgammatext.cpp26 static sk_sp<SkShader> make_heatGradient(const SkPoint pts[2]) { in make_heatGradient() argument
29 return SkGradientShader::MakeLinear(pts, bw, nullptr, SK_ARRAY_COUNT(bw), SkTileMode::kClamp); in make_heatGradient()
52 const SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } }; in drawGrad() local
56 paint.setShader(make_heatGradient(pts)); in drawGrad()
100 const SkPoint pts[] = { { 0, 0 }, { 240, 0 } }; in make_gradient() local
104 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp); in make_gradient()
/third_party/skia/tests/
H A DPathTest.cpp421 const SkPoint pts[] = { in test_bad_cubic_crbug229478() local
429 path.moveTo(pts[0]); in test_bad_cubic_crbug229478()
430 path.cubicTo(pts[1], pts[2], pts[3]); in test_bad_cubic_crbug229478()
749 const SkPoint pts[] = { in test_tricky_cubic() local
757 path.moveTo(pts[0]); in test_tricky_cubic()
758 path.cubicTo(pts[1], pts[2], pts[ in test_tricky_cubic()
899 SkPoint pts[] = { test_rect_isfinite() local
1011 SkPoint pts[32]; test_addPoly() local
1179 stroke_cubic(const SkPoint pts[4]) stroke_cubic() argument
1219 SkPoint pts[4]; check_close() local
1739 SkPoint pts[2]; test_isLine() local
2624 static const SkPoint pts[] = { test_flattening() local
2675 static const SkPoint pts[] = { test_transform() local
2897 SkPoint pts[4]; test_iter() local
4202 SkPoint pts[] = {{5, 4}, {6, 5}, {7, 6}, {6, 6}, {4, 6}, {5, 7}, {5, 5}, {5, 4}, {6, 5}, {7, 6}}; test_contains() local
4878 SkPoint pts[4]; DEF_TEST() local
5389 draw_triangle(SkCanvas* canvas, const SkPoint pts[]) draw_triangle() argument
5406 const SkPoint pts[] = { DEF_TEST() local
5422 const SkPoint pts[] = { DEF_TEST() local
5676 SkPoint pts[4]; assert_points() local
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_repeatfields.c68 static void update_pts(AVFilterLink *link, AVFrame *f, int64_t pts, int fields) in update_pts() argument
73 f->pts = pts + av_rescale_q(fields, (AVRational){1001, 60000}, link->time_base); in update_pts()
75 f->pts = AV_NOPTS_VALUE; in update_pts()
90 s->frame->pts = AV_NOPTS_VALUE; in filter_frame()
114 update_pts(outlink, out, in->pts, 2); in filter_frame()
143 update_pts(outlink, out, in->pts, 1); in filter_frame()
H A Df_realtime.c42 if (frame->pts != AV_NOPTS_VALUE) { in filter_frame()
43 int64_t pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q) / s->speed; in filter_frame() local
45 int64_t sleep = pts - now + s->delta; in filter_frame()
49 s->delta = now - pts; in filter_frame()
56 s->delta = now - pts; in filter_frame()
H A Dvf_freezedetect.c164 if (s->reference_frame->pts == AV_NOPTS_VALUE || frame->pts == AV_NOPTS_VALUE || frame->pts < s->reference_frame->pts) // Discontinuity? in activate()
167 duration = av_rescale_q(frame->pts - s->reference_frame->pts, inlink->time_base, AV_TIME_BASE_Q); in activate()
172 set_meta(s, frame, "lavfi.freezedetect.freeze_start", av_ts2timestr(s->reference_frame->pts, &inlink->time_base)); in activate()
175 set_meta(s, frame, "lavfi.freezedetect.freeze_end", av_ts2timestr(frame->pts, &inlink->time_base)); in activate()
H A Daf_aresample.c204 if(insamplesref->pts != AV_NOPTS_VALUE) { in filter_frame()
205 int64_t inpts = av_rescale(insamplesref->pts, inlink->time_base.num * (int64_t)outlink->sample_rate * inlink->sample_rate, inlink->time_base.den); in filter_frame()
208 outsamplesref->pts = ROUNDED_DIV(outpts, inlink->sample_rate); in filter_frame()
210 outsamplesref->pts = AV_NOPTS_VALUE; in filter_frame()
236 int64_t pts; in flush_frame() local
243 pts = swr_next_pts(aresample->swr, INT64_MIN); in flush_frame()
244 pts = ROUNDED_DIV(pts, inlink->sample_rate); in flush_frame()
255 outsamplesref->pts = pts; in flush_frame()
[all...]
H A Daf_afade.c45 int64_t pts; member
276 int64_t cur_sample = av_rescale_q(buf->pts, inlink->time_base, (AVRational){1, inlink->sample_rate}); in filter_frame()
452 int64_t pts; in activate() local
459 in->pts = s->pts; in activate()
460 s->pts += av_rescale_q(in->nb_samples, in activate()
465 } else if (ff_inlink_acknowledge_status(ctx->inputs[1], &status, &pts)) { in activate()
466 ff_outlink_set_status(ctx->outputs[0], status, pts); in activate()
482 in->pts = s->pts; in activate()
[all...]
H A Dvf_telecine.c43 AVRational pts; member
89 s->pts.num += 2; in init()
90 s->pts.den += *p - '0'; in init()
96 av_log(ctx, AV_LOG_INFO, "Telecine pattern %s yields up to %d frames per frame, pts advance factor: %d/%d\n", in init()
97 s->pattern, s->out_cnt, s->pts.num, s->pts.den); in init()
149 fps = av_mul_q(fps, av_inv_q(s->pts)); in config_output()
154 outlink->time_base = av_mul_q(inlink->time_base, s->pts); in config_output()
171 s->start_time = inpicref->pts; in filter_frame()
246 frame->pts in filter_frame()
[all...]
/third_party/skia/docs/examples/
H A DMatrix_mapRectToQuad.cpp12 SkPoint pts[4]; in REG_FIDDLE() local
13 matrix.mapRectToQuad(pts, rect); in REG_FIDDLE()
15 canvas->drawCircle(pts[i].fX, pts[i].fY, 3, paint); in REG_FIDDLE()
/third_party/ffmpeg/libavformat/
H A Ddemux.c481 ref = pkt->pts; in update_wrap_reference()
630 pkt->pts = wrap_timestamp(st, pkt->pts); in ff_read_packet()
634 /* TODO: audio: time filter; video: frame reordering (pts != dts) */ in ff_read_packet()
636 pkt->dts = pkt->pts = av_rescale_q(av_gettime(), AV_TIME_BASE_Q, st->time_base); in ff_read_packet()
793 * Updates the dts of packets of a stream in pkt_buffer, by re-ordering the pts
811 if (pkt_buffer->pkt.pts != AV_NOPTS_VALUE && delay <= MAX_REORDER_DELAY) { in update_dts_from_pts()
812 pts_buffer[0] = pkt_buffer->pkt.pts; in update_dts_from_pts()
822 int64_t dts, int64_t pts, AVPacket *pkt) in update_initial_timestamps()
843 if (is_relative(pts)) in update_initial_timestamps()
821 update_initial_timestamps(AVFormatContext *s, int stream_index, int64_t dts, int64_t pts, AVPacket *pkt) update_initial_timestamps() argument
1381 int64_t pts = pkt->pts - (is_relative(pkt->pts) ? RELATIVE_TS_BASE : 0); read_frame_internal() local
[all...]
H A Dvoc_packet.c41 voc->pts, in ff_voc_get_packet()
152 pkt->dts = pkt->pts = voc->pts; in ff_voc_get_packet()
155 if (duration > 0 && voc->pts != AV_NOPTS_VALUE) in ff_voc_get_packet()
156 voc->pts += duration; in ff_voc_get_packet()
158 voc->pts = AV_NOPTS_VALUE; in ff_voc_get_packet()
H A Djvdec.c50 int64_t pts; member
168 while (!avio_feof(s->pb) && jv->pts < asti->nb_index_entries) { in read_packet()
169 const AVIndexEntry *const e = asti->index_entries + jv->pts; in read_packet()
170 const JVFrame *jvf = jv->frames + jv->pts; in read_packet()
179 pkt->pts = e->timestamp; in read_packet()
202 pkt->pts = jv->pts; in read_packet()
211 jv->pts++; in read_packet()
249 jv->pts = i; in read_seek()
/third_party/skia/src/gpu/effects/
H A DGrConvexPolyEffect.cpp41 SkPoint pts[4]; in Make() local
50 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in Make()
59 if (pts[0] != pts[1]) { in Make()
60 SkVector v = pts[1] - pts[0]; in Make()
69 edges[3 * n + 2] = -(edges[3 * n] * pts[1].fX + edges[3 * n + 1] * pts[1].fY); in Make()
/third_party/skia/src/utils/
H A DSkParsePath.cpp245 const auto append_command = [&](char cmd, const SkPoint pts[], size_t count) { in ToSVGString()
251 const auto pt = pts[i] - current_point; in ToSVGString()
262 current_point = pts[count - 1] * rel_selector; in ToSVGString()
266 SkPoint pts[4]; in ToSVGString() local
269 switch (iter.next(pts)) { in ToSVGString()
273 const SkPoint* quadPts = quadder.computeQuads(pts, iter.conicWeight(), tol); in ToSVGString()
279 append_command('M', &pts[0], 1); in ToSVGString()
282 append_command('L', &pts[1], 1); in ToSVGString()
285 append_command('Q', &pts[1], 2); in ToSVGString()
288 append_command('C', &pts[ in ToSVGString()
[all...]
/third_party/skia/samplecode/
H A DSamplePathTessellators.cpp283 const SkPoint* pts = SkPathPriv::PointData(fPath); in onFindClickHandler() local
286 if (fabs(x - pts[i].x()) < fuzz && fabsf(y - pts[i].y()) < fuzz) { in onFindClickHandler()
301 for (auto [verb, pts, _] : SkPathPriv::Iterate(path)) { in update_weight()
304 path_.moveTo(pts[0]); in update_weight()
307 path_.lineTo(pts[1]); in update_weight()
310 path_.quadTo(pts[1], pts[2]); in update_weight()
313 path_.cubicTo(pts[1], pts[ in update_weight()
[all...]
H A DSamplePath.cpp428 static int compute_parallel_to_base(const SkPoint pts[4], SkScalar t[2]) {
430 SkVector A = pts[3] - pts[0] + (pts[1] - pts[2]) * 3.0f;
431 SkVector B = (pts[0] - pts[1] - pts[1] + pts[2]) * 3.0f;
432 SkVector C = (pts[
602 showFrame(SkCanvas* canvas, const SkPoint pts[], int count, const SkPaint& p) showFrame() argument
637 SkPoint pts[2]; showFlattness() local
[all...]
/third_party/skia/src/pathops/
H A DSkIntersectionHelper.h54 const SkPoint* pts() const { in pts() function in SkIntersectionHelper
55 return fSegment->pts(); in pts()
98 return x() != pts()[0].fX; in xFlipped()
106 return y() != pts()[0].fY; in yFlipped()
H A DSkPathOpsCubic.cpp106 dst.pts[0] = fPts[0]; in chopAt()
107 dst.pts[1].fX = (fPts[0].fX + fPts[1].fX) / 2; in chopAt()
108 dst.pts[1].fY = (fPts[0].fY + fPts[1].fY) / 2; in chopAt()
109 dst.pts[2].fX = (fPts[0].fX + 2 * fPts[1].fX + fPts[2].fX) / 4; in chopAt()
110 dst.pts[2].fY = (fPts[0].fY + 2 * fPts[1].fY + fPts[2].fY) / 4; in chopAt()
111 dst.pts[3].fX = (fPts[0].fX + 3 * (fPts[1].fX + fPts[2].fX) + fPts[3].fX) / 8; in chopAt()
112 dst.pts[3].fY = (fPts[0].fY + 3 * (fPts[1].fY + fPts[2].fY) + fPts[3].fY) / 8; in chopAt()
113 dst.pts[4].fX = (fPts[1].fX + 2 * fPts[2].fX + fPts[3].fX) / 4; in chopAt()
114 dst.pts[4].fY = (fPts[1].fY + 2 * fPts[2].fY + fPts[3].fY) / 4; in chopAt()
115 dst.pts[ in chopAt()
149 hullIntersects(const SkDPoint* pts, int ptCount, bool* isLinear) const hullIntersects() argument
[all...]

Completed in 19 milliseconds

12345678910>>...36