/third_party/skia/gm/ |
H A D | drawimageset.cpp | 156 SkPoint pts[] = {{x * kTileW, 0}, {x * kTileW, kN * kTileH}}; variable 157 matrices[m].mapPoints(pts, 2); 158 SkVector v = pts[1] - pts[0]; 160 canvas->drawLine(pts[1] - v, pts[0] + v, paint); 163 SkPoint pts[] = {{0, y * kTileH}, {kTileW * kM, y * kTileH}}; variable 164 matrices[m].mapPoints(pts, 2); 165 SkVector v = pts[1] - pts[ [all...] |
H A D | patharcto.cpp | 60 static SkPath old_school_polygon(const SkPoint pts[], size_t count, bool isClosed) { in old_school_polygon() argument 62 path.addPoly(pts, count, isClosed); in old_school_polygon() 66 static SkPath new_school_polygon(const SkPoint pts[], size_t count, bool isClosed) { in new_school_polygon() argument 67 return SkPath::Polygon(pts, count, isClosed); in new_school_polygon()
|
/third_party/ffmpeg/libavcodec/ |
H A D | setts_bsf.c | 132 av_log(ctx, AV_LOG_ERROR, "Error while parsing pts expression '%s'\n", s->pts_str); in setts_init() 175 s->var_values[VAR_STARTPTS] = s->cur_pkt->pts; in setts_filter() 183 s->var_values[VAR_PTS] = s->cur_pkt->pts; in setts_filter() 186 s->var_values[VAR_PREV_INPTS] = s->prev_inpkt->pts; in setts_filter() 189 s->var_values[VAR_PREV_OUTPTS] = s->prev_outpkt->pts; in setts_filter() 192 s->var_values[VAR_NEXT_PTS] = pkt->pts; in setts_filter() 200 s->var_values[VAR_TS] = s->cur_pkt->pts; in setts_filter() 222 pkt->pts = new_pts; in setts_filter() 256 { "pts", "set expression for packet PTS", OFFSET(pts_str), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, FLAGS },
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_dnn_processing.c | 243 static int flush_frame(AVFilterLink *outlink, int64_t pts, int64_t *out_pts) in flush_frame() argument 266 *out_pts = out_frame->pts + pts; in flush_frame() 280 int64_t pts; in activate() local 325 if (ff_inlink_acknowledge_status(inlink, &status, &pts)) { in activate() 327 int64_t out_pts = pts; in activate() 328 ret = flush_frame(outlink, pts, &out_pts); in activate()
|
H A D | vf_dnn_classify.c | 209 static int dnn_classify_flush_frame(AVFilterLink *outlink, int64_t pts, int64_t *out_pts) in dnn_classify_flush_frame() argument 229 *out_pts = in_frame->pts + pts; in dnn_classify_flush_frame() 243 int64_t pts; in dnn_classify_activate() local 279 if (ff_inlink_acknowledge_status(inlink, &status, &pts)) { in dnn_classify_activate() 281 int64_t out_pts = pts; in dnn_classify_activate() 282 ret = dnn_classify_flush_frame(outlink, pts, &out_pts); in dnn_classify_activate()
|
H A D | vf_detelecine.c | 45 AVRational pts; member 93 s->pts.num += *p - '0'; in init() 94 s->pts.den += 2; in init() 119 av_log(ctx, AV_LOG_INFO, "Detelecine pattern %s removes up to %d frames per frame, pts advance factor: %d/%d\n", in init() 120 s->pattern, (max + 1) / 2, s->pts.num, s->pts.den); in init() 175 fps = av_mul_q(fps, av_inv_q(s->pts)); in config_output() 180 outlink->time_base = av_mul_q(inlink->time_base, s->pts); in config_output() 197 s->start_time = inpicref->pts; in filter_frame() 331 frame->pts in filter_frame() [all...] |
H A D | af_alimiter.c | 38 int64_t pts; member 293 in_pts = in->pts; in filter_frame() 294 meta = (MetaItem){ in->pts, in->nb_samples }; in filter_frame() 321 in_pts = meta.pts; in filter_frame() 323 if (s->next_out_pts != AV_NOPTS_VALUE && out->pts != s->next_out_pts && in filter_frame() 325 out->pts = s->next_out_pts; in filter_frame() 327 out->pts = in_pts; in filter_frame() 330 s->next_out_pts = out->pts + out_duration; in filter_frame() 349 frame->pts = s->next_in_pts; in request_frame()
|
H A D | vf_zoompan.c | 160 int64_t pts = s->frame_count; in output_single_frame() local 170 var_values[VAR_IN_TIME] = var_values[VAR_IT] = in->pts == AV_NOPTS_VALUE ? in output_single_frame() 171 NAN : in->pts * av_q2d(inlink->time_base); in output_single_frame() 172 var_values[VAR_OUT_TIME] = pts * av_q2d(outlink->time_base); in output_single_frame() 230 out->pts = pts; in output_single_frame() 265 int64_t pts; in activate() local 318 } else if (s->finished && ff_inlink_acknowledge_status(inlink, &status, &pts)) { in activate() 319 ff_outlink_set_status(outlink, status, pts); in activate()
|
H A D | vf_framerate.c | 200 s->work->pts = work_pts; in process_work_frame() 305 int64_t pts; in activate() local 324 if (inpicref->pts == AV_NOPTS_VALUE) { in activate() 331 pts = av_rescale_q(inpicref->pts, s->srce_time_base, s->dest_time_base); in activate() 333 if (s->f1 && pts == s->pts1) { in activate() 344 s->pts1 = pts; in activate() 361 if (ff_inlink_acknowledge_status(inlink, &status, &pts)) { in activate() 366 ff_outlink_set_status(outlink, status, pts); in activate()
|
H A D | vf_w3fdif.c | 492 if (out->pts != AV_NOPTS_VALUE) in filter() 493 out->pts *= 2; in filter() 495 int64_t cur_pts = s->cur->pts; in filter() 496 int64_t next_pts = s->next->pts; in filter() 499 out->pts = cur_pts + next_pts; in filter() 501 out->pts = AV_NOPTS_VALUE; in filter() 542 if (out->pts != AV_NOPTS_VALUE) in filter_frame() 543 out->pts *= 2; in filter_frame() 569 next->pts = s->next->pts * in request_frame() [all...] |
H A D | vf_tinterlace.c | 443 out->pts /= 2; // adjust pts to new framerate in filter_frame() 475 if (cur->pts != AV_NOPTS_VALUE) in filter_frame() 476 out->pts = cur->pts*2; in filter_frame() 478 out->pts = av_rescale_q(out->pts, tinterlace->preout_time_base, outlink->time_base); in filter_frame() 491 if (next->pts != AV_NOPTS_VALUE && cur->pts != AV_NOPTS_VALUE) in filter_frame() 492 out->pts in filter_frame() [all...] |
H A D | asrc_anoisesrc.c | 39 int64_t pts; member 201 ff_outlink_set_status(outlink, AVERROR_EOF, s->pts); in activate() 222 frame->pts = s->pts; in activate() 223 s->pts += nb_samples; in activate()
|
/third_party/ffmpeg/libavformat/ |
H A D | aqtitledec.c | 77 if (frame >= sub->pts && (uint64_t)frame - sub->pts < INT64_MAX) in aqt_read_header() 78 sub->duration = frame - sub->pts; in aqt_read_header() 91 sub->pts = frame; in aqt_read_header()
|
H A D | movenc_ttml.c | 74 end_ts = FFMAX(end_ts, pkt->pts + pkt->duration); in mov_write_ttml_document_from_queue() 79 pkt->dts = pkt->pts = (pkt->pts - start_ts); in mov_write_ttml_document_from_queue() 156 pkt->pts = pkt->dts = start_ts; in ff_mov_generate_squashed_ttml_packet()
|
H A D | vc1test.c | 101 uint32_t pts; in vc1t_read_packet() local 109 pts = avio_rl32(pb); in vc1t_read_packet() 113 pkt->pts = pts; in vc1t_read_packet()
|
H A D | luodatdec.c | 61 int64_t pts, pos = avio_tell(pb); in dat_read_packet() local 77 pts = avio_rl64(pb); in dat_read_packet() 110 pkt->pts = pts; in dat_read_packet()
|
H A D | fitsdec.c | 40 int64_t pts; member 64 fits->pts = 0; in fits_read_header() 204 pkt->pts = fits->pts; in fits_read_packet() 205 fits->pts++; in fits_read_packet()
|
H A D | srtdec.c | 68 int64_t pts; member 78 ei->pts = AV_NOPTS_VALUE; in get_event_info() 88 ei->pts = start; in get_event_info() 110 sub->pts = ei->pts; in add_event()
|
H A D | ivfdec.c | 74 int64_t pts = avio_rl64(s->pb); in read_packet() local 78 pkt->pts = pts; in read_packet()
|
/third_party/skia/src/core/ |
H A D | SkEdge.h | 73 bool setQuadraticWithoutUpdate(const SkPoint pts[3], int shiftUp); 74 int setQuadratic(const SkPoint pts[3], int shiftUp); 85 bool setCubicWithoutUpdate(const SkPoint pts[4], int shiftUp, bool sortY = true); 86 int setCubic(const SkPoint pts[4], int shiftUp);
|
H A D | SkScan_Path.cpp | 686 static int build_tri_edges(SkEdge edge[], const SkPoint pts[], in build_tri_edges() argument 690 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges() 694 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges() 698 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges() 705 static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect, in sk_fill_triangle() argument 707 SkASSERT(pts && blitter); in sk_fill_triangle() 712 int count = build_tri_edges(edgeStorage, pts, clipRec in sk_fill_triangle() 745 FillTriangle(const SkPoint pts[], const SkRasterClip& clip, SkBlitter* blitter) FillTriangle() argument [all...] |
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeTextBlobTest.cpp | 274 OH_Drawing_Point2D pts[count]; in HWTEST_F() local 275 OH_Drawing_TextBlobCreateFromPosText(str, count, &pts[0], font, TEXT_ENCODING_UTF8); in HWTEST_F() 296 OH_Drawing_Point2D pts[count]; in HWTEST_F() local 299 OH_Drawing_TextBlobCreateFromPosText(nullptr, strlen(str), &pts[0], font, TEXT_ENCODING_UTF8); in HWTEST_F() 303 OH_Drawing_TextBlobCreateFromPosText(str, 0, &pts[0], font, TEXT_ENCODING_UTF8); in HWTEST_F() 310 OH_Drawing_TextBlobCreateFromPosText("123456", 6, &pts[0], font, TEXT_ENCODING_UTF8); in HWTEST_F() 313 OH_Drawing_TextBlobCreateFromPosText(str, strlen(str), &pts[0], nullptr, TEXT_ENCODING_UTF8); in HWTEST_F() 342 OH_Drawing_Point2D pts[count]; in HWTEST_F() local 343 OH_Drawing_TextBlobCreateFromPosText(str, strlen(str), &pts[0], font, TEXT_ENCODING_UTF8); in HWTEST_F() 365 OH_Drawing_Point2D pts[coun in HWTEST_F() local [all...] |
/third_party/skia/src/gpu/geometry/ |
H A D | GrPathUtils.cpp | 154 // The quad is degenerate. Hopefully this is rare. Find the pts that are in set() 368 SkPoint* pts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads() local 369 pts[0] = p[0]; in convert_noninflect_cubic_to_quads() 370 pts[1] = newC; in convert_noninflect_cubic_to_quads() 371 pts[2] = p[3]; in convert_noninflect_cubic_to_quads() 496 SkPoint* pts = quads->push_back_n(3); in convert_noninflect_cubic_to_quads_with_constraint() local 497 pts[0] = p[0]; in convert_noninflect_cubic_to_quads_with_constraint() 498 pts[1] = cAvg; in convert_noninflect_cubic_to_quads_with_constraint() 499 pts[2] = p[3]; in convert_noninflect_cubic_to_quads_with_constraint() 553 int GrPathUtils::findCubicConvex180Chops(const SkPoint pts[], floa argument [all...] |
H A D | GrAAConvexTessellator.cpp | 954 void GrAAConvexTessellator::quadTo(const SkPoint pts[3]) { 955 int maxCount = GrPathUtils::quadraticPointCount(pts, kQuadTolerance); 958 int count = GrPathUtils::generateQuadraticPoints(pts[0], pts[1], pts[2], 968 SkPoint pts[3]; 969 m.mapPoints(pts, srcPts, 3); 970 this->quadTo(pts); 974 SkPoint pts[4]; 975 m.mapPoints(pts, srcPt [all...] |
/third_party/skia/src/pathops/ |
H A D | SkPathOpsConic.h | 34 void debugSet(const SkDPoint* pts, SkScalar weight); 48 const SkDConic& set(const SkPoint pts[kPointCount], SkScalar weight in set() 50 fPts.set(pts SkDEBUGPARAMS(state)); in set() 121 static SkDPoint SubDivide(const SkPoint pts[kPointCount], SkScalar weight, in SubDivide() 125 conic.set(pts, weight); in SubDivide()
|