| /third_party/skia/gm/ |
| H A 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, interval in trim_with_halo() [all...] |
| H A D | bug530095.cpp | 26 SkScalar intervals[] = {700, 700 }; in DEF_SIMPLE_GM() local 27 int intervalCount = (int) SK_ARRAY_COUNT(intervals); in DEF_SIMPLE_GM() 28 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, -40)); in DEF_SIMPLE_GM() 42 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, 0)); in DEF_SIMPLE_GM() 62 const SkScalar intervals[] = { 100, 100 }; in DEF_SIMPLE_GM() local 63 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 100)); in DEF_SIMPLE_GM()
|
| H A D | dashing.cpp | 35 const SkScalar intervals[] = { in drawline() local 40 p.setPathEffect(SkDashPathEffect::Make(intervals, 2, phase)); in drawline() 148 3, // 3 dashes: each count [0] followed by intervals [1..count] 168 const int* intervals = &gIntervals[1]; variable 171 int count = *intervals++; 173 vals[i] = SkIntToScalar(*intervals++); 213 SkScalar intervals[2] = { dashLength, dashLength }; in drawDashedLines() local 215 p.setPathEffect(SkDashPathEffect::Make(intervals, 2, phase)); in drawDashedLines() 335 // zero length intervals should draw 495 const SkScalar intervals[] in DEF_SIMPLE_GM() local 508 const SkScalar intervals[] = { 2, 2 }; DEF_SIMPLE_GM() local 527 constexpr SkScalar intervals[] = { kOnOffInterval, kOnOffInterval }; DEF_SIMPLE_GM() local 578 const SkScalar intervals[] = { 12, 12 }; DEF_SIMPLE_GM() local [all...] |
| H A D | pathcontourstart.cpp | 31 SkSTArray<100, SkScalar> intervals; variable 33 intervals.push_back(len); 34 intervals.push_back(len); 41 fDashPaint.setPathEffect(SkDashPathEffect::Make(intervals.begin(), intervals.count(), 0));
|
| H A D | pathmeasure.cpp | 22 float intervals[] = { 0, 10e9f }; in path_measure_explosion() local 24 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in path_measure_explosion()
|
| /third_party/skia/src/core/ |
| H A D | SkRegionPriv.h | 75 * Number of intervals in the entire region. This equals the number of 150 const int intervals = runs[1]; in SkipEntireScanline() 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++; 209 SkASSERT(intervals >= 0); 210 SkASSERT(intervals < SkRegion_kRunTypeSentinel); 212 if (intervals > 0) { 216 SkASSERT(n == intervals); [all...] |
| /third_party/skia/docs/examples/ |
| H A D | TextBlob_getIntercepts.cpp | 22 std::vector<SkScalar> intervals; in REG_FIDDLE() local 23 intervals.resize(count); in REG_FIDDLE() 24 (void) paint.getTextBlobIntercepts(blob.get(), bounds, &intervals.front()); in REG_FIDDLE() 29 canvas->drawRect({x, bounds[0], intervals[i], bounds[1]}, paint); in REG_FIDDLE() 30 x = intervals[i + 1]; in REG_FIDDLE() 32 canvas->drawRect({intervals[count - 1], bounds[0], 180, bounds[1]}, paint); in REG_FIDDLE()
|
| H A D | skpaint_dash_path_effect.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in REG_FIDDLE() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in REG_FIDDLE() 19 paint.setPathEffect(SkDashPathEffect::Make(intervals, count, 0.0f)); in REG_FIDDLE()
|
| H A D | skpaint_compose_path_effect.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in REG_FIDDLE() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in REG_FIDDLE() 20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in REG_FIDDLE()
|
| H A D | compose_path.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in REG_FIDDLE() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in REG_FIDDLE() 20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in REG_FIDDLE()
|
| H A D | Path_Effect_Methods.cpp | 10 SkScalar intervals[] = {30, 10}; in REG_FIDDLE() local 11 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 1)); in REG_FIDDLE()
|
| H A D | Paint_move_SkPaint.cpp | 8 float intervals[] = { 5, 5 }; in REG_FIDDLE() local 9 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 2.5f)); in REG_FIDDLE()
|
| H A D | Paint_refPathEffect.cpp | 8 SkScalar intervals[] = {1, 2}; in REG_FIDDLE() local 9 paint1.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 10)); in REG_FIDDLE()
|
| H A D | Paint_equal_operator.cpp | 11 float intervals[] = { 5, 5 }; in REG_FIDDLE() local 12 paint1.setPathEffect(SkDashPathEffect::Make(intervals, 2, 2.5f)); in REG_FIDDLE() 13 paint2.setPathEffect(SkDashPathEffect::Make(intervals, 2, 2.5f)); in REG_FIDDLE()
|
| H A D | Path_addRect.cpp | 10 float intervals[] = { 5, 21.75f }; in REG_FIDDLE() local 12 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in REG_FIDDLE()
|
| H A D | RRect_setRectRadii.cpp | 11 float intervals[] = { 5, 21.75f }; in REG_FIDDLE() local 13 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in REG_FIDDLE()
|
| H A D | Path_addRect_3.cpp | 10 float intervals[] = { 5, 21.75f }; in REG_FIDDLE() local 12 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in REG_FIDDLE()
|
| /third_party/skia/tests/ |
| H A 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() 128 // This used to cause SkDashImpl to walk off the end of the intervals arra [all...] |
| /third_party/skia/modules/sksg/src/ |
| H A 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/skia/src/gpu/ops/ |
| H A D | DashOp.cpp | 84 // Assumes phase < sum of all intervals 85 SkScalar calc_start_adjustment(const SkScalar intervals[2], SkScalar phase) { in calc_start_adjustment() argument 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() argument 99 SkScalar srcIntervalLen = intervals[0] + intervals[ in calc_end_adjustment() [all...] |
| /third_party/ltp/testcases/realtime/func/rt-migrate/ |
| H A D | rt-migrate.c | 151 stats_container_t *intervals; variable 187 "-t time Sleep time (ms) between intervals (100)\n" in usage() 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[ in check_times() [all...] |
| /third_party/mesa3d/src/freedreno/ir3/ |
| H A D | ir3_ra.c | 33 * perspective of the allocator itself, only the top-level intervals matter, 34 * and the allocator is only concerned with allocating top-level intervals, 35 * which may mean moving other top-level intervals around. Other intervals, 158 /* "right" must contain "interval," since intervals must form a in interval_insert() 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, in ir3_reg_interval_remove_all() 374 struct ra_interval *intervals; global() member 2385 struct ir3_reg_interval *intervals = calc_min_limit_pressure() local [all...] |
| /third_party/ffmpeg/libavfilter/ |
| H A D | f_sendcmd.c | 104 Interval *intervals; member 349 static int parse_intervals(Interval **intervals, int *nb_intervals, in parse_intervals() argument 355 *intervals = NULL; in parse_intervals() 386 *intervals = av_realloc_f(*intervals, n, 2*sizeof(Interval)); in parse_intervals() 387 if (!*intervals) { in parse_intervals() 389 "Could not (re)allocate intervals array\n"); in parse_intervals() 394 (*intervals)[(*nb_intervals)++] = interval; in parse_intervals() 438 if ((ret = parse_intervals(&s->intervals, &s->nb_intervals, in init() 447 qsort(s->intervals, in init() [all...] |
| /third_party/skia/src/utils/ |
| H A 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() 296 // we must always have an even number of intervals 305 const SkScalar* intervals = aIntervals; 318 while (endPhase > intervals[index]) { 319 endPhase -= intervals[inde [all...] |
| /third_party/ffmpeg/libavcodec/ |
| H A D | aptxenc.c | 88 const int32_t *intervals, int32_t nb_intervals) in aptx_bin_search() 94 if (MUL64(factor, intervals[idx + i]) <= ((int64_t)value << 24)) in aptx_bin_search() 106 const int32_t *intervals = tables->quantize_intervals; in aptx_quantize_difference() local 116 intervals, tables->tables_size); in aptx_quantize_difference() 121 intervals += quantized_sample; in aptx_quantize_difference() 122 mean = (intervals[1] + intervals[0]) / 2; in aptx_quantize_difference() 123 interval = (intervals[1] - intervals[0]) * (-(sample_difference < 0) | 1); in aptx_quantize_difference() 87 aptx_bin_search(int32_t value, int32_t factor, const int32_t *intervals, int32_t nb_intervals) aptx_bin_search() argument
|