Home
last modified time | relevance | path

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

12

/external/skia/bench/
Dbench_util.py206 self.slope = B
216 str(self.slope),
225 slope = self.slope
232 if slope < 0:
233 lower_left_y = slope*regr_start + intercept - error
234 upper_right_y = slope*regr_end + intercept + error
237 elif slope > 0:
238 upper_left_y = slope*regr_start + intercept + error
239 lower_right_y = slope*regr_end + intercept - error
Dbench_graph_svg.py911 slope = regression.slope
920 print '%s,%s' % (str(cx(min_x)), str(cy(slope*min_x + intercept))),
921 print '%s,%s' % (str(cx(max_x)), str(cy(slope*max_x + intercept))),
/external/skia/legacy/src/core/
DSkScan_Antihair.cpp204 SkFixed slope, SkBlitter*, int);
233 SkFixed fstart, slope; in do_anti_hairline() local
246 slope = 0; in do_anti_hairline()
249 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
250 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
251 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
270 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
284 if (slope >= 0) { // T2B in do_anti_hairline()
286 bottom = SkFixedCeil(fstart + (istop - istart - 1) * slope + SK_FixedHalf); in do_anti_hairline()
289 top = SkFixedFloor(fstart + (istop - istart - 1) * slope - SK_FixedHalf); in do_anti_hairline()
[all …]
DSkEdge.cpp68 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
70 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, (32 - y0) & 63)); // + SK_Fixed1/2 in setLine()
71 fDX = slope; in setLine()
108 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() local
110 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, (32 - y0) & 63)); // + SK_Fixed1/2 in updateLine()
111 fDX = slope; in updateLine()
DSkScan_Hairline.cpp98 SkFixed slope = SkFixedDiv(dy, dx); in HairLineRgn() local
99 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6); in HairLineRgn()
101 horiline(ix0, ix1, startY, slope, blitter); in HairLineRgn()
113 SkFixed slope = SkFixedDiv(dx, dy); in HairLineRgn() local
114 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6); in HairLineRgn()
116 vertline(iy0, iy1, startX, slope, blitter); in HairLineRgn()
/external/skia/src/core/
DSkScan_Antihair.cpp100 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
101 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
109 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) SK_OVERRIDE { in drawCap() argument
131 SkFixed slope) SK_OVERRIDE { in drawLine() argument
405 SkFixed fstart, slope; in do_anti_hairline() local
423 slope = 0; in do_anti_hairline()
426 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
427 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
428 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
448 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
[all …]
DSkEdge.h128 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
131 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
132 fDX = slope; in setLine()
DSkEdge.cpp74 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine() local
77 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in setLine()
78 fDX = slope; in setLine()
115 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in updateLine() local
118 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 in updateLine()
119 fDX = slope; in updateLine()
DSkScan_Hairline.cpp123 SkFixed slope = SkFixedDiv(dy, dx); in HairLineRgn() local
124 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6); in HairLineRgn()
126 horiline(ix0, ix1, startY, slope, blitter); in HairLineRgn()
138 SkFixed slope = SkFixedDiv(dx, dy); in HairLineRgn() local
139 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6); in HairLineRgn()
141 vertline(iy0, iy1, startX, slope, blitter); in HairLineRgn()
/external/quake/quake/src/WinQuake/
Dd_sprite.cpp204 float du, dv, vtop, vbottom, slope; in D_SpriteScanLeftEdge() local
229 slope = du / dv; in D_SpriteScanLeftEdge()
230 u_step = (int)(slope * 0x10000); in D_SpriteScanLeftEdge()
232 u = (int)((pvert->u + (slope * (vtop - pvert->v))) * 0x10000) + in D_SpriteScanLeftEdge()
266 float du, dv, vtop, vbottom, slope, uvert, unext, vvert, vnext; in D_SpriteScanRightEdge() local
309 slope = du / dv; in D_SpriteScanRightEdge()
310 u_step = (int)(slope * 0x10000); in D_SpriteScanRightEdge()
312 u = (int)((uvert + (slope * (vtop - vvert))) * 0x10000) + in D_SpriteScanRightEdge()
/external/quake/quake/src/QW/client/
Dd_sprite.c204 float du, dv, vtop, vbottom, slope; in D_SpriteScanLeftEdge() local
229 slope = du / dv; in D_SpriteScanLeftEdge()
230 u_step = (int)(slope * 0x10000); in D_SpriteScanLeftEdge()
232 u = (int)((pvert->u + (slope * (vtop - pvert->v))) * 0x10000) + in D_SpriteScanLeftEdge()
266 float du, dv, vtop, vbottom, slope, uvert, unext, vvert, vnext; in D_SpriteScanRightEdge() local
309 slope = du / dv; in D_SpriteScanRightEdge()
310 u_step = (int)(slope * 0x10000); in D_SpriteScanRightEdge()
312 u = (int)((uvert + (slope * (vtop - vvert))) * 0x10000) + in D_SpriteScanRightEdge()
/external/webkit/Source/WebCore/platform/graphics/
DFloatPoint.cpp83 float slope = (p2.y() - p1.y()) / (p2.x() - p1.x()); in findSlope() local
84 c = p1.y() - slope * p1.x(); in findSlope()
85 return slope; in findSlope()
DPath.cpp74 float slope = atan2f(change.height(), change.width()); in pathLengthApplierFunction() local
78 traversalState.m_current.move(offset * cosf(slope), offset * sinf(slope)); in pathLengthApplierFunction()
80 traversalState.m_normalAngle = rad2deg(slope); in pathLengthApplierFunction()
/external/webkit/Source/WebCore/platform/graphics/filters/
DFEComponentTransfer.h45 , slope(0) in ComponentTransferFunction()
55 float slope; member
DFEComponentTransfer.cpp136 double val = transferFunction.slope * i + 255 * transferFunction.intercept; in linear()
219 << "\" slope=\"" << function.slope in operator <<()
/external/webkit/Source/WebCore/svg/
DSVGComponentTransferFunctionElement.cpp36 DEFINE_ANIMATED_NUMBER(SVGComponentTransferFunctionElement, SVGNames::slopeAttr, Slope, slope) in DEFINE_ANIMATED_ENUMERATION()
148 func.slope = slope(); in transferFunction()
DSVGComponentTransferFunctionElement.h49 DECLARE_ANIMATED_NUMBER(Slope, slope)
DSVGComponentTransferFunctionElement.idl42 readonly attribute SVGAnimatedNumber slope;
Dsvgattrs.in181 slope
/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/opencv/cxcore/src/
Dcxdrawing.cpp301 int slope; in icvLineAA() local
352 slope = (y_step >> (XY_SHIFT - 5)) & 0x3f; in icvLineAA()
353 slope ^= (y_step < 0 ? 0x3f : 0); in icvLineAA()
376 slope = (x_step >> (XY_SHIFT - 5)) & 0x3f; in icvLineAA()
377 slope ^= (x_step < 0 ? 0x3f : 0); in icvLineAA()
384 slope = (slope & 0x20) ? 0x100 : icvSlopeCorrTable[slope]; in icvLineAA()
388 int t0 = slope << 7; in icvLineAA()
389 int t1 = ((0x78 - i) | 4) * slope; in icvLineAA()
390 int t2 = (j | 4) * slope; in icvLineAA()
393 ep_table[8] = slope; in icvLineAA()
[all …]
/external/svox/pico/compat/src/com/android/tts/compat/
DSynthProxy.java160 float attenuationInDb, float freqInHz, float slope); in native_setLowShelf() argument
/external/webkit/Source/WebCore/platform/graphics/gpu/
DLoopBlinnMathUtils.cpp541 float slope = deltaY / deltaX; in xRayCrossesLine() local
542 float b = pts[0].y() - slope * pts[0].x(); in xRayCrossesLine()
544 float x = (xRay.y() - b) / slope; in xRayCrossesLine()
/external/webkit/Source/WebCore/css/
DCSSGradientValue.cpp499 float slope = tan(deg2rad(angleDeg)); in endPointsFromAngle() local
503 float perpendicularSlope = -1 / slope; in endPointsFromAngle()
520 float endX = c / (slope - perpendicularSlope); in endPointsFromAngle()
/external/svox/pico/compat/jni/
Dcom_android_tts_compat_SynthProxy.cpp312 jfloat filterGain, jfloat attenuationInDb, jfloat freqInHz, jfloat slope) in com_android_tts_compat_SynthProxy_setLowShelf() argument
318 fFilterShelfSlope = slope; in com_android_tts_compat_SynthProxy_setLowShelf()

12