Home
last modified time | relevance | path

Searched refs:pts (Results 51 - 75 of 1205) sorted by relevance

12345678910>>...49

/foundation/multimedia/media_foundation/engine/pipeline/filters/common/buffer_calibration/
H A Dstrict_monotonic_pts_cal.h31 if (std::abs(ptr->pts - startTime_) > startTimeDiffThreshold_ || ptr->pts < 0) {
32 ptr->pts = startTime_;
39 if (std::abs(predictedPts - ptr->pts) < ptsDiffThreshold_ && ptr->pts > 0) {
42 ptr->pts = ptr->dts;
44 ptr->pts = predictedPts;
47 lastPts_ = ptr->pts;
/third_party/skia/samplecode/
H A DSampleSlides.cpp177 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkTileMode tm) { in MakeLinear() argument
178 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
181 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkTileMode tm) { in MakeRadial() argument
183 center.set(SkScalarAve(pts[0].fX, pts[1].fX), in MakeRadial()
184 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeRadial()
189 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, SkTileMode tm) { in MakeSweep() argument
191 center.set(SkScalarAve(pts[0].fX, pts[ in MakeSweep()
196 Make2Conical(const SkPoint pts[2], const GradData& data, SkTileMode tm) Make2Conical() argument
213 SkPoint pts[2] = { gradient_slide() local
252 SkPoint pts[] = { { 0, 0 }, make_shader1() local
[all...]
H A DSampleEffects.cpp37 SkPoint pts[] = { { 3, 0 }, { 7, 5 } }; in paint_proc3() local
38 paint->setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in paint_proc3()
65 const float pts[] = { in EffectsView() local
74 fPath.moveTo(pts[0], pts[1]); in EffectsView()
75 for (i = 2; i < SK_ARRAY_COUNT(pts); i += 2) { in EffectsView()
76 fPath.lineTo(pts[i], pts[i+1]); in EffectsView()
H A DSampleClip.cpp145 bool twoPts(SkPoint pts[2]) const { in twoPts()
159 pts[0] = { 0, -c / b }; in twoPts()
160 pts[1] = { b, pts[0].fY - a}; in twoPts()
162 pts[0] = { -c / a, 0 }; in twoPts()
163 pts[1] = { pts[0].fX + b, -a }; in twoPts()
168 SkASSERT(SkScalarNearlyZero(this->operator()(pts[0].fX, pts[0].fY))); in twoPts()
169 SkASSERT(SkScalarNearlyZero(this->operator()(pts[ in twoPts()
289 SkPoint pts[6]; make_path() local
336 SkPoint pts[2]; draw_halfplane() local
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_random.c39 int64_t pts[MAX_FRAMES]; member
77 s->pts[s->nb_frames_filled++] = in->pts; in filter_frame()
84 out->pts = s->pts[0]; in filter_frame()
85 memmove(&s->pts[0], &s->pts[1], (s->nb_frames - 1) * sizeof(s->pts[0])); in filter_frame()
87 s->pts[s->nb_frames - 1] = in->pts; in filter_frame()
[all...]
H A Df_loop.c52 int64_t pts; member
109 out->pts = s->pts; in push_samples()
111 s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); in push_samples()
120 s->duration = s->pts; in push_samples()
148 s->pts = frame->pts; in afilter_frame()
150 s->pts += av_rescale_q(s->start - s->ignored_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); in afilter_frame()
163 s->pts += av_rescale_q(ret, (AVRational){1, outlink->sample_rate}, outlink->time_base); in afilter_frame()
173 frame->pts in afilter_frame()
224 int64_t pts; aactivate() local
326 int64_t pts, duration; push_frame() local
396 int64_t pts; activate() local
[all...]
H A Dframesync.c162 fs->in[i].pts = fs->in[i].pts_next = AV_NOPTS_VALUE; in ff_framesync_configure()
172 int64_t pts; in framesync_advance() local
180 pts = INT64_MAX; in framesync_advance()
182 if (fs->in[i].have_next && fs->in[i].pts_next < pts) in framesync_advance()
183 pts = fs->in[i].pts_next; in framesync_advance()
184 if (pts == INT64_MAX) { in framesync_advance()
189 if (fs->in[i].pts_next == pts || in framesync_advance()
194 fs->in[i].pts = fs->in[i].pts_next; in framesync_advance()
211 fs->pts = pts; in framesync_advance()
216 framesync_pts_extrapolate(FFFrameSync *fs, unsigned in, int64_t pts) framesync_pts_extrapolate() argument
225 int64_t pts; framesync_inject_frame() local
236 framesync_inject_status(FFFrameSync *fs, unsigned in, int status, int64_t pts) framesync_inject_status() argument
301 int64_t pts; consume_from_fifos() local
[all...]
H A Davf_concat.c46 int64_t pts; member
181 buf->pts = av_rescale_q(buf->pts, inlink->time_base, outlink->time_base); in push_frame()
182 in->pts = buf->pts; in push_frame()
187 in->pts += av_rescale_q(buf->nb_samples, in push_frame()
192 in->pts = av_rescale(in->pts, in->nb_frames, in->nb_frames - 1); in push_frame()
194 buf->pts += cat->delta_ts; in push_frame()
231 int64_t pts; in find_next_delta_ts() local
360 int64_t pts; activate() local
[all...]
H A Dfilters.h184 * The pts should reflect the timestamp of the status change,
189 static inline void ff_outlink_set_status(AVFilterLink *link, int status, int64_t pts) in ff_outlink_set_status() argument
191 ff_avfilter_link_set_in_status(link, status, pts); in ff_outlink_set_status()
228 int64_t pts; \
229 if (ff_inlink_acknowledge_status(inlink, &status, &pts)) { \
230 ff_outlink_set_status(outlink, status, pts); \
241 int64_t pts; \
242 if (ff_inlink_acknowledge_status(inlink, &status, &pts)) { \
245 ff_outlink_set_status(filter->outputs[i], status, pts); \
H A Df_reverse.c36 int64_t *pts; member
45 s->pts = av_fast_realloc(NULL, &s->pts_size, in init()
46 DEFAULT_LENGTH * sizeof(*(s->pts))); in init()
47 if (!s->pts) in init()
53 av_freep(&s->pts); in init()
69 av_freep(&s->pts); in uninit()
79 if (s->nb_frames + 1 > s->pts_size / sizeof(*(s->pts))) { in filter_frame()
80 ptr = av_fast_realloc(s->pts, &s->pts_size, s->pts_size * 2); in filter_frame()
83 s->pts = ptr; in filter_frame()
94 s->pts[ in filter_frame()
[all...]
H A Daf_asdr.c33 int64_t pts; member
65 int64_t pts; in activate() local
76 if (s->pts == AV_NOPTS_VALUE) in activate()
77 s->pts = s->cache[i]->pts; in activate()
86 out->pts = s->pts; in activate()
87 s->pts += available; in activate()
94 if (ff_inlink_acknowledge_status(ctx->inputs[i], &status, &pts)) { in activate()
95 ff_outlink_set_status(ctx->outputs[0], status, s->pts); in activate()
[all...]
/third_party/skia/src/core/
H A DSkEdgeBuilder.cpp119 void SkBasicEdgeBuilder::addLine(const SkPoint pts[]) { in addLine() argument
121 if (edge->setLine(pts[0], pts[1], fClipShift)) { in addLine()
133 void SkAnalyticEdgeBuilder::addLine(const SkPoint pts[]) { in addLine() argument
135 if (edge->setLine(pts[0], pts[1])) { in addLine()
148 void SkBasicEdgeBuilder::addQuad(const SkPoint pts[]) { in addQuad() argument
150 if (edge->setQuadratic(pts, fClipShift)) { in addQuad()
154 void SkAnalyticEdgeBuilder::addQuad(const SkPoint pts[]) { in addQuad() argument
156 if (edge->setQuadratic(pts)) { in addQuad()
161 addCubic(const SkPoint pts[]) addCubic() argument
167 addCubic(const SkPoint pts[]) addCubic() argument
176 addPolyLine(const SkPoint pts[], char* arg_edge, char** arg_edgePtr) addPolyLine() argument
188 addPolyLine(const SkPoint pts[], char* arg_edge, char** arg_edgePtr) addPolyLine() argument
[all...]
H A DSkPathRef.cpp352 SkPoint* pts = nullptr;
354 pts = fPoints.append(numPts);
363 return {pts, weights};
414 SkPoint* pts = fPoints.append(pCnt);
417 return pts;
466 SkPoint* pts = fPoints.append(pCnt);
469 return pts;
507 SkPoint pts[4];
508 uint8_t verb = iter.next(pts);
510 while ((verb = iter.next(pts)) !
[all...]
H A DSkPathBuilder.cpp56 for (auto [verb, pts, w] : SkPathPriv::Iterate(src)) { in operator =()
58 case SkPathVerb::kMove: this->moveTo(pts[0]); break; in operator =()
59 case SkPathVerb::kLine: this->lineTo(pts[1]); break; in operator =()
60 case SkPathVerb::kQuad: this->quadTo(pts[1], pts[2]); break; in operator =()
61 case SkPathVerb::kConic: this->conicTo(pts[1], pts[2], w[0]); break; in operator =()
62 case SkPathVerb::kCubic: this->cubicTo(pts[1], pts[2], pts[ in operator =()
762 addPolygon(const SkPoint pts[], int count, bool isClosed) addPolygon() argument
775 polylineTo(const SkPoint pts[], int count) polylineTo() argument
798 SkPoint pts[4]; addPath() local
820 const SkPoint* pts = src.fPathRef->pointsEnd(); privateReverseAddPath() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dpoints.cpp41 void Points::fill_pts(OH_Drawing_Point2D pts[], size_t n, TestRend* rand) in fill_pts() argument
49 pts[i].x = x; in fill_pts()
50 pts[i].y = y; in fill_pts()
73 OH_Drawing_Point2D pts[n]; in OnTestFunction() local
74 fill_pts(pts, n, &rand); in OnTestFunction()
77 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_POLYGON, n, pts); in OnTestFunction()
81 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_LINES, n, pts); in OnTestFunction()
85 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_POINTS, n, pts); in OnTestFunction()
89 OH_Drawing_CanvasDrawPoints(canvas, POINT_MODE_POINTS, n, pts); in OnTestFunction()
/third_party/skia/src/effects/
H A DSkDashPathEffect.cpp62 static bool cull_line(SkPoint* pts, const SkStrokeRec& rec, in cull_line() argument
70 SkScalar dx = pts[1].x() - pts[0].x(); in cull_line()
71 SkScalar dy = pts[1].y() - pts[0].y(); in cull_line()
80 // cullRect is in device space while pts are in the local coordinate system in cull_line()
93 SkScalar minX = pts[0].fX; in cull_line()
94 SkScalar maxX = pts[1].fX; in cull_line()
122 pts[0].fX = minX; in cull_line()
123 pts[ in cull_line()
185 SkPoint pts[2]; onAsPoints() local
[all...]
/third_party/skia/src/gpu/tessellate/
H A DPathWedgeTessellator.cpp33 // for (auto [verb, pts] : parser.currentContour()) {
157 for (auto [verb, pts, w] : parser.currentContour()) { in writePatches()
160 startPoint = lastPoint = pts[0]; in writePatches()
165 CubicPatch(patchWriter) << LineToCubic{m.map2Points(pts)}; in writePatches()
166 lastPoint = pts[1]; in writePatches()
171 auto [p0, p1] = m.map2Points(pts); in writePatches()
172 auto p2 = m.map1Point(pts+2); in writePatches()
174 pts, in writePatches()
186 lastPoint = pts[2]; in writePatches()
191 auto [p0, p1] = m.map2Points(pts); in writePatches()
236 SkPoint pts[2] = {lastPoint, startPoint}; writePatches() local
[all...]
H A DStrokeIterator.h26 // iter.pts();
72 auto [verb, pts, w] = *fIter; in next()
80 if (pts[3] == pts[2]) { in next()
84 if (pts[2] == pts[1]) { in next()
87 if (pts[1] == pts[0]) { in next()
88 fLastDegenerateStrokePt = pts; in next()
91 this->enqueue((Verb)verb, pts, in next()
127 const SkPoint* pts() const { return this->atPts(1); } pts() function in skgpu::StrokeIterator
158 enqueue(Verb verb, const SkPoint* pts, const float* w) enqueue() argument
[all...]
/third_party/skia/tests/
H A DPathOpsLineIntersectionTest.cpp113 int pts = i.intersect(line1, line2); in testOne() local
114 REPORTER_ASSERT(reporter, pts); in testOne()
115 REPORTER_ASSERT(reporter, pts == i.used()); in testOne()
156 int pts = i.intersect(line1, line2); in testOneCoincident() local
157 REPORTER_ASSERT(reporter, pts == 2); in testOneCoincident()
158 REPORTER_ASSERT(reporter, pts == i.used()); in testOneCoincident()
168 REPORTER_ASSERT(reporter, pts == 2); in testOneCoincident()
169 REPORTER_ASSERT(reporter, pts == ts.used()); in testOneCoincident()
177 REPORTER_ASSERT(reporter, pts == 2); in testOneCoincident()
178 REPORTER_ASSERT(reporter, pts in testOneCoincident()
218 int pts = ts.intersect(line1, line2); DEF_TEST() local
[all...]
/third_party/skia/src/pathops/
H A DSkOpContour.h29 void addConic(SkPoint pts[3], SkScalar weight) { in addConic() argument
30 appendSegment().addConic(pts, weight, this); in addConic()
33 void addCubic(SkPoint pts[4]) { in addCubic() argument
34 appendSegment().addCubic(pts, this); in addCubic()
37 SkOpSegment* addLine(SkPoint pts[2]) { in addLine() argument
38 SkASSERT(pts[0] != pts[1]); in addLine()
39 return appendSegment().addLine(pts, this); in addLine()
42 void addQuad(SkPoint pts[3]) { in addQuad() argument
43 appendSegment().addQuad(pts, thi in addQuad()
[all...]
/third_party/skia/bench/
H A DDashBench.cpp108 SkPoint pts[2]; variable
109 if (!path.isLine(pts) || pts[0].fY != pts[1].fY) {
113 rect.fLeft = pts[0].fX;
114 rect.fTop = pts[0].fY - paint.getStrokeWidth() / 2;
122 int count = SkScalarRoundToInt((pts[1].fX - pts[0].fX) / (2*fWidth));
279 SkPoint pts[2] = { variable
285 pts[
344 const SkPoint pts[2] = { GiantDashBench() local
404 SkPoint pts[4] = { global() variable
[all...]
/third_party/ffmpeg/libavformat/
H A Doggdec.h45 * @return pts
171 uint64_t pts = AV_NOPTS_VALUE; in ogg_gptopts() local
174 pts = os->codec->gptopts(s, i, gp, dts); in ogg_gptopts()
176 pts = gp; in ogg_gptopts()
178 *dts = pts; in ogg_gptopts()
180 if (pts > INT64_MAX && pts != AV_NOPTS_VALUE) { in ogg_gptopts()
181 // The return type is unsigned, we thus cannot return negative pts in ogg_gptopts()
182 av_log(s, AV_LOG_ERROR, "invalid pts %"PRId64"\n", pts); in ogg_gptopts()
[all...]
/third_party/skia/src/utils/
H A DSkPatchUtils.cpp165 SkPoint pts[kNumPtsCubic]; in GetLevelOfDetail() local
166 SkPatchUtils::GetTopCubic(cubics, pts); in GetLevelOfDetail()
167 matrix->mapPoints(pts, kNumPtsCubic); in GetLevelOfDetail()
168 SkScalar topLength = approx_arc_length(pts, kNumPtsCubic); in GetLevelOfDetail()
170 SkPatchUtils::GetBottomCubic(cubics, pts); in GetLevelOfDetail()
171 matrix->mapPoints(pts, kNumPtsCubic); in GetLevelOfDetail()
172 SkScalar bottomLength = approx_arc_length(pts, kNumPtsCubic); in GetLevelOfDetail()
174 SkPatchUtils::GetLeftCubic(cubics, pts); in GetLevelOfDetail()
175 matrix->mapPoints(pts, kNumPtsCubic); in GetLevelOfDetail()
176 SkScalar leftLength = approx_arc_length(pts, kNumPtsCubi in GetLevelOfDetail()
293 SkPoint pts[kNumPtsCubic]; MakeVertices() local
[all...]
H A DSkShadowTessellator.cpp74 void handleQuad(const SkPoint pts[3]);
75 void handleQuad(const SkMatrix& m, SkPoint pts[3]);
77 void handleCubic(const SkMatrix& m, SkPoint pts[4]);
79 void handleConic(const SkMatrix& m, SkPoint pts[3], SkScalar w);
769 void SkBaseShadowTessellator::handleQuad(const SkPoint pts[3]) { in handleQuad() argument
772 SkVector v0 = pts[1] - pts[0]; in handleQuad()
773 SkVector v1 = pts[2] - pts[0]; in handleQuad()
778 int maxCount = GrPathUtils::quadraticPointCount(pts, kQuadToleranc in handleQuad()
794 handleQuad(const SkMatrix& m, SkPoint pts[3]) handleQuad() argument
799 handleCubic(const SkMatrix& m, SkPoint pts[4]) handleCubic() argument
820 handleConic(const SkMatrix& m, SkPoint pts[3], SkScalar w) handleConic() argument
946 SkPoint pts[4]; computePathPolygon() local
1059 SkPoint pts[4]; computeClipAndPathPolygons() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/
H A Dge_linear_gradient_blur_shader_filter.cpp192 Drawing::Point (&pts)[2], const Drawing::Rect& clipBounds, GEGradientDirection direction) // 2 size of points
196 pts[0].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetTop()); // 2 middle of width;
197 pts[1].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetBottom()); // 2 middle of width;
201 pts[0].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetBottom()); // 2 middle of width;
202 pts[1].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetTop()); // 2 middle of width;
206 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height;
207 pts[1].Set(clipBounds.GetRight(),
212 pts[0].Set(clipBounds.GetRight(),
214 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height;
220 return ProcessGradientDirectionPoints(pts, clipBound
270 Drawing::Point pts[2]; // 2 size of points MakeAlphaGradientShader() local
[all...]

Completed in 16 milliseconds

12345678910>>...49