Home
last modified time | relevance | path

Searched refs:slope (Results 1 – 25 of 92) sorted by relevance

1234

/external/skia/src/core/
DSkAnalyticEdge.cpp16 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
41 SkASSERT(slope < SK_MaxS32); in updateLine()
43 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
45 fDX = slope; in updateLine()
50 fDY = (dx == 0 || slope == 0) in updateLine()
109 SkFixed slope; in updateQuadratic() local
116 slope = diffY ? QuickSkFDot6Div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
119 newSnappedX = newx - SkFixedMul(slope, newy - newSnappedY); in updateQuadratic()
124 slope = diffY ? QuickSkFDot6Div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
137 slope = diffY ? QuickSkFDot6Div((newx - fSnappedX) >> 10, diffY) : SK_MaxS32; in updateQuadratic()
[all …]
DSkScan_Antihair.cpp99 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
100 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
108 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() argument
130 SkFixed slope) override { in drawLine() argument
336 SkFixed fstart, slope; in do_anti_hairline() local
354 slope = 0; in do_anti_hairline()
357 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
358 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
359 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
379 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
[all …]
DSkAnalyticEdge.h81 inline bool updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by, SkFixed slope);
169 SkFixed slope = QuickSkFDot6Div(dx, dy); in setLine() local
170 SkFixed absSlope = SkAbs32(slope); in setLine()
173 fDX = slope; in setLine()
178 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize in setLine()
DSkEdge.h122 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
125 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
126 fDX = slope; in setLine()
DSkEdge.cpp72 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
75 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
76 fDX = slope; in setLine()
113 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() local
116 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in updateLine()
117 fDX = slope; in updateLine()
/external/skqp/src/core/
DSkAnalyticEdge.cpp16 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
41 SkASSERT(slope < SK_MaxS32); in updateLine()
43 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
45 fDX = slope; in updateLine()
50 fDY = (dx == 0 || slope == 0) in updateLine()
109 SkFixed slope; in updateQuadratic() local
116 slope = diffY ? QuickSkFDot6Div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
119 newSnappedX = newx - SkFixedMul(slope, newy - newSnappedY); in updateQuadratic()
124 slope = diffY ? QuickSkFDot6Div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
137 slope = diffY ? QuickSkFDot6Div((newx - fSnappedX) >> 10, diffY) : SK_MaxS32; in updateQuadratic()
[all …]
DSkScan_Antihair.cpp99 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
100 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
108 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() argument
130 SkFixed slope) override { in drawLine() argument
336 SkFixed fstart, slope; in do_anti_hairline() local
354 slope = 0; in do_anti_hairline()
357 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
358 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
359 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
379 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
[all …]
DSkAnalyticEdge.h81 inline bool updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by, SkFixed slope);
169 SkFixed slope = QuickSkFDot6Div(dx, dy); in setLine() local
170 SkFixed absSlope = SkAbs32(slope); in setLine()
173 fDX = slope; in setLine()
178 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize in setLine()
DSkEdge.h122 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
125 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
126 fDX = slope; in setLine()
DSkEdge.cpp72 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
75 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
76 fDX = slope; in setLine()
113 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() local
116 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in updateLine()
117 fDX = slope; in updateLine()
/external/webrtc/webrtc/modules/video_coding/test/
DplotReceiveTrace.m106 slope = 0; variable
113 slope = x; variable
116 plot(x, packetTime(:,3) - firstTime - slope, 'b.');
122 slope = x; variable
125 plot(x, firstPacketTime(:,2) - firstTime - slope, 'b.');
132 slope = x; variable
134 plot(x, completeTime(:,3) - firstTime - slope, 'ks');
141 slope = x; variable
143 plot(x, decodeTime(:,2) - firstTime - slope, 'r.');
150 slope = x; variable
[all …]
/external/linux-kselftest/tools/testing/selftests/timers/
Dfreq-step.c120 double *slope, double *r_stddev, double *r_max) in regress() argument
137 *slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n); in regress()
138 *intercept = (y_sum - *slope * x_sum) / n; in regress()
145 r = fabs(x * *slope + *intercept - y); in regress()
157 double intercept, slope, stddev1, max1, stddev2, max2; in run_test() local
181 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
182 mono_freq_offset = slope; in run_test()
188 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
189 freq_error1 = slope * (1.0 - mono_freq_offset) - mono_freq_offset - in run_test()
192 regress(samples + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, in run_test()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/clipping/
DvktClippingTests.cpp115 …ector<Vec4> genVertices (const VkPrimitiveTopology topology, const Vec4& offset, const float slope) in genVertices() argument
129 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); in genVertices()
131 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); in genVertices()
133 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); in genVertices()
138 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
139 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
140 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices()
141 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
148 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
151 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/regression/
DSimpleRegression.java610 private double getIntercept(double slope) { in getIntercept() argument
611 return (sumY - slope * sumX) / n; in getIntercept()
620 private double getRegressionSumSquares(double slope) { in getRegressionSumSquares() argument
621 return slope * slope * sumXX; in getRegressionSumSquares()
/external/dng_sdk/source/
Ddng_1d_table.cpp165 real64 slope = (y1 - y0) * 65535.0; in Expand16() local
173 table16 [j] = (uint16) (base + slope * fract); in Expand16()
187 slope = (y1 - y0) * 65535.0; in Expand16()
/external/fio/unit_tests/
Dsteadystate_tests.py43 def check(data, iops, slope, pct, limit, dur, criterion): argument
47 if slope:
174 slope=job['slope'],
196 slope=job['slope'],
/external/guava/guava/src/com/google/common/util/concurrent/
DSmoothRateLimiter.java227 private double slope; field in SmoothRateLimiter.SmoothWarmingUp
242 slope = (coldIntervalMicros - stableIntervalMicros) / halfPermits; in doSetRate()
270 return stableIntervalMicros + permits * slope; in permitsToTime()
/external/skqp/src/pathops/
DSkPathOpsWinding.cpp137 SkDVector slope; in rayCheck() local
139 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); in rayCheck()
157 slope = this->dSlopeAtT(t); in rayCheck()
166 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { in rayCheck()
180 newHit->fSlope = slope; in rayCheck()
/external/skia/src/pathops/
DSkPathOpsWinding.cpp137 SkDVector slope; in rayCheck() local
139 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); in rayCheck()
157 slope = this->dSlopeAtT(t); in rayCheck()
166 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { in rayCheck()
180 newHit->fSlope = slope; in rayCheck()
/external/autotest/client/site_tests/video_VideoDecodeMemoryUsage/
Dvideo_VideoDecodeMemoryUsage.py127 slope, delta = _get_linear_regression_slope(index, mem_usage)
129 name, slope - delta, slope + delta)
130 if (slope - delta > threshold):
132 raise error.TestError('leak detected: %s - %s' % (name, slope - delta))
/external/pdfium/third_party/lcms/src/
Dcmsgmt.c535 double h, slope; in cmsDesaturateLab() local
550 slope = Lab -> b / Lab -> a; in cmsDesaturateLab()
560 Lab -> b = amax * slope; in cmsDesaturateLab()
567 Lab -> a = bmax / slope; in cmsDesaturateLab()
573 Lab -> b = amin * slope; in cmsDesaturateLab()
580 Lab -> a = bmin / slope; in cmsDesaturateLab()
/external/libxaac/decoder/drc_src/
Dimpd_drc_gain_dec.c563 FLOAT32 loc_db_gain = 0.0f, prev_db_gain, slope = 0.0f, slopePrev; in impd_concatenate_segments() local
567 slopePrev = buf_interpolation->prev_node.slope; in impd_concatenate_segments()
571 slope = str_spline_nodes->str_node[n].slope; in impd_concatenate_segments()
575 slopePrev, slope, buf_interpolation->lpcm_gains + MAX_SIGNAL_DELAY + in impd_concatenate_segments()
581 slopePrev = slope; in impd_concatenate_segments()
585 buf_interpolation->str_node.slope = slope; in impd_concatenate_segments()
/external/esd/include/
Daudiofile.h519 double slope, double intercept, double minClip, double maxClip);
521 double *slope, double *intercept, double *minClip, double *maxClip);
525 double slope, double intercept, double minClip, double maxClip);
529 double slope, double intercept, double minClip, double maxClip);
531 double *slope, double *intercept, double *minClip, double *maxClip);
/external/webrtc/webrtc/modules/video_processing/test/
DcreateTable.m14 % and (r0, r0), and with a slope B in (0,0).
17 % same slope as the first part in the point (r0, r0) and slope
24 B=0.2; % initial slope of compander function (between 0 and 1)
/external/fio/
Dsteadystate.c103 ss->slope = (ss->sum_xy - (double) ss->sum_x * ss->sum_y / ss->dur) / in steadystate_slope()
106 ss->criterion = 100.0 * ss->slope / (ss->sum_y / ss->dur); in steadystate_slope()
108 ss->criterion = ss->slope; in steadystate_slope()
114 ss->slope, ss->criterion, ss->limit); in steadystate_slope()

1234