/third_party/skia/gm/ |
D | texteffects.cpp | 179 static int trim_with_halo(SkScalar intervals[], int count, SkScalar margin) { in trim_with_halo() argument 183 SkScalar* stop = intervals + count; in trim_with_halo() 184 *intervals++ -= margin; in trim_with_halo() 185 while (intervals < stop - 1) { in trim_with_halo() 186 intervals[0] += margin; in trim_with_halo() 187 intervals[1] -= margin; in trim_with_halo() 188 if (intervals[0] >= intervals[1]) { // went away in trim_with_halo() 189 int remaining = stop - intervals - 2; in trim_with_halo() 192 memmove(intervals, intervals + 2, remaining * sizeof(SkScalar)); in trim_with_halo() 197 intervals += 2; in trim_with_halo() [all …]
|
D | bug530095.cpp | 26 SkScalar intervals[] = {700, 700 }; variable 27 int intervalCount = (int) SK_ARRAY_COUNT(intervals); 28 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, -40)); 42 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, 0)); 62 const SkScalar intervals[] = { 100, 100 }; variable 63 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 100));
|
D | dashing.cpp | 35 const SkScalar intervals[] = { in drawline() local 40 p.setPathEffect(SkDashPathEffect::Make(intervals, 2, phase)); in drawline() 168 const int* intervals = &gIntervals[1]; in onDraw() local 171 int count = *intervals++; in onDraw() 173 vals[i] = SkIntToScalar(*intervals++); in onDraw() 213 SkScalar intervals[2] = { dashLength, dashLength }; in drawDashedLines() local 215 p.setPathEffect(SkDashPathEffect::Make(intervals, 2, phase)); in drawDashedLines() 495 const SkScalar intervals[] = { 1, 1 }; variable 496 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); 508 const SkScalar intervals[] = { 2, 2 }; variable [all …]
|
D | pathcontourstart.cpp | 31 SkSTArray<100, SkScalar> intervals; in onOnceBeforeDraw() local 33 intervals.push_back(len); in onOnceBeforeDraw() 34 intervals.push_back(len); in onOnceBeforeDraw() 41 fDashPaint.setPathEffect(SkDashPathEffect::Make(intervals.begin(), intervals.count(), 0)); in onOnceBeforeDraw()
|
/third_party/skia/src/core/ |
D | SkRegionPriv.h | 150 const int intervals = runs[1]; in SkipEntireScanline() local 151 SkASSERT(runs[2 + intervals * 2] == SkRegion_kRunTypeSentinel); in SkipEntireScanline() 155 SkASSERT(n == intervals); in SkipEntireScanline() 160 runs += 1 + 1 + intervals * 2 + 1; in SkipEntireScanline() 208 const int intervals = *runs++; in computeRunBounds() local 209 SkASSERT(intervals >= 0); in computeRunBounds() 210 SkASSERT(intervals < SkRegion_kRunTypeSentinel); in computeRunBounds() 212 if (intervals > 0) { in computeRunBounds() 216 SkASSERT(n == intervals); in computeRunBounds() 225 runs += intervals * 2; in computeRunBounds() [all …]
|
/third_party/skia/tests/ |
D | DashPathEffectTest.cpp | 29 SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f }; // Values from bug. in DEF_TEST() local 32 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, phase)); in DEF_TEST() 40 const SkScalar intervals[] = { 1.0f, 1.0f }; in DEF_TEST() local 42 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, 0.0f)); in DEF_TEST() 103 SkScalar intervals[2] = { 1, 1 }; in DEF_TEST() local 104 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, 2, 0)); in DEF_TEST() 123 const SkScalar intervals[] = { 1, 1 }; in DEF_TEST() local 124 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in DEF_TEST()
|
/third_party/skia/docs/examples/ |
D | TextBlob_getIntercepts.cpp | 22 std::vector<SkScalar> intervals; 23 intervals.resize(count); 24 (void) paint.getTextBlobIntercepts(blob.get(), bounds, &intervals.front()); 29 canvas->drawRect({x, bounds[0], intervals[i], bounds[1]}, paint); 30 x = intervals[i + 1]; 32 canvas->drawRect({intervals[count - 1], bounds[0], 180, bounds[1]}, paint);
|
D | skpaint_dash_path_effect.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw() 19 paint.setPathEffect(SkDashPathEffect::Make(intervals, count, 0.0f)); in draw()
|
D | skpaint_compose_path_effect.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw() 20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in draw()
|
D | compose_path.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw() 20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in draw()
|
D | Paint_move_SkPaint.cpp | 8 float intervals[] = { 5, 5 }; in draw() local 9 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 2.5f)); in draw()
|
D | Path_Effect_Methods.cpp | 10 SkScalar intervals[] = {30, 10}; in draw() local 11 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 1)); in draw()
|
D | Paint_refPathEffect.cpp | 8 SkScalar intervals[] = {1, 2}; in draw() local 9 paint1.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 10)); in draw()
|
D | Paint_equal_operator.cpp | 11 float intervals[] = { 5, 5 }; in draw() local 12 paint1.setPathEffect(SkDashPathEffect::Make(intervals, 2, 2.5f)); in draw() 13 paint2.setPathEffect(SkDashPathEffect::Make(intervals, 2, 2.5f)); in draw()
|
D | Path_addRect_3.cpp | 10 float intervals[] = { 5, 21.75f }; in draw() local 12 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in draw()
|
D | Path_addRect.cpp | 10 float intervals[] = { 5, 21.75f }; in draw() local 12 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in draw()
|
/third_party/skia/modules/sksg/src/ |
D | SkSGGeometryEffect.cpp | 97 sk_sp<SkPathEffect> make_dash(const std::vector<float> intervals, float phase) { in make_dash() argument 98 if (intervals.empty()) { in make_dash() 102 const auto* intervals_ptr = intervals.data(); in make_dash() 103 auto intervals_count = intervals.size(); in make_dash() 111 std::copy(intervals.begin(), intervals.end(), storage.begin()); in make_dash() 112 std::copy(intervals.begin(), intervals.end(), storage.begin() + intervals.size()); in make_dash()
|
/third_party/ltp/testcases/realtime/func/rt-migrate/ |
D | rt-migrate.c | 151 stats_container_t *intervals; variable 234 stats_container_append(&intervals[id], rec); in record_time() 261 tasks_max[t] = stats_max(&intervals[t]); in print_results() 262 tasks_min[t] = stats_min(&intervals[t]); in print_results() 263 tasks_avg[t] = stats_avg(&intervals[t]); in print_results() 268 printf("%6ld ", intervals[t].records[i].y); in print_results() 366 if (i && last < intervals[i].records[l].y && in check_times() 367 ((intervals[i].records[l].y - last) > max_err)) { in check_times() 375 intervals[i].records[l].y > last_length || in check_times() 383 last = intervals[i].records[l].y; in check_times() [all …]
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_ra.c | 180 interval_insert(ctx, &ctx->intervals, interval); in ir3_reg_interval_insert() 189 interval_insert(ctx, &ctx->intervals, interval); in ir3_reg_interval_reinsert() 200 rb_tree_remove(&ctx->intervals, &interval->node); in ir3_reg_interval_remove() 213 rb_tree_insert(&ctx->intervals, &child->node, in ir3_reg_interval_remove() 238 rb_tree_remove(&ctx->intervals, &interval->node); in ir3_reg_interval_remove_all() 252 rb_tree_remove(&ctx->intervals, &interval->node); in ir3_reg_interval_remove_temp() 374 struct ra_interval *intervals; member 541 rb_tree_init(&file->reg_ctx.intervals); in ra_file_init() 768 struct ra_interval *other_interval = &ctx->intervals[other_dst->name]; in check_dst_overlap() 1047 DECLARE_ARRAY(struct ra_removed_interval, intervals); in compress_regs_left() [all …]
|
/third_party/skia/src/gpu/ops/ |
D | DashOp.cpp | 85 SkScalar calc_start_adjustment(const SkScalar intervals[2], SkScalar phase) { in calc_start_adjustment() 86 SkASSERT(phase < intervals[0] + intervals[1]); in calc_start_adjustment() 87 if (phase >= intervals[0] && phase != 0) { in calc_start_adjustment() 88 SkScalar srcIntervalLen = intervals[0] + intervals[1]; in calc_start_adjustment() 94 SkScalar calc_end_adjustment(const SkScalar intervals[2], const SkPoint pts[2], in calc_end_adjustment() 99 SkScalar srcIntervalLen = intervals[0] + intervals[1]; in calc_end_adjustment() 109 if (*endingInt > intervals[0]) { in calc_end_adjustment() 110 return *endingInt - intervals[0]; in calc_end_adjustment() 1137 const SkScalar* intervals = style.dashIntervals(); in MakeDashLineOp() local 1146 SkASSERT(phase >= 0 && phase < intervals[0] + intervals[1]); in MakeDashLineOp() [all …]
|
/third_party/skia/src/utils/ |
D | SkDashPath.cpp | 20 static SkScalar find_first_interval(const SkScalar intervals[], SkScalar phase, in find_first_interval() argument 23 SkScalar gap = intervals[i]; in find_first_interval() 36 return intervals[0]; in find_first_interval() 39 void SkDashPath::CalcDashParameters(SkScalar phase, const SkScalar intervals[], int32_t count, in CalcDashParameters() argument 44 len += intervals[i]; in CalcDashParameters() 71 *initialDashLength = find_first_interval(intervals, phase, in CalcDashParameters() 305 const SkScalar* intervals = aIntervals; in InternalFilter() local 318 while (endPhase > intervals[index]) { in InternalFilter() 319 endPhase -= intervals[index++]; in InternalFilter() 421 dlen = intervals[index]; in InternalFilter() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | aptxenc.c | 83 const int32_t *intervals, int32_t nb_intervals) in aptx_bin_search() argument 89 if (MUL64(factor, intervals[idx + i]) <= ((int64_t)value << 24)) in aptx_bin_search() 101 const int32_t *intervals = tables->quantize_intervals; in aptx_quantize_difference() local 111 intervals, tables->tables_size); in aptx_quantize_difference() 116 intervals += quantized_sample; in aptx_quantize_difference() 117 mean = (intervals[1] + intervals[0]) / 2; in aptx_quantize_difference() 118 interval = (intervals[1] - intervals[0]) * (-(sample_difference < 0) | 1); in aptx_quantize_difference()
|
/third_party/ffmpeg/libavfilter/ |
D | f_sendcmd.c | 98 Interval *intervals; member 343 static int parse_intervals(Interval **intervals, int *nb_intervals, in parse_intervals() argument 349 *intervals = NULL; in parse_intervals() 380 *intervals = av_realloc_f(*intervals, n, 2*sizeof(Interval)); in parse_intervals() 381 if (!*intervals) { in parse_intervals() 388 (*intervals)[(*nb_intervals)++] = interval; in parse_intervals() 432 if ((ret = parse_intervals(&s->intervals, &s->nb_intervals, in init() 441 qsort(s->intervals, s->nb_intervals, sizeof(Interval), cmp_intervals); in init() 446 Interval *interval = &s->intervals[i]; in init() 466 Interval *interval = &s->intervals[i]; in uninit() [all …]
|
/third_party/skia/src/effects/ |
D | SkDashPathEffect.cpp | 19 SkDashImpl::SkDashImpl(const SkScalar intervals[], int count, SkScalar phase) in SkDashImpl() argument 24 SkASSERT(intervals); in SkDashImpl() 30 fIntervals[i] = intervals[i]; in SkDashImpl() 384 SkAutoSTArray<32, SkScalar> intervals(count); in CreateProc() local 385 if (buffer.readScalarArray(intervals.get(), count)) { in CreateProc() 386 return SkDashPathEffect::Make(intervals.get(), SkToInt(count), phase); in CreateProc() 393 sk_sp<SkPathEffect> SkDashPathEffect::Make(const SkScalar intervals[], int count, SkScalar phase) { in Make() argument 394 if (!SkDashPath::ValidDashPath(phase, intervals, count)) { in Make() 397 return sk_sp<SkPathEffect>(new SkDashImpl(intervals, count, phase)); in Make()
|
/third_party/node/test/parallel/ |
D | test-timers.js | 55 const intervals = []; variable 64 intervals[index] = true; 75 assert(intervals[index]);
|