Home
last modified time | relevance | path

Searched refs:slope (Results 1 - 25 of 62) sorted by relevance

123

/third_party/backends/testsuite/backend/genesys/
H A Dtests_motor.cpp37 MotorSlope slope; in test_create_slope_table_small_full_step() local
38 slope.initial_speed_w = 62464; in test_create_slope_table_small_full_step()
39 slope.max_speed_w = 2632; in test_create_slope_table_small_full_step()
40 slope.acceleration = 1.2e-8; in test_create_slope_table_small_full_step()
42 auto table = create_slope_table_for_speed(slope, 5000, StepType::FULL, 4, 8, max_table_size); in test_create_slope_table_small_full_step()
52 table = create_slope_table_for_speed(slope, 3000, StepType::FULL, 4, 8, max_table_size); in test_create_slope_table_small_full_step()
67 MotorSlope slope; in test_create_slope_table_small_full_step_target_speed_too_high() local
68 slope.initial_speed_w = 62464; in test_create_slope_table_small_full_step_target_speed_too_high()
69 slope.max_speed_w = 2632; in test_create_slope_table_small_full_step_target_speed_too_high()
70 slope in test_create_slope_table_small_full_step_target_speed_too_high()
87 MotorSlope slope; test_create_slope_table_small_half_step() local
140 MotorSlope slope; test_create_slope_table_large_full_step() local
198 MotorSlope slope; test_create_slope_table_large_half_step() local
[all...]
/third_party/backends/backend/genesys/
H A Dmotor.cpp55 MotorSlope slope; in create_from_steps() local
56 slope.initial_speed_w = initial_w; in create_from_steps()
57 slope.max_speed_w = max_w; in create_from_steps()
58 slope.acceleration = compute_acceleration_for_steps(initial_w, max_w, steps); in create_from_steps()
59 return slope; in create_from_steps()
104 MotorSlopeTable create_slope_table_for_speed(const MotorSlope& slope, unsigned target_speed_w, in create_slope_table_for_speed() argument
115 unsigned max_speed_shifted_w = slope.max_speed_w >> step_shift; in create_slope_table_for_speed()
119 slope.max_speed_w); in create_slope_table_for_speed()
131 unsigned current = slope.get_table_step_shifted(table.table.size(), step_type); in create_slope_table_for_speed()
154 std::ostream& operator<<(std::ostream& out, const MotorSlope& slope) in operator <<() argument
[all...]
H A Dtables_motor.cpp290 profile.slope = MotorSlope::create_from_steps(28597 * 2, 727 * 2, 200); in genesys_init_motor_tables()
297 profile.slope = MotorSlope::create_from_steps(28597 * 2, 727 * 2, 200); in genesys_init_motor_tables()
304 profile.slope = MotorSlope::create_from_steps(28597 * 2, 279 * 2, 1000); in genesys_init_motor_tables()
318 profile.slope = MotorSlope::create_from_steps(2500 * 2, 134 * 2, 1000); in genesys_init_motor_tables()
325 profile.slope = MotorSlope::create_from_steps(2500 * 2, 200 * 2, 1000); in genesys_init_motor_tables()
332 profile.slope = MotorSlope::create_from_steps(2500 * 2, 200 * 2, 1000); in genesys_init_motor_tables()
345 profile.slope = MotorSlope::create_from_steps(20202 * 4, 333 * 4, 100); in genesys_init_motor_tables()
353 profile.slope = MotorSlope::create_from_steps(65535 * 4, 333 * 4, 100); in genesys_init_motor_tables()
361 profile.slope = MotorSlope::create_from_steps(65535 * 4, 333 * 4, 200); in genesys_init_motor_tables()
376 profile.slope in genesys_init_motor_tables()
[all...]
H A Dmotor.h51 The actual motor slope is defined as the duration of each motor step. That means we need to
64 The data in the slope struct MotorSlope corresponds to the above in the following way:
121 MotorSlopeTable create_slope_table_for_speed(const MotorSlope& slope, unsigned target_speed_w,
125 std::ostream& operator<<(std::ostream& out, const MotorSlope& slope);
131 slope{a_slope}, step_type{a_step_type}, max_exposure{a_max_exposure} in MotorProfile()
134 MotorSlope slope; member
165 return p.slope; in get_slope_with_step_type()
174 return p.slope; in get_slope_with_step_type()
/third_party/skia/src/core/
H A 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()
281 // Therefore, we'll let the outter function compute the slope once and send in the value.
283 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) {
284 // Since we send in the slope, we can no longer snap y inside this function.
285 // If we don't send in the slope, or we do some more sophisticated snapping, this function
309 SkASSERT(slope < SK_MaxS32);
311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope));
377 SkFixed slope; updateQuadratic() local
496 SkFixed slope = SkFixedToFDot6(newSnappedY - fSnappedY) == 0 updateCubic() variable
[all...]
H A DSkScan_Antihair.cpp108 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 {
138 SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) override {
344 SkFixed fstart, slope;
363 slope = 0;
366 slope = fastfixdiv(y1 - y0, x1 - x0);
367 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1);
368 fstart += (slope * (3
[all...]
H A DSkEdge.h125 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0);
128 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2
129 fDX = slope;
H A 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()
H A DSkScan_Hairline.cpp130 SkFixed slope = SkFixedDiv(dy, dx);
131 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6);
133 horiline(ix0, ix1, startY, slope, blitter);
150 SkFixed slope = SkFixedDiv(dx, dy);
151 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6);
153 vertline(iy0, iy1, startX, slope, blitter);
/third_party/skia/src/shaders/gradients/
H A DSkSweepGradient.cpp70 slope = min(xabs, yabs) / max(xabs, yabs);
71 skvm::F32 s = slope * slope;
77 skvm::F32 phi = slope * poly(s, -7.0547382347285747528076171875e-3f,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/clipping/
H A DvktClippingTests.cpp118 std::vector<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 in genVertices()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/clipping/
H A DvktClippingTests.cpp118 std::vector<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 in genVertices()
[all...]
/third_party/ffmpeg/libavfilter/
H A Daf_sidechaincompress.c114 double slope = log(lin_slope); in output_gain() local
119 slope *= 0.5; in output_gain()
125 gain = (slope - thres) / ratio + thres; in output_gain()
130 if (knee > 1.0 && slope > knee_start) in output_gain()
131 gain = hermite_interpolation(slope, knee_stop, knee_start, in output_gain()
135 if (knee > 1.0 && slope < knee_stop) in output_gain()
136 gain = hermite_interpolation(slope, knee_start, knee_stop, in output_gain()
141 return exp(gain - slope); in output_gain()
H A Daf_agate.c124 double slope = log(lin_slope); in output_gain() local
131 gain = (slope - thres) * tratio + thres; in output_gain()
135 if (knee > 1. && slope < knee_stop) in output_gain()
136 gain = hermite_interpolation(slope, knee_stop, knee_start, ((knee_stop - thres) * tratio + thres), knee_start, delta, 1.); in output_gain()
138 if (knee > 1. && slope > knee_start) in output_gain()
139 gain = hermite_interpolation(slope, knee_start, knee_stop, ((knee_start - thres) * tratio + thres), knee_stop, delta, 1.); in output_gain()
141 return FFMAX(range, exp(gain - slope)); in output_gain()
H A Dvf_misc_vaapi.c52 double slope, output; in map() local
54 slope = 1.0 * (out_max - out_min) / (in_max - in_min); in map()
55 output = out_min + slope * (x - in_min); in map()
H A Dvf_procamp_vaapi.c56 double slope, output; in map() local
58 slope = 1.0 * (out_max - out_min) / (in_max - in_min); in map()
59 output = out_min + slope * (x - in_min); in map()
H A Daf_asubboost.c36 double slope; member
56 double alpha = sin(w0) / 2 * sqrt(2. * (1. / s->slope - 1.) + 2.); in get_coeffs()
223 { "slope", "set slope", OFFSET(slope), AV_OPT_TYPE_DOUBLE, {.dbl=0.5}, 0.0001, 1, FLAGS },
H A Daf_atilt.c39 double slope; member
111 set_filter(ctx, s->order, inlink->sample_rate, s->freq, s->width, s->slope); in get_coeffs()
231 { "slope", "set filter slope", OFFSET(slope), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -1, 1, FLAGS },
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_shading_barycentric/
H A DvktFragmentShadingBarycentricTests.cpp784 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, rightTopColo in generateVertexBuffer()
[all...]
/third_party/skia/third_party/externals/dng_sdk/source/
H A 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()
/third_party/skia/src/pathops/
H A DSkPathOpsWinding.cpp140 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()
287 SkDebugf(" t=%1.9g pt=(%1.9g,%1.9g) slope=(%1.9g,%1.9g)\n", hit->fT, in sortableTop()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_barycentric/
H A DvktFragmentShadingBarycentricTests.cpp791 const float slope = WEIGHT_TEST_SLOPE; in generateVertexBuffer() local
800 DE_ASSERT(slope >= 1.0f); in generateVertexBuffer()
821 const float pointSlope = 1.0f + kx * (slope - 1.0f); in generateVertexBuffer()
845 const tcu::Vec4 right = tcu::Vec4( 1.0f, yy, 0.0f, 1.0f) * slope; in generateVertexBuffer()
867 const tcu::Vec4 right = tcu::Vec4( 2.0f, yy, 0.0f, 1.0f) * slope; in generateVertexBuffer()
892 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer()
894 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer()
895 addVertexWithColor(result, tcu::Vec4(+1.0f, -1.0f, 0.0f, 1.0f) * slope, rightTopColor); in generateVertexBuffer()
909 addVertexWithColor(result, tcu::Vec4(+1.0f, +1.0f, 0.0f, 1.0f) * slope, rightBotColor); in generateVertexBuffer()
910 addVertexWithColor(result, tcu::Vec4(+1.0f, -1.0f, 0.0f, 1.0f) * slope, rightTopColo in generateVertexBuffer()
[all...]
/third_party/backends/sanei/
H A Dsanei_magic.c68 double slope, int * finXInter, int * finYInter);
556 /* slope is too shallow, don't want to divide by 0 */ in sanei_magic_findSkew()
558 DBG(15,"sanei_magic_findSkew: slope too shallow: %0.08f\n",TSlope); in sanei_magic_findSkew()
600 /* function to do a simple rotation by a given slope, around
606 int centerX, int centerY, double slope, int bg_color) in sanei_magic_rotate()
611 double slopeRad = -atan(slope); in sanei_magic_rotate()
1263 /* Repeatedly call getLine to find the best range of slope and offset.
1293 double slope = 0; in getTopEdge() local
1308 ret = getLine(height,width,buff,slopes,minSlope+sStep2,maxSlope+sStep2,offsets,minOffset+oStep2,maxOffset+oStep2,&slope,&offset,&density); in getTopEdge()
1313 DBG(15,"getTopEdge: %d %d %+0.4f %d %d\n",i,j,slope,offse in getTopEdge()
605 sanei_magic_rotate(SANE_Parameters * params, SANE_Byte * buffer, int centerX, int centerY, double slope, int bg_color) sanei_magic_rotate() argument
1389 double slope; getLine() local
1596 getLeftEdge(int width, int height, int * top, int * bot, double slope, int * finXInter, int * finYInter) getLeftEdge() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Drpzaenc.c267 double *slope, double *y_intercept, double *correlation_coef) in leastsquares()
301 *slope = (sumx * sumy - sumxy) / tmp; in leastsquares()
302 *y_intercept = (sumy - (*slope) * sumx) / count; in leastsquares()
566 double slope, y_intercept, correlation_coef; in rpza_encode_stream() local
709 slope = y_intercept = correlation_coef = 0; in rpza_encode_stream()
712 &slope, &y_intercept, &correlation_coef)) { in rpza_encode_stream()
716 tmp_min = (int)(0.5 + min * slope + y_intercept); in rpza_encode_stream()
717 tmp_max = (int)(0.5 + max * slope + y_intercept); in rpza_encode_stream()
265 leastsquares(uint16_t *block_ptr, BlockInfo *bi, channel_offset xchannel, channel_offset ychannel, double *slope, double *y_intercept, double *correlation_coef) leastsquares() argument
/third_party/libinput/src/
H A Devdev-mt-touchpad-gestures.c365 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()
478 /* If we haven't determined an axis, use the slope in the meantime */ in tp_gesture_apply_scroll_constraints()
480 delta->x = (slope > in tp_gesture_apply_scroll_constraints()
[all...]

Completed in 24 milliseconds

123