Home
last modified time | relevance | path

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

12345

/external/skia/src/core/
DSkAnalyticEdge.cpp261 SkFixed slope = quick_div(dx, dy); in setLine() local
262 SkFixed absSlope = SkAbs32(slope); in setLine()
265 fDX = slope; in setLine()
270 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize in setLine()
283 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
309 SkASSERT(slope < SK_MaxS32); in updateLine()
311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
313 fDX = slope; in updateLine()
318 fDY = (dx == 0 || slope == 0) in updateLine()
377 SkFixed slope; in updateQuadratic() local
[all …]
DSkScan_Antihair.cpp102 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
103 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
111 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() argument
133 SkFixed slope) override { in drawLine() argument
339 SkFixed fstart, slope; in do_anti_hairline() local
358 slope = 0; in do_anti_hairline()
361 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
362 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
363 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
383 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
[all …]
DSkEdge.h125 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
128 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
129 fDX = slope; in setLine()
DSkEdge.cpp76 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
79 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
80 fDX = slope; in setLine()
117 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() local
120 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in updateLine()
121 fDX = slope; in updateLine()
/external/skqp/src/core/
DSkAnalyticEdge.cpp261 SkFixed slope = quick_div(dx, dy); in setLine() local
262 SkFixed absSlope = SkAbs32(slope); in setLine()
265 fDX = slope; in setLine()
270 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize in setLine()
283 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
309 SkASSERT(slope < SK_MaxS32); in updateLine()
311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
313 fDX = slope; in updateLine()
318 fDY = (dx == 0 || slope == 0) in updateLine()
377 SkFixed slope; in updateQuadratic() local
[all …]
DSkScan_Antihair.cpp102 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
103 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
111 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() argument
133 SkFixed slope) override { in drawLine() argument
339 SkFixed fstart, slope; in do_anti_hairline() local
358 slope = 0; in do_anti_hairline()
361 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
362 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
363 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
383 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
[all …]
DSkEdge.h125 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
128 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
129 fDX = slope; in setLine()
DSkEdge.cpp76 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
79 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
80 fDX = slope; in setLine()
117 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() local
120 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in updateLine()
121 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.cpp117 …ector<Vec4> genVertices (const VkPrimitiveTopology topology, const Vec4& offset, const float slope) in genVertices() argument
131 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); in genVertices()
133 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); in genVertices()
135 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); in genVertices()
140 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
141 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
142 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices()
143 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
150 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
153 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/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.cpp139 SkDVector slope; in rayCheck() local
141 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); in rayCheck()
159 slope = this->dSlopeAtT(t); in rayCheck()
168 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { in rayCheck()
182 newHit->fSlope = slope; in rayCheck()
/external/skia/src/pathops/
DSkPathOpsWinding.cpp139 SkDVector slope; in rayCheck() local
141 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); in rayCheck()
159 slope = this->dSlopeAtT(t); in rayCheck()
168 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { in rayCheck()
182 newHit->fSlope = slope; in rayCheck()
/external/u-boot/drivers/power/
Dexynos-tmu.c75 unsigned slope; member
240 info->data.slope = fdtdec_get_int(blob, in get_tmu_fdt_values()
242 error |= (info->data.slope == -1); in get_tmu_fdt_values()
313 writel(data->slope, &reg->tmu_control); in tmu_setup_parameters()
/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/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/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/
DREADME89 when TL is created; at this time TP's slope should go down a wee bit
90 and TL's slope should not be zero. After 10 seconds (30 seconds), TB
91 is created and TL boosted. At this moment, TP's slope should go down
93 waiting the mutex (50 seconds), TL and TP's slope will change back to
/external/u-boot/doc/device-tree-bindings/exynos/
Dtmu.txt21 - samsung,slope : Default value 274761730 (Constant 0x1060_8802).
42 samsung,slope = <274761730>;
/external/deqp/doc/testspecs/GLES2/
Dperformance.shaders.operator.txt37 frame is measured, and the slope of the workload size vs frame time data is
38 estimated. This slope tells us the estimated increase in frame time caused by
61 these tests is to look at the slope of the increasing right part. Additionally
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dexpand.cc716 int16_t slope = amplitude_ratio; in AnalyzeSignal() local
717 if (slope > 12288) { in AnalyzeSignal()
726 (slope - 8192) << 12, in AnalyzeSignal()
727 static_cast<int16_t>((distortion_lag * slope) >> 8)); in AnalyzeSignal()
728 if (slope > 14746) { in AnalyzeSignal()
741 (8192 - slope) << 7, static_cast<int16_t>(distortion_lag)); in AnalyzeSignal()
747 } else if (slope > 8028) { in AnalyzeSignal()

12345