Searched defs:intervals (Results 1 - 25 of 35) sorted by relevance

12

/external/skia/src/animator/
H A DSkDrawDash.h20 SkTDScalarArray intervals; member in class:SkDash
/external/skia/gm/
H A Dbug530095.cpp21 SkScalar intervals[] = {700, 700 }; local
22 int intervalCount = (int) SK_ARRAY_COUNT(intervals);
23 paint.setPathEffect(SkDashPathEffect::Create(intervals, intervalCount, -40))->unref();
37 paint.setPathEffect(SkDashPathEffect::Create(intervals, intervalCount, 0))->unref();
H A Ddashcubics.cpp18 SkScalar intervals[2], SkPaint::Join join) {
19 SkPathEffect* pe = SkDashPathEffect::Create(intervals, 2, 0);
57 SkScalar intervals[] = { 5 + (x ? 0 : 0.0001f + 0.0001f), 10 }; local
58 flower(canvas, path, intervals, y ? SkPaint::kDefault_Join : SkPaint::kRound_Join);
17 flower(SkCanvas* canvas, const SkPath& path, SkScalar intervals[2], SkPaint::Join join) argument
H A Dstroketext.cpp53 const SkScalar intervals[] = { 20, 10, 5, 10 }; local
58 p.setPathEffect(SkDashPathEffect::Create(intervals, SK_ARRAY_COUNT(intervals), phase))->unref();
H A Dpathcontourstart.cpp23 SkSTArray<100, SkScalar> intervals; local
25 intervals.push_back(len);
26 intervals.push_back(len);
30 SkDashPathEffect::Create(intervals.begin(), intervals.count(), 0));
H A Ddashcircle.cpp65 SkScalar intervals[4]; local
69 intervals[index] = dashExample.pattern[index] * dashLength;
71 p.setPathEffect(SkDashPathEffect::Create(intervals, intervalCount, 0))->unref();
H A Ddashing.cpp19 const SkScalar intervals[] = { local
24 p.setPathEffect(SkDashPathEffect::Create(intervals, 2, phase))->unref();
149 3, // 3 dashes: each count [0] followed by intervals [1..count]
169 const int* intervals = &gIntervals[1]; local
172 int count = *intervals++;
174 vals[i] = SkIntToScalar(*intervals++);
223 SkScalar intervals[2] = { dashLength, dashLength }; local
225 p.setPathEffect(SkDashPathEffect::Create(intervals, 2, phase))->unref();
500 const SkScalar intervals[] = { 1, 1 }; local
501 p.setPathEffect(SkDashPathEffect::Create(intervals, SK_ARRAY_COUN
511 const SkScalar intervals[] = { 2, 2 }; local
[all...]
H A Dstrokes.cpp130 const SkScalar intervals[] = { 0, 10 }; variable
131 dashPaint.setPathEffect(SkDashPathEffect::Create(intervals, 2, 0))->unref();
/external/skia/src/gpu/
H A DGrStrokeInfo.cpp12 bool all_dash_intervals_zero(const SkScalar* intervals, int count) { argument
14 if (intervals[i] != 0) {
29 // Handle the case where all intervals are 0 and we simply drop the dash effect
85 const SkScalar* intervals = this->getDashIntervals(); local
87 memcpy(&data[i], intervals, intervalByteCnt);
/external/skia/tests/
H A DDashPathEffectTest.cpp18 SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f }; // Values from bug. local
21 SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, count, phase));
34 const SkScalar intervals[] = { 1.0f, 1.0f }; local
36 SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, count, 0.0f));
97 SkScalar intervals[2] = { 1, 1 }; local
98 SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, 0));
H A DGpuDrawPathTest.cpp75 const SkScalar intervals[] = { 1, 1 }; local
76 SkAutoTUnref<SkPathEffect> dashEffect(SkDashPathEffect::Create(intervals, 2, 0));
H A DDrawPathTest.cpp204 SkScalar intervals[2] = {837099584, 33450}; local
205 SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, -10));
283 SkScalar intervals[] = { 0.2f, 0.2f }; local
284 SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, 0));
303 SkScalar intervals[] = { 0.5f, 0.5f }; local
304 SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, 0));
H A DPictureTest.cpp148 SkScalar intervals[] = { 1.0f, 1.0f }; local
149 SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, 0));
237 SkScalar intervals [] = { 10, 20 }; local
238 SkPathEffect* pe = SkDashPathEffect::Create(intervals, 2, 25);
254 SkScalar intervals [] = { 10, 20 }; local
255 SkPathEffect* pe = SkDashPathEffect::Create(intervals, 2, 25);
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
H A DIntervalSet.java42 * integer intervals.
48 * elements are encoded with an index pair where both intervals are the same.
55 /** The list of sorted, disjoint intervals. */
56 protected List<Interval> intervals; field in class:IntervalSet
60 intervals = new ArrayList<Interval>(2); // most sets are 1 or 2 elements
63 public IntervalSet(List<Interval> intervals) { argument
64 this.intervals = intervals;
99 // copy on write so we can cache a..a intervals and sets of that
101 //System.out.println("add "+addition+" to "+intervals
[all...]
/external/openfst/src/include/fst/
H A Dstate-reachable.h73 vector<Interval> *intervals = (*isets_)[s].Intervals(); local
87 intervals->push_back(Interval(index, index + 1));
89 intervals->push_back(Interval(index_, index_ + 1));
114 vector<Interval> *intervals = (*isets_)[s].Intervals(); local
115 (*intervals)[0].end = index_; // Update tree interval end
119 (*isets_)[p].Union((*isets_)[s]); // Propagate intervals to parent
182 // to the final states as intervals of the final state indices.
H A Dinterval-set.h19 // Class to represent and operate on sets of intervals.
34 // Stores and operates on a set of half-open integral intervals [a,b)
88 // Number of points in the intervals (undefined if not normalized).
98 const vector<Interval> *intervals = iset.Intervals(); local
99 for (typename vector<Interval>::const_iterator it = intervals->begin();
100 it != intervals->end(); ++it)
104 // Requires intervals be normalized.
114 // Requires intervals be normalized.
119 // Requires intervals be normalized.
133 // Intersects an interval set with the set. Requires intervals b
275 const vector<Interval> *intervals = iset.Intervals(); local
295 const vector<Interval> *intervals = iset.Intervals(); local
344 const vector<Interval> *intervals = iset.Intervals(); local
366 const vector<Interval> *intervals = s.Intervals(); local
[all...]
H A Dlabel-reachable.h195 VLOG(2) << "# of intervals/call: " << (nintervals_ / ncalls_);
306 const vector<Interval> *intervals = isets[s_].Intervals(); local
308 nintervals_ += intervals->size();
318 if (2 * (aiter_end - aiter_begin) < intervals->size()) {
319 // Check each arc against intervals.
359 iiter = intervals->begin();
360 iiter != intervals->end(); ++iiter) {
497 VLOG(3) << "state: " << s << " # of intervals: " << isets[s].Size();
501 VLOG(2) << "# of intervals: " << nintervals;
502 VLOG(2) << "# of intervals/stat
[all...]
/external/skia/src/effects/
H A DSkDashPathEffect.cpp15 SkDashPathEffect::SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase) argument
20 SkASSERT(intervals);
26 SkASSERT(intervals[i] >= 0);
27 fIntervals[i] = intervals[i];
170 // intervals as long as all the ons match and all the offs match.
172 // We cannot allow arbitrary intervals since we want the returned points
367 SkAutoSTArray<32, SkScalar> intervals(count);
368 if (buffer.readScalarArray(intervals.get(), count)) {
369 return Create(intervals.get(), SkToInt(count), phase);
377 str->appendf("count: %d phase %.2f intervals
[all...]
/external/skia/src/utils/
H A DSkDashPath.cpp16 static SkScalar find_first_interval(const SkScalar intervals[], SkScalar phase, argument
19 if (phase > intervals[i]) {
20 phase -= intervals[i];
23 return intervals[i] - phase;
31 return intervals[0];
34 void SkDashPath::CalcDashParameters(SkScalar phase, const SkScalar intervals[], int32_t count, argument
39 len += intervals[i];
70 *initialDashLength = find_first_interval(intervals, phase,
76 *initialDashLength = -1; // signal bad dash intervals
232 const SkScalar* intervals local
[all...]
/external/skia/bench/
H A DDashBench.cpp42 DashBench(const SkScalar intervals[], int count, int width, argument
44 fIntervals.append(count, intervals);
103 RectDashBench(const SkScalar intervals[], int count, int width) argument
104 : INHERITED(intervals, count, width) {
212 * We try to special case square dashes (intervals are equal to strokewidth).
323 // deliberately pick intervals that won't be caught by asPoints(), so
325 const SkScalar intervals[] = { 20, 10, 10, 10 }; local
326 fPathEffect.reset(SkDashPathEffect::Create(intervals,
327 SK_ARRAY_COUNT(intervals), 0));
/external/pdfium/core/src/fxge/skia/
H A Dfx_skia_device.cpp217 SkScalar* intervals = FX_Alloc2D(SkScalar, count, sizeof(SkScalar)); local
228 intervals[i * 2] = on * scale;
229 intervals[i * 2 + 1] = off * scale;
232 intervals, count * 2, pGraphState->m_DashPhase * scale);
244 FX_Free(intervals);
/external/skia/samplecode/
H A DSampleFilterFuzz.cpp445 SkScalar intervals[10]; local
447 intervals[i] = make_scalar();
449 pathEffect = SkDashPathEffect::Create(intervals, count, make_scalar());
/external/skia/src/core/
H A DSkRegion.cpp29 /* Pass in the beginning with the intervals.
34 int intervals = runs[-1]; local
36 if (intervals > 0) {
40 SkASSERT(0 == intervals);
44 runs += intervals * 2 + 1;
415 int* intervals) const {
416 SkASSERT(tmpStorage && intervals);
421 *intervals = 0;
424 *intervals = 1;
427 *intervals
953 intervals_to_count(int intervals) argument
962 int intervals = 2 * a_intervals * b_intervals + a_intervals + b_intervals; local
1327 int intervals = runs[1]; local
[all...]
/external/skia/tools/json/
H A DSkJSONRenderer.cpp440 SkScalar* intervals = (SkScalar*) sk_malloc_throw(count * sizeof(SkScalar)); local
442 intervals[i] = jsonIntervals[i].asFloat();
445 target->setPathEffect(SkDashPathEffect::Create(intervals, count, phase));
446 free(intervals);
/external/skia/src/gpu/effects/
H A DGrDashingEffect.cpp51 const SkScalar* intervals = strokeInfo.getDashIntervals(); local
52 if (0 == intervals[0] && 0 == intervals[1]) {
58 if (SkPaint::kRound_Cap == cap && intervals[0] != 0.f) {
123 // Assumes phase < sum of all intervals
124 static SkScalar calc_start_adjustment(const SkScalar intervals[2], SkScalar phase) { argument
125 SkASSERT(phase < intervals[0] + intervals[1]);
126 if (phase >= intervals[0] && phase != 0) {
127 SkScalar srcIntervalLen = intervals[
133 calc_end_adjustment(const SkScalar intervals[2], const SkPoint pts[2], SkScalar phase, SkScalar* endingInt) argument
698 const SkScalar* intervals = strokeInfo.getDashIntervals(); local
1265 SkScalar intervals[2]; local
[all...]

Completed in 806 milliseconds

12