/third_party/flutter/skia/src/core/ |
D | SkAnalyticEdge.cpp | 261 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 …]
|
D | SkScan_Antihair.cpp | 102 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 …]
|
D | SkEdge.cpp | 76 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()
|
D | SkEdge.h | 125 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()
|
/third_party/skia/src/core/ |
D | SkAnalyticEdge.cpp | 261 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 …]
|
D | SkScan_Antihair.cpp | 108 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0; 109 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0; 117 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() argument 138 SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) override { in drawLine() argument 344 SkFixed fstart, slope; in do_anti_hairline() local 363 slope = 0; in do_anti_hairline() 366 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline() 367 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline() 368 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline() 388 fstart += slope * (clip->fLeft - istart); in do_anti_hairline() [all …]
|
D | SkEdge.cpp | 76 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()
|
D | SkEdge.h | 125 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()
|
/third_party/vk-gl-cts/external/amber/src/tests/cases/ |
D | opencl_set_arg.amber | 17 kernel void line(global int* in, global int* out, int slope, int offset) { 18 *out = *in * slope + offset; 34 SET KERNEL ARG_NAME slope AS int32 2 53 SET KERNEL ARG_NAME slope AS int32 3 62 SET KERNEL ARG_NAME slope AS int32 3
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/clipping/ |
D | vktClippingTests.cpp | 118 …ector<Vec4> genVertices (const VkPrimitiveTopology topology, const Vec4& offset, const float slope) in genVertices() argument 132 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); in genVertices() 134 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); in genVertices() 136 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); in genVertices() 141 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices() 142 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices() 143 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices() 144 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices() 151 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices() 154 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/clipping/ |
D | vktClippingTests.cpp | 118 …ector<Vec4> genVertices (const VkPrimitiveTopology topology, const Vec4& offset, const float slope) in genVertices() argument 132 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); in genVertices() 134 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); in genVertices() 136 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); in genVertices() 141 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices() 142 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices() 143 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices() 144 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices() 151 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices() 154 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices() [all …]
|
/third_party/skia/src/shaders/gradients/ |
D | SkSweepGradient.cpp | 70 slope = min(xabs, yabs) / max(xabs, yabs); in transformT() local 71 skvm::F32 s = slope * slope; in transformT() 77 skvm::F32 phi = slope * poly(s, -7.0547382347285747528076171875e-3f, in transformT()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_barycentric/ |
D | vktFragmentShadingBarycentricTests.cpp | 784 const float slope = WEIGHT_TEST_SLOPE; in generateVertexBuffer() local 793 DE_ASSERT(slope >= 1.0f); in generateVertexBuffer() 814 const float pointSlope = 1.0f + kx * (slope - 1.0f); in generateVertexBuffer() 838 const tcu::Vec4 right = tcu::Vec4( 1.0f, yy, 0.0f, 1.0f) * slope; in generateVertexBuffer() 860 const tcu::Vec4 right = tcu::Vec4( 2.0f, yy, 0.0f, 1.0f) * slope; in generateVertexBuffer() 885 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer() 887 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer() 888 addVertexWithColor(result, tcu::Vec4(+1.0f, -1.0f, 0.0f, 1.0f) * slope, rightTopColor); in generateVertexBuffer() 902 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer() 903 addVertexWithColor(result, tcu::Vec4(+1.0f, -1.0f, 0.0f, 1.0f) * slope, rightTopColor); in generateVertexBuffer() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_shading_barycentric/ |
D | vktFragmentShadingBarycentricTests.cpp | 784 const float slope = WEIGHT_TEST_SLOPE; in generateVertexBuffer() local 793 DE_ASSERT(slope >= 1.0f); in generateVertexBuffer() 814 const float pointSlope = 1.0f + kx * (slope - 1.0f); in generateVertexBuffer() 838 const tcu::Vec4 right = tcu::Vec4( 1.0f, yy, 0.0f, 1.0f) * slope; in generateVertexBuffer() 860 const tcu::Vec4 right = tcu::Vec4( 2.0f, yy, 0.0f, 1.0f) * slope; in generateVertexBuffer() 885 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer() 887 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer() 888 addVertexWithColor(result, tcu::Vec4(+1.0f, -1.0f, 0.0f, 1.0f) * slope, rightTopColor); in generateVertexBuffer() 902 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer() 903 addVertexWithColor(result, tcu::Vec4(+1.0f, -1.0f, 0.0f, 1.0f) * slope, rightTopColor); in generateVertexBuffer() [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | af_sidechaincompress.c | 112 double slope = log(lin_slope); in output_gain() local 117 slope *= 0.5; in output_gain() 123 gain = (slope - thres) / ratio + thres; in output_gain() 128 if (knee > 1.0 && slope > knee_start) in output_gain() 129 gain = hermite_interpolation(slope, knee_stop, knee_start, in output_gain() 133 if (knee > 1.0 && slope < knee_stop) in output_gain() 134 gain = hermite_interpolation(slope, knee_start, knee_stop, in output_gain() 139 return exp(gain - slope); in output_gain()
|
D | af_agate.c | 121 double slope = log(lin_slope); in output_gain() local 128 gain = (slope - thres) * tratio + thres; in output_gain() 132 if (knee > 1. && slope < knee_stop) in output_gain() 133 …gain = hermite_interpolation(slope, knee_stop, knee_start, ((knee_stop - thres) * tratio + thres)… in output_gain() 135 if (knee > 1. && slope > knee_start) in output_gain() 136 …gain = hermite_interpolation(slope, knee_start, knee_stop, ((knee_start - thres) * tratio + thres… in output_gain() 138 return FFMAX(range, exp(gain - slope)); in output_gain()
|
D | af_crossfeed.c | 31 double slope; member 65 alpha = sin(w0) / 2 * sqrt((A + 1 / A) * (1 / s->slope - 1) + 2); in config_input() 152 …{ "slope", "set curve slope", OFFSET(slope), AV_OPT_TYPE_DOUBLE, {.dbl=.5}, .01, 1…
|
D | vf_misc_vaapi.c | 54 double slope, output; in map() local 56 slope = 1.0 * (out_max - out_min) / (in_max - in_min); in map() 57 output = out_min + slope * (x - in_min); in map()
|
D | vf_procamp_vaapi.c | 58 double slope, output; in map() local 60 slope = 1.0 * (out_max - out_min) / (in_max - in_min); in map() 61 output = out_min + slope * (x - in_min); in map()
|
/third_party/flutter/skia/src/pathops/ |
D | SkPathOpsWinding.cpp | 139 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()
|
/third_party/skia/src/pathops/ |
D | SkPathOpsWinding.cpp | 140 SkDVector slope; in rayCheck() local 142 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); in rayCheck() 160 slope = this->dSlopeAtT(t); in rayCheck() 169 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { in rayCheck() 183 newHit->fSlope = slope; in rayCheck()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_1d_table.cpp | 165 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()
|
/third_party/ffmpeg/libavcodec/ |
D | rpzaenc.c | 266 double *slope, double *y_intercept, double *correlation_coef) in leastsquares() argument 300 *slope = (sumx * sumy - sumxy) / tmp; in leastsquares() 301 *y_intercept = (sumy - (*slope) * sumx) / count; in leastsquares() 565 double slope, y_intercept, correlation_coef; in rpza_encode_stream() local 708 slope = y_intercept = correlation_coef = 0; in rpza_encode_stream() 711 &slope, &y_intercept, &correlation_coef)) { in rpza_encode_stream() 715 tmp_min = (int)(0.5 + min * slope + y_intercept); in rpza_encode_stream() 716 tmp_max = (int)(0.5 + max * slope + y_intercept); in rpza_encode_stream()
|
/third_party/libinput/src/ |
D | evdev-mt-touchpad-gestures.c | 365 double vector_decay, vector_length, slope; in tp_gesture_apply_scroll_constraints() local 420 slope = (vector.x != 0) ? fabs(vector.y / vector.x) : INFINITY; in tp_gesture_apply_scroll_constraints() 427 if (slope >= DEGREE_30 && vector_length > MIN_VECTOR) { in tp_gesture_apply_scroll_constraints() 431 if (slope >= DEGREE_75) { in tp_gesture_apply_scroll_constraints() 438 if (slope < DEGREE_60 && vector_length > MIN_VECTOR) { in tp_gesture_apply_scroll_constraints() 442 if (slope < DEGREE_15) { in tp_gesture_apply_scroll_constraints() 464 if (vector_length > 5.0 && slope < 1.73 && slope >= 0.57) { in tp_gesture_apply_scroll_constraints() 480 delta->x = (slope >= DEGREE_60) ? 0.0 : delta->x; in tp_gesture_apply_scroll_constraints() 481 delta->y = (slope < DEGREE_30) ? 0.0 : delta->y; in tp_gesture_apply_scroll_constraints()
|
/third_party/gstreamer/gstreamer/tests/misc/ |
D | network-clock-utils.scm | 84 (let ((slope (/ sxy sxx))) 86 slope 87 (- ybar (* slope xbar))
|