Home
last modified time | relevance | path

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

/frameworks/av/include/media/
DInterpolator.h222 void setFirstSlope(T slope) { in setFirstSlope() argument
223 mFirstSlope = slope; in setFirstSlope()
230 void setLastSlope(T slope) { in setLastSlope() argument
231 mLastSlope = slope; in setLastSlope()
316 static S constrainSlope(S slope, S maxSlope) { in constrainSlope() argument
318 slope = std::min(slope, maxSlope); in constrainSlope()
319 slope = std::max(slope, S(0)); // not globally monotonic in constrainSlope()
321 slope = std::max(slope, maxSlope); in constrainSlope()
322 slope = std::min(slope, S(0)); // not globally monotonic in constrainSlope()
324 return slope; in constrainSlope()
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DVignette.java33 private float slope = 20.0f; field in Vignette
81 slope = (float)progress; in onBar3Changed()
104 center_y, scale, shade, slope); in do_init() local
109 center_y, scale, shade, slope); in do_init() local
114 scale, shade, slope); in do_init() local
119 scale, shade, slope); in do_init() local
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DVignette.java37 private float slope = 20.0f; field in Vignette
84 slope = (float)progress; in onBar3Changed()
102 center_y, scale, shade, slope); in do_init() local
107 center_y, scale, shade, slope); in do_init() local
112 scale, shade, slope); in do_init() local
117 scale, shade, slope); in do_init() local
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DVignette.java33 private float slope = 20.0f; field in Vignette
81 slope = (float)progress; in onBar3Changed()
104 center_y, scale, shade, slope); in do_init() local
109 center_y, scale, shade, slope); in do_init() local
114 scale, shade, slope); in do_init() local
119 scale, shade, slope); in do_init() local
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dlsp_lsf_tbl.cpp98 extern const Word16 slope[];
99 const Word16 slope[64] = variable
Dlsp_lsf.cpp112 extern const Word16 slope[];
375 L_tmp = (Word32)(temp - table[ind]) * slope[ind]; in Lsp_lsf()
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java129 final float slope = velY / velX; // slope = rise / run in getEdgeIntersect() local
130 final float yIntercept = y - slope * x; // rearrange line equation for yIntercept in getEdgeIntersect()
140 vertPoint.y = findY(slope, yIntercept, vertPoint.x); in getEdgeIntersect()
145 horizPoint.x = findX(slope, yIntercept, horizPoint.y); in getEdgeIntersect()
194 private int findY(float slope, float yIntercept, float x) { in findY() argument
195 return (int) ((slope * x) + yIntercept); in findY()
198 private int findX(float slope, float yIntercept, float y) { in findX() argument
199 return (int) ((y - yIntercept) / slope); in findX()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Disp_isf.tab43 /* slope in Q11 used to compute y = acos(x) */
45 static const Word16 slope[128] = {
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleTouchHandler.java244 final float slope = velY / velX; in isFastFlingTowardsDismissTarget() local
246 final float yIntercept = rawY - slope * rawX; in isFastFlingTowardsDismissTarget()
248 bottomOfScreenInterceptX = (mStack.getHeight() - yIntercept) / slope; in isFastFlingTowardsDismissTarget()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rscript29 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;
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
Dyuv.rscript104 const float slope = 20.0f;
108 … float lumen = vignetteShade / (1.0f + exp((sqrt(f) - range) * slope)) + (1.0f - vignetteShade);
/frameworks/base/core/java/android/gesture/
DGestureUtils.java164 float slope = (segmentEndY - segmentStartY) / in spatialSampling() local
167 ypos = slope * (xpos - segmentStartX) + segmentStartY; in spatialSampling()
173 float slope = (segmentEndY - segmentStartY) / in spatialSampling() local
176 ypos = slope * (xpos - segmentStartX) + segmentStartY; in spatialSampling()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Disp_isf.c52 L_tmp = vo_L_mult(vo_sub(isp[i], table[ind]), slope[ind]); in Isp_isf()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
DFilters.java254 private final float slope = 20.0f; field in Filters.VignetteFilter
261 center_y, scale, shade, slope); in init() local
270 scale, shade, slope); in prepInit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java483 final float slope = velY / velX; in getDismissEndPoint() local
485 final float yIntercept = pipBounds.top - slope * pipBounds.left; in getDismissEndPoint()
487 final float x = (bottomBound - yIntercept) / slope; in getDismissEndPoint()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackLayoutAlgorithm.java1152 float slope = ((1f - topPeekHeightPct) - cpoint1Y) / (0.5f - cpoint1X); in constructUnfocusedCurve() local
1153 float b = 1f - slope * cpoint1X; in constructUnfocusedCurve()
1155 float cpoint2Y = slope * cpoint2X + b; in constructUnfocusedCurve()