Home
last modified time | relevance | path

Searched refs:dist2 (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dq_plsf_5.cpp389 Word32 dist2; in Vq_subvec_s() local
426 dist2 = ((Word32)temp2 * temp2); in Vq_subvec_s()
434 dist2 += ((Word32)temp2 * temp2); in Vq_subvec_s()
436 if ((dist1 >= dist_min) && (dist2 >= dist_min)) in Vq_subvec_s()
448 dist2 += ((Word32)temp2 * temp2); in Vq_subvec_s()
456 dist2 += ((Word32)temp2 * temp2); in Vq_subvec_s()
467 if (dist2 < dist_min) in Vq_subvec_s()
469 dist_min = dist2; in Vq_subvec_s()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dfisheye.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
Dfisheye_approx.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = half_rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dfisheye_approx.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = half_rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
Dfisheye.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dfisheye.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
Dfisheye_approx.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = half_rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DGlowPadView.java866 float touchRadius = (float) Math.sqrt(dist2(tx, ty)); in handleMove()
893 if (angleMatches && (dist2(tx, ty) > snapDistance2)) { in handleMove()
991 if (mAlwaysTrackFinger || dist2(tx,ty) <= getScaledGlowRadiusSquared()) {
1222 private float dist2(float dx, float dy) { in dist2() method in GlowPadView
/frameworks/av/media/libstagefright/
DAVIExtractor.cpp1271 size_t dist2 = nextSyncSampleIndex - closestSampleIndex; in getSampleIndexAtTime() local
1274 (dist1 < dist2) ? prevSyncSampleIndex : nextSyncSampleIndex; in getSampleIndexAtTime()
/frameworks/native/services/inputflinger/
DInputReader.cpp5177 float dist2 = dist[id2]; in preparePointerGestures() local
5179 && dist2 >= mConfig.pointerGestureMultitouchMinDistance) { in preparePointerGestures()
5191 float cosine = dot / (dist1 * dist2); // denominator always > 0 in preparePointerGestures()
5199 dist2, mConfig.pointerGestureMultitouchMinDistance, in preparePointerGestures()
5210 dist2, mConfig.pointerGestureMultitouchMinDistance, in preparePointerGestures()