/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.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()
|
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 | SkScan_Hairline.cpp | 130 SkFixed slope = SkFixedDiv(dy, dx); in HairLineRgn() local 131 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6); in HairLineRgn() 133 horiline(ix0, ix1, startY, slope, blitter); in HairLineRgn() 150 SkFixed slope = SkFixedDiv(dx, dy); in HairLineRgn() local 151 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6); in HairLineRgn() 153 vertline(iy0, iy1, startX, slope, blitter); in HairLineRgn()
|
/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/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/clipping/ |
D | vktClippingTests.cpp | 117 …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 …]
|
/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/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()
|
D | af_asubboost.c | 35 double slope; member 81 double alpha = sin(w0) / 2 * sqrt(2. * (1. / s->slope - 1.) + 2.); in get_coeffs() 222 …{ "slope", "set slope", OFFSET(slope), AV_OPT_TYPE_DOUBLE, {.dbl=0.5}, 0.0001, 1, FLAGS…
|
/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/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/gstreamer/gstreamer/tests/misc/ |
D | network-clock-utils.scm | 84 (let ((slope (/ sxy sxx))) 86 slope 87 (- ybar (* slope xbar))
|
/third_party/vk-gl-cts/doc/testspecs/GLES2/ |
D | performance.shaders.operator.txt | 37 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
|
/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/vk-gl-cts/doc/testspecs/GLES3/ |
D | performance.shaders.operator.txt | 41 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
|
/third_party/ffmpeg/libavfilter/opencl/ |
D | tonemap.cl | 182 float slope = min(1.0f, sdr_avg / average); 183 sig *= slope; 184 peak *= slope; 192 sig = mix(sig, luma * slope, coeff);
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_shader_fs.cpp | 833 RegisterVec4 slope = vf.temp_vec4(pin_group); in load_barycentric_at_sample() local 835 auto fetch = new LoadFromBuffer(slope, {0, 1,2, 3}, src, 0, in load_barycentric_at_sample() 867 emit_instruction(new AluInstr(op3_muladd, tmp0, grad[0], slope[2], interpolator.j, {alu_write})); in load_barycentric_at_sample() 868 …emit_instruction(new AluInstr(op3_muladd, tmp1, grad[1], slope[2], interpolator.i, {alu_write, alu… in load_barycentric_at_sample() 870 …emit_instruction(new AluInstr(op3_muladd, vf.dest(instr->dest, 0, pin_none), grad[3], slope[3], tm… in load_barycentric_at_sample() 871 …emit_instruction(new AluInstr(op3_muladd, vf.dest(instr->dest, 1, pin_none), grad[2], slope[3], tm… in load_barycentric_at_sample()
|
/third_party/mesa3d/src/vulkan/runtime/ |
D | vk_graphics_state.h | 224 float slope; member 620 float slope; member
|
/third_party/python/Lib/ |
D | statistics.py | 960 slope = sxy / sxx # equivalent to: covariance(x, y) / variance(x) 963 intercept = ybar - slope * xbar 964 return LinearRegression(slope=slope, intercept=intercept)
|