Home
last modified time | relevance | path

Searched refs:x1 (Results 1 – 25 of 32) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/
Dgeometry_utils.h31 static inline float getSquaredDistanceFloat(float x1, float y1, float x2, float y2) { in getSquaredDistanceFloat() argument
32 const float deltaX = x1 - x2; in getSquaredDistanceFloat()
37 static inline float getDistanceFloat(float x1, float y1, float x2, float y2) { in getDistanceFloat() argument
38 return hypotf(x1 - x2, y1 - y2); in getDistanceFloat()
41 static inline int getDistanceInt(int x1, int y1, int x2, int y2) { in getDistanceInt() argument
42 return static_cast<int>(getDistanceFloat(static_cast<float>(x1), static_cast<float>(y1), in getDistanceInt()
46 static inline float getAngle(int x1, int y1, int x2, int y2) { in getAngle() argument
47 const int dx = x1 - x2; in getAngle()
64 float x, float y, float x1, float y1, float x2, float y2, bool extend) { in pointToLineSegSquaredDistanceFloat() argument
65 const float ray1x = x - x1; in pointToLineSegSquaredDistanceFloat()
[all …]
Dproximity_info.cpp130 static inline float getNormalizedSquaredDistanceFloat(float x1, float y1, float x2, float y2, in getNormalizedSquaredDistanceFloat() argument
132 const float deltaX = x1 - x2; in getNormalizedSquaredDistanceFloat()
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, in FindTriangleCentroid() argument
70 centX = (x0 + x1 + x2) / 3.0; in FindTriangleCentroid()
76 if (x0 == x1) in FindTriangleCentroid()
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b in FindTriangleCentroid()
87 if (x0 == x1) in FindTriangleCentroid()
93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid()
96 else if (x1 == x2) in FindTriangleCentroid()
98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid()
112 double b2 = y1 - m2 * x1; in FindTriangleCentroid()
118 dx = x1 - x; in FindTriangleCentroid()
[all …]
DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1); in runBlend()
174 … if(x0 < xLeftCorners[0] || x1 < xLeftCorners[1]) // If either of the left corners is lower in runBlend()
177 xLeftCorners[1] = x1; in runBlend()
200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend()
1001 int x1 = (xx >= 0.0) ? (int) xx : (int) floor(xx); in ProcessPyramidForThisFrame() local
1006 if(inSegment(x1, sptr->width, BORDER-1) && in ProcessPyramidForThisFrame()
1009 double xfrac = xx - x1; in ProcessPyramidForThisFrame()
1012 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac)); in ProcessPyramidForThisFrame()
1016 wt1 * ciCalc(suptr, x1, y1, xfrac, yfrac)); in ProcessPyramidForThisFrame()
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, in FindTriangleCentroid() argument
70 centX = (x0 + x1 + x2) / 3.0; in FindTriangleCentroid()
76 if (x0 == x1) in FindTriangleCentroid()
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b in FindTriangleCentroid()
87 if (x0 == x1) in FindTriangleCentroid()
93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid()
96 else if (x1 == x2) in FindTriangleCentroid()
98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid()
112 double b2 = y1 - m2 * x1; in FindTriangleCentroid()
118 dx = x1 - x; in FindTriangleCentroid()
[all …]
DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1); in runBlend()
174 … if(x0 < xLeftCorners[0] || x1 < xLeftCorners[1]) // If either of the left corners is lower in runBlend()
177 xLeftCorners[1] = x1; in runBlend()
200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend()
981 int x1 = (xx >= 0.0) ? (int) xx : (int) floor(xx); in ProcessPyramidForThisFrame() local
986 if(inSegment(x1, sptr->width, BORDER-1) && in ProcessPyramidForThisFrame()
989 double xfrac = xx - x1; in ProcessPyramidForThisFrame()
992 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac)); in ProcessPyramidForThisFrame()
996 wt1 * ciCalc(suptr, x1, y1, xfrac, yfrac)); in ProcessPyramidForThisFrame()
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_image_homography.h47 double x1[3],double x2[3],double x3[3],double x4[3],
62 double x1[3],double x2[3],double x3[3],
77 double x1[3],double x2[3], in db_StitchCameraRotation_2Points()
84 x[0]=x1; in db_StitchCameraRotation_2Points()
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double …
Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3], in db_StitchProjective2D_4Points()
86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1); in db_StitchProjective2D_4Points()
95 double x1[3],double x2[3],double x3[3], in db_StitchAffine2D_3Points()
101 db_SAffineImagePointPointConstraints(c ,c+7 ,xp1,x1); in db_StitchAffine2D_3Points()
114 inline void db_CommonFocalLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double… in db_CommonFocalLengthFromRotation_2Point()
129 m=db_SafeReciprocal(x1[2]); in db_CommonFocalLengthFromRotation_2Point()
130 ax=x1[0]*m; in db_CommonFocalLengthFromRotation_2Point()
131 ay=x1[1]*m; in db_CommonFocalLengthFromRotation_2Point()
177 int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],d… in db_StitchRotationCommonFocalLength_3Points()
186 db_CommonFocalLengthFromRotation_2Point(fsol,&nr_sols,x1,x2,xp1,xp2,signed_disambiguation); in db_StitchRotationCommonFocalLength_3Points()
[all …]
Ddb_metrics.h121 double x0,x1,x2,mult; in db_SquaredReprojectionErrorHomography() local
125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2]; in db_SquaredReprojectionErrorHomography()
128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredReprojectionErrorHomography()
135 double x0,x1,x2,mult; in db_SquaredInhomogenousHomographyError() local
139 x1=H[3]*x[0]+H[4]*x[1]+H[5]; in db_SquaredInhomogenousHomographyError()
142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredInhomogenousHomographyError()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_image_homography.h47 double x1[3],double x2[3],double x3[3],double x4[3],
62 double x1[3],double x2[3],double x3[3],
77 double x1[3],double x2[3], in db_StitchCameraRotation_2Points()
84 x[0]=x1; in db_StitchCameraRotation_2Points()
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double …
Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3], in db_StitchProjective2D_4Points()
86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1); in db_StitchProjective2D_4Points()
95 double x1[3],double x2[3],double x3[3], in db_StitchAffine2D_3Points()
101 db_SAffineImagePointPointConstraints(c ,c+7 ,xp1,x1); in db_StitchAffine2D_3Points()
114 inline void db_CommonFocalLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double… in db_CommonFocalLengthFromRotation_2Point()
129 m=db_SafeReciprocal(x1[2]); in db_CommonFocalLengthFromRotation_2Point()
130 ax=x1[0]*m; in db_CommonFocalLengthFromRotation_2Point()
131 ay=x1[1]*m; in db_CommonFocalLengthFromRotation_2Point()
177 int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],d… in db_StitchRotationCommonFocalLength_3Points()
186 db_CommonFocalLengthFromRotation_2Point(fsol,&nr_sols,x1,x2,xp1,xp2,signed_disambiguation); in db_StitchRotationCommonFocalLength_3Points()
[all …]
Ddb_metrics.h121 double x0,x1,x2,mult; in db_SquaredReprojectionErrorHomography() local
125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2]; in db_SquaredReprojectionErrorHomography()
128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredReprojectionErrorHomography()
135 double x0,x1,x2,mult; in db_SquaredInhomogenousHomographyError() local
139 x1=H[3]*x[0]+H[4]*x[1]+H[5]; in db_SquaredInhomogenousHomographyError()
142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredInhomogenousHomographyError()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMath.java30 float x1 = l1[0]; in shortestVectorFromPointToLine() local
34 float xdelt = x2 - x1; in shortestVectorFromPointToLine()
38 float u = ((point[0] - x1) * xdelt + (point[1] - y1) * ydelt) in shortestVectorFromPointToLine()
41 (x1 + u * (x2 - x1)), (y1 + u * (y2 - y1)) in shortestVectorFromPointToLine()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
Dconvolve3x3.rs29 uint32_t x1 = min((int32_t)x+1, gWidth-1);
34 float4 p00 = rsUnpackColor8888(gPixels[x1 + gWidth * y1]);
37 float4 p10 = rsUnpackColor8888(gPixels[x1 + gWidth * y]);
40 float4 p20 = rsUnpackColor8888(gPixels[x1 + gWidth * y2]);
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
Dgalaxy.rs58 float x1;
63 x1 = rsRand(2.0f) - 1.0f;
65 w = x1 * x1 + x2 * x2;
69 return x1 * w;
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
Dgalaxy.rs72 float x1;
77 x1 = rsRand(2.0f) - 1.0f;
79 w = x1 * x1 + x2 * x2;
83 return x1 * w;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSpline.java155 double x1 = cur.x; in getAppliedCurve() local
162 double delta = (x2 - x1); in getAppliedCurve()
164 double b = (x - x1) / delta; in getAppliedCurve()
249 double x1 = points[i].x; in draw() local
254 for (double x = x1; x < x2; x += 20) { in draw()
257 double delta = (x2 - x1); in draw()
259 double b = (x - x1) / delta; in draw()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.h554 double x0,x1,x2,mult; in SquaredInhomogenousHomographyError() local
558 x1=H[3]*x[0]+H[4]*x[1]+H[5]; in SquaredInhomogenousHomographyError()
561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult); in SquaredInhomogenousHomographyError()
/packages/apps/Camera/jni/feature_stab/src/dbreg/
Ddbreg.h554 double x0,x1,x2,mult; in SquaredInhomogenousHomographyError() local
558 x1=H[3]*x[0]+H[4]*x[1]+H[5]; in SquaredInhomogenousHomographyError()
561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult); in SquaredInhomogenousHomographyError()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLCanvas.java74 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); in drawLine() argument
78 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); in drawRect() argument
DGLCanvasImpl.java192 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument
199 translate(x1, y1); in drawLine()
200 scale(x2 - x1, y2 - y1, 1); in drawLine()
316 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { in mapPoints() argument
320 float x3 = m[0] * x1 + m[4] * y1 + m[12]; in mapPoints()
321 float y3 = m[1] * x1 + m[5] * y1 + m[13]; in mapPoints()
322 float w3 = m[3] * x1 + m[7] * y1 + m[15]; in mapPoints()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java120 final float x1 = x0 + s * dX / v; in onFling() local
131 .xBy(x1 - x0) in onFling()
137 x1 + halfShortSide < 0f || x1 - halfShortSide > tableWidth) { in onFling()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLCanvasStub.java51 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {} in drawLine() argument
52 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {} in drawRect() argument
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
DPointCloud.java73 public void setX(float x1) { in setX() argument
74 x = x1; in setX()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStroke.java334 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { in getDistance() argument
335 final int dx = x1 - x2; in getDistance()

12