/external/skqp/src/core/ |
SkEdge.h | 122 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); 125 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 126 fDX = slope;
|
SkEdge.cpp | 72 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); local 75 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 76 fDX = slope; 113 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); local 116 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 117 fDX = slope;
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
rasterize.rs | 29 static float2 slope[12]; 57 slope[total].x = (-(f1.y * (f3.z - f2.z) - f2.y * f3.z + f3.y * f2.z + (f2.y - f3.y) * f1.z) 59 slope[total].y = ((f1.x * (f3.z - f2.z) - f2.x * f3.z + f3.x * f2.z + (f2.x - f3.x) * f1.z) 117 float2 delta = slope[i] * loc;
|
/external/fio/unit_tests/ |
steadystate_tests.py | 43 def check(data, iops, slope, pct, limit, dur, criterion): 47 if slope: 109 reads = [ {'s': True, 'timeout': 100, 'numjobs': 1, 'ss_dur': 5, 'ss_ramp': 3, 'iops': True, 'slope': True, 'ss_limit': 0.1, 'pct': True}, 111 {'s': True, 'timeout': 100, 'numjobs': 3, 'ss_dur': 10, 'ss_ramp': 5, 'iops': False, 'slope': True, 'ss_limit': 0.1, 'pct': True}, 112 {'s': True, 'timeout': 10, 'numjobs': 3, 'ss_dur': 10, 'ss_ramp': 500, 'iops': False, 'slope': True, 'ss_limit': 0.1, 'pct': True}, 147 if job['slope']: 174 slope=job['slope'], variable 196 slope=job['slope'], variable [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
isp_isf.c | 51 /* acos(isp[i])= ind*128 + ( ( isp[i]-table[ind] ) * slope[ind] )/2048 */ 52 L_tmp = vo_L_mult(vo_sub(isp[i], table[ind]), slope[ind]); 53 isf[i] = vo_round((L_tmp << 4)); /* (isp[i]-table[ind])*slope[ind])>>11 */
|
/external/deqp/external/vulkancts/modules/vulkan/clipping/ |
vktClippingTests.cpp | 115 std::vector<Vec4> genVertices (const VkPrimitiveTopology topology, const Vec4& offset, const float slope) 129 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); 131 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); 133 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); 138 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 139 vertices.push_back(offset + Vec4( p, p, slope + z, w)); 140 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 141 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); 148 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 151 vertices.push_back(offset + Vec4( p, p, slope + z, w)) [all...] |
/external/skia/src/pathops/ |
SkPathOpsWinding.cpp | 137 SkDVector slope; local 139 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); 157 slope = this->dSlopeAtT(t); 166 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { 180 newHit->fSlope = slope; 284 SkDebugf(" t=%1.9g pt=(%1.9g,%1.9g) slope=(%1.9g,%1.9g)\n", hit->fT,
|
/external/skqp/src/pathops/ |
SkPathOpsWinding.cpp | 137 SkDVector slope; local 139 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); 157 slope = this->dSlopeAtT(t); 166 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { 180 newHit->fSlope = slope; 284 SkDebugf(" t=%1.9g pt=(%1.9g,%1.9g) slope=(%1.9g,%1.9g)\n", hit->fT,
|
/external/pdfium/third_party/lcms/src/ |
cmsgmt.c | 535 double h, slope;
local 550 slope = Lab -> b / Lab -> a;
560 Lab -> b = amax * slope;
567 Lab -> a = bmax / slope;
573 Lab -> b = amin * slope;
580 Lab -> a = bmin / slope;
|
/external/skia/src/core/ |
SkEdge.cpp | 72 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); local 75 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 76 fDX = slope; 113 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); local 116 fX = SkFDot6ToFixed(x0 + SkFixedMul(slope, dy)); // + SK_Fixed1/2 117 fDX = slope;
|
SkScan_Hairline.cpp | 122 SkFixed slope = SkFixedDiv(dy, dx); 123 SkFixed startY = SkFDot6ToFixed(y0) + (slope * ((32 - x0) & 63) >> 6); 125 horiline(ix0, ix1, startY, slope, blitter); 137 SkFixed slope = SkFixedDiv(dx, dy); 138 SkFixed startX = SkFDot6ToFixed(x0) + (slope * ((32 - y0) & 63) >> 6); 140 vertline(iy0, iy1, startX, slope, blitter);
|
/frameworks/base/core/java/com/android/internal/policy/ |
PipSnapAlgorithm.java | 128 // Find the line of movement the PIP is on. Line defined by: y = slope * x + yIntercept 129 final float slope = velY / velX; // slope = rise / run local 130 final float yIntercept = y - slope * x; // rearrange line equation for yIntercept 140 vertPoint.y = findY(slope, yIntercept, vertPoint.x); 145 horizPoint.x = findX(slope, yIntercept, horizPoint.y); 194 private int findY(float slope, float yIntercept, float x) { 195 return (int) ((slope * x) + yIntercept); 198 private int findX(float slope, float yIntercept, float y) { 199 return (int) ((y - yIntercept) / slope); [all...] |
/external/autotest/client/site_tests/video_VideoDecodeMemoryUsage/ |
video_VideoDecodeMemoryUsage.py | 103 Gets slope and the confidence interval of the linear regression based on 106 This function returns a tuple (beta, delta), where the beta is the slope 127 slope, delta = _get_linear_regression_slope(index, mem_usage) 129 name, slope - delta, slope + delta) 130 if (slope - delta > threshold): 132 raise error.TestError('leak detected: %s - %s' % (name, slope - delta))
|
/external/esd/include/ |
audiofile.h | 519 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);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/ |
audiofile.h | 518 double slope, double intercept, double minClip, double maxClip); 520 double *slope, double *intercept, double *minClip, double *maxClip); 524 double slope, double intercept, double minClip, double maxClip); 528 double slope, double intercept, double minClip, double maxClip); 530 double *slope, double *intercept, double *minClip, double *maxClip);
|
/cts/apps/CameraITS/tests/rolling_shutter_skew/ |
test_rolling_shutter_skew.py | 42 # Constants to make sure the slope of the fitted line is reasonable. 259 shutter_skew, confidence, slope = calculate_shutter_skew( 268 avg_slope += slope * confidence 278 slope_err_str = ('The average slope of the fitted line was too %s ' 279 'to get an accurate measurement (slope was %s). ' 301 the measurement (useful for weighting averages), and the slope of the 322 slope = vy / vx 323 debug_print('Slope is %s.' % slope) 342 x_range = frame_h / slope [all...] |
/external/fio/ |
steadystate.c | 98 * calculate slope as (sum_xy - sum_x * sum_y / n) / (sum_(x^2) 103 ss->slope = (ss->sum_xy - (double) ss->sum_x * ss->sum_y / ss->dur) / 106 ss->criterion = 100.0 * ss->slope / (ss->sum_y / ss->dur); 108 ss->criterion = ss->slope; 110 dprint(FD_STEADYSTATE, "sum_y: %llu, sum_xy: %llu, slope: %f, " 114 ss->slope, ss->criterion, ss->limit);
|
/external/autotest/client/site_tests/kernel_Ktime/ |
kernel_Ktime.py | 220 slope = ((sum_rtc_diff - sum_rtc * mean_diff) / 222 logging.info('drift %.9f', slope)
|
/external/libxaac/decoder/drc_src/ |
impd_drc_gain_dec.c | 563 FLOAT32 loc_db_gain = 0.0f, prev_db_gain, slope = 0.0f, slopePrev; local 567 slopePrev = buf_interpolation->prev_node.slope; 571 slope = str_spline_nodes->str_node[n].slope; 575 slopePrev, slope, buf_interpolation->lpcm_gains + MAX_SIGNAL_DELAY + 581 slopePrev = slope; 585 buf_interpolation->str_node.slope = slope;
|
/external/webrtc/webrtc/modules/video_coding/test/ |
plotJitterEstimate.m | 14 plot(x, slopes(x, 1)); title('Line slope');
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
expand.cc | 209 // Set a suitable cross-fading slope. 244 // Select muting slope depending on how many consecutive expands we have 257 // Mute segment according to slope value. 556 // Set the energy_ratio since it is used by muting slope. 714 // Calculate muting slope. Reuse value from earlier scaling of 716 int16_t slope = amplitude_ratio; local 717 if (slope > 12288) { 718 // slope > 1.5. 719 // Calculate (1 - (1 / slope)) / distortion_lag = 720 // (slope - 1) / (distortion_lag * slope) [all...] |
/external/nos/host/android/citadel/validation/ |
citadel_validation_tool.cpp | 464 uint32_t temp_offset, slope, temp_degc; local 473 slope = (875<<3)/1000; // TEMP_ADC_SUM8 is 9.3b fixed point 474 temp_degc = (((current_temp - temp_offset) << 3)/slope) >> 3; // just grab integer value
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
Filters.java | 254 private final float slope = 20.0f; field in class:Filters.VignetteFilter 261 center_y, scale, shade, slope); local 270 scale, shade, slope);
|
/frameworks/base/core/java/android/gesture/ |
GestureUtils.java | 164 float slope = (segmentEndY - segmentStartY) / local 167 ypos = slope * (xpos - segmentStartX) + segmentStartY; 173 float slope = (segmentEndY - segmentStartY) / local 176 ypos = slope * (xpos - segmentStartX) + segmentStartY;
|
/external/adhd/cras/src/dsp/ |
drc_kernel.c | 50 dk->slope = uninitialized_value; 123 /* Approximate 1st derivative with input and output expressed in dB. This slope 125 * compression ratio of 20 would be a slope of 1/20. 158 * a slope of 0. */ 159 float slope = slope_at(dk, x, k); local 161 if (slope < desired_slope) { 189 dk->slope = 1 / dk->ratio; 200 dk->ratio_base = y0 * powf(dk->knee_threshold, -dk->slope); 237 y = dk->ratio_base * knee_expf(logf(x) * (dk->slope - 1)); [all...] |