Home
last modified time | relevance | path

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

123

/external/skia/src/core/
DSkAnalyticEdge.cpp16 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
33 SkASSERT(slope < SK_MaxS32); in updateLine()
35 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
37 fDX = slope; in updateLine()
42 fDY = (dx == 0 || slope == 0) in updateLine()
91 SkFixed slope; in updateQuadratic() local
98 slope = diffY ? QuickSkFDot6Div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
101 newSnappedX = newx - SkFixedMul(slope, newy - newSnappedY); in updateQuadratic()
106 slope = diffY ? QuickSkFDot6Div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
119 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);
159 SkFixed slope = QuickSkFDot6Div(dx, dy); in setLine() local
160 SkFixed absSlope = SkAbs32(slope); in setLine()
163 fDX = slope; in setLine()
168 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()
DSkScan_Hairline.cpp121 SkFixed slope = SkFixedDiv(dy, dx); in HairLineRgn() local
122 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6); in HairLineRgn()
124 horiline(ix0, ix1, startY, slope, blitter); in HairLineRgn()
136 SkFixed slope = SkFixedDiv(dx, dy); in HairLineRgn() local
137 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6); in HairLineRgn()
139 vertline(iy0, iy1, startX, slope, blitter); in HairLineRgn()
/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/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/autotest/client/site_tests/video_VideoDecodeMemoryUsage/
Dvideo_VideoDecodeMemoryUsage.py122 slope, delta = _get_linear_regression_slope(index, mem_usage)
124 name, slope - delta, slope + delta)
125 if (slope - delta > threshold):
127 raise error.TestError('leak detected: %s - %s' % (name, slope - delta))
/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/pdfium/third_party/lcms2-2.6/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/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()
Dsteadystate.h28 double slope; member
/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/ImageMagick/MagickCore/
Denhance.c230 slope; in BrightnessContrastImage() local
243 slope=tan((double) (MagickPI*(alpha/100.0+1.0)/4.0)); in BrightnessContrastImage()
244 if (slope < 0.0) in BrightnessContrastImage()
245 slope=0.0; in BrightnessContrastImage()
246 intercept=brightness/100.0+((100-brightness)/200.0)*(1.0-slope); in BrightnessContrastImage()
247 coefficients[0]=slope; in BrightnessContrastImage()
487 slope, in ColorDecisionListImage() member
555 color_correction.red.slope=1.0; in ColorDecisionListImage()
558 color_correction.green.slope=1.0; in ColorDecisionListImage()
561 color_correction.blue.slope=1.0; in ColorDecisionListImage()
[all …]
/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()
/external/deqp/doc/testspecs/GLES3/
Dperformance.shaders.operator.txt41 frame is measured, and the slope of the workload size vs frame time data is
42 estimated. This slope tells us the estimated increase in frame time caused by
65 these tests is to look at the slope of the increasing right part. Additionally
/external/autotest/client/site_tests/kernel_Ktime/
Dkernel_Ktime.py216 slope = ((sum_rtc_diff - sum_rtc * mean_diff) /
218 logging.info('drift %.9f', slope)
/external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/
DREADME109 when TL is created; at this time TP's slope should go down a wee bit
110 and TL's slope should not be zero. After 10 seconds (30 seconds), TB
111 is created and TL boosted. At this moment, TP's slope should go down
113 waiting the mutex (50 seconds), TL and TP's slope will change back to

123