Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h66 double x2, double y2, in FindTriangleCentroid() argument
70 centX = (x0 + x1 + x2) / 3.0; in FindTriangleCentroid()
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a in FindTriangleCentroid()
85 else if (x0 == x2) in FindTriangleCentroid()
89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid()
96 else if (x1 == x2) in FindTriangleCentroid()
103 double dx = x2 - x0; in FindTriangleCentroid()
124 mass = fabs( (y1 - y0) * (x2 - x0) ); in FindTriangleCentroid()
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, doub… in FindQuadCentroid() argument
143 FindTriangleCentroid(x0, y0, x1, y1, x2, y2, mass1, cent1x, cent1y); in FindQuadCentroid()
[all …]
DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local
171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend()
180 … if(x3 > xRightCorners[0] || x2 > xRightCorners[1]) // If either of the right corners is higher in runBlend()
183 xRightCorners[1] = x2; in runBlend()
200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend()
1004 int x2 = x1 + 1; in ProcessPyramidForThisFrame() local
1009 (sptr->ptr[y1][x2] - sptr->ptr[y1][x1]) * xfrac; in ProcessPyramidForThisFrame()
1011 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame()
1017 (suptr->ptr[y1][x2] - suptr->ptr[y1][x1]) * xfrac; in ProcessPyramidForThisFrame()
1019 (suptr->ptr[y2][x2] - suptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame()
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DGeometry.h66 double x2, double y2, in FindTriangleCentroid() argument
70 centX = (x0 + x1 + x2) / 3.0; in FindTriangleCentroid()
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a in FindTriangleCentroid()
85 else if (x0 == x2) in FindTriangleCentroid()
89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid()
96 else if (x1 == x2) in FindTriangleCentroid()
103 double dx = x2 - x0; in FindTriangleCentroid()
124 mass = fabs( (y1 - y0) * (x2 - x0) ); in FindTriangleCentroid()
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, doub… in FindQuadCentroid() argument
143 FindTriangleCentroid(x0, y0, x1, y1, x2, y2, mass1, cent1x, cent1y); in FindQuadCentroid()
[all …]
DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local
171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend()
180 … if(x3 > xRightCorners[0] || x2 > xRightCorners[1]) // If either of the right corners is higher in runBlend()
183 xRightCorners[1] = x2; in runBlend()
200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend()
1024 int x2 = x1 + 1; in ProcessPyramidForThisFrame() local
1029 (sptr->ptr[y1][x2] - sptr->ptr[y1][x1]) * xfrac; in ProcessPyramidForThisFrame()
1031 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame()
1037 (suptr->ptr[y1][x2] - suptr->ptr[y1][x1]) * xfrac; in ProcessPyramidForThisFrame()
1039 (suptr->ptr[y2][x2] - suptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3], in db_StitchProjective2D_4Points()
87 db_SProjImagePointPointConstraints(c+18,c+27,xp2,x2); in db_StitchProjective2D_4Points()
95 double x1[3],double x2[3],double x3[3], in db_StitchAffine2D_3Points()
102 db_SAffineImagePointPointConstraints(c+14,c+21,xp2,x2); in db_StitchAffine2D_3Points()
114 …lLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double x2[3],double xp1[3],dou… in db_CommonFocalLengthFromRotation_2Point()
135 m=db_SafeReciprocal(x2[2]); in db_CommonFocalLengthFromRotation_2Point()
136 bx=x2[0]*m; in db_CommonFocalLengthFromRotation_2Point()
137 by=x2[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.h41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; in db_CauchyDerivative() local
73 x2=db_sqr(f[0]); in db_CauchyDerivative()
75 r2=x2+y2; in db_CauchyDerivative()
121 double x0,x1,x2,mult; in db_SquaredReprojectionErrorHomography() local
126 x2=H[6]*x[0]+H[7]*x[1]+H[8]*x[2]; in db_SquaredReprojectionErrorHomography()
127 mult=1.0/((x2!=0.0)?x2:1.0); in db_SquaredReprojectionErrorHomography()
135 double x0,x1,x2,mult; in db_SquaredInhomogenousHomographyError() local
140 x2=H[6]*x[0]+H[7]*x[1]+H[8]; in db_SquaredInhomogenousHomographyError()
141 mult=1.0/((x2!=0.0)?x2:1.0); in db_SquaredInhomogenousHomographyError()
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()
85 x[1]=x2; in db_StitchCameraRotation_2Points()
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double …
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3], in db_StitchProjective2D_4Points()
87 db_SProjImagePointPointConstraints(c+18,c+27,xp2,x2); in db_StitchProjective2D_4Points()
95 double x1[3],double x2[3],double x3[3], in db_StitchAffine2D_3Points()
102 db_SAffineImagePointPointConstraints(c+14,c+21,xp2,x2); in db_StitchAffine2D_3Points()
114 …lLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double x2[3],double xp1[3],dou… in db_CommonFocalLengthFromRotation_2Point()
135 m=db_SafeReciprocal(x2[2]); in db_CommonFocalLengthFromRotation_2Point()
136 bx=x2[0]*m; in db_CommonFocalLengthFromRotation_2Point()
137 by=x2[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.h41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; in db_CauchyDerivative() local
73 x2=db_sqr(f[0]); in db_CauchyDerivative()
75 r2=x2+y2; in db_CauchyDerivative()
121 double x0,x1,x2,mult; in db_SquaredReprojectionErrorHomography() local
126 x2=H[6]*x[0]+H[7]*x[1]+H[8]*x[2]; in db_SquaredReprojectionErrorHomography()
127 mult=1.0/((x2!=0.0)?x2:1.0); in db_SquaredReprojectionErrorHomography()
135 double x0,x1,x2,mult; in db_SquaredInhomogenousHomographyError() local
140 x2=H[6]*x[0]+H[7]*x[1]+H[8]; in db_SquaredInhomogenousHomographyError()
141 mult=1.0/((x2!=0.0)?x2:1.0); in db_SquaredInhomogenousHomographyError()
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()
85 x[1]=x2; in db_StitchCameraRotation_2Points()
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double …
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
Dgrad.rs59 float x2 = xPos2[i];
62 float denom = (y2 * y2 - 2 * y1 * y2 + x2 * x2 - 2 * x1 * x2 + y1 * y1 + x1 * x1);
67 grads[k].dx = (x1 - x2) / denom;
68 grads[k].off = (y2 * y2 + x2 * x2 - x1 * x2 - y1 * y2) / denom;
Dconvolve3x3.rs30 uint32_t x2 = max((int32_t)x-1, 0);
36 float4 p02 = rsUnpackColor8888(gPixels[x2 + gWidth * y1]);
39 float4 p12 = rsUnpackColor8888(gPixels[x2 + gWidth * y]);
42 float4 p22 = rsUnpackColor8888(gPixels[x2 + gWidth * y2]);
DImageFilterGrad.java124 int[] x2 = mParameters.getXPos2(); in runFilter() local
137 coord[0] = x2[i]; in runFilter()
140 x2[i] = (int) coord[0]; in runFilter()
147 mScript.set_xPos2(x2); in runFilter()
DSplineMath.java51 double x2 = next[0]; in calculatetCurve() local
57 double delta = (x2 - x1); in calculatetCurve()
92 double x2 = next[0]; in getValue() local
98 double delta = (x2 - x1); in getValue()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DPercentageBarChart.java163 private boolean drawEntry(Canvas canvas, float x1, float x2, Paint paint) { in drawEntry() argument
165 float left = x1 > x2 ? x2 : x1; in drawEntry()
166 float right = x1 > x2 ? x1 : x2; in drawEntry()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h88 static inline float getSquaredDistanceFloat(const float x1, const float y1, const float x2, in getSquaredDistanceFloat() argument
90 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2); in getSquaredDistanceFloat()
94 const float x1, const float y1, const float x2, const float y2, const bool extend) { in pointToLineSegSquaredDistanceFloat() argument
97 const float ray2x = x2 - x1; in pointToLineSegSquaredDistanceFloat()
115 projectionX = x2; in pointToLineSegSquaredDistanceFloat()
Dgeometry_utils.h33 static AK_FORCE_INLINE float getAngle(const int x1, const int y1, const int x2, const int y2) { in getAngle() argument
34 const int dx = x1 - x2; in getAngle()
50 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, in getDistanceInt() argument
52 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2))); in getDistanceInt()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.h554 double x0,x1,x2,mult; in SquaredInhomogenousHomographyError() local
559 x2=H[6]*x[0]+H[7]*x[1]+H[8]; in SquaredInhomogenousHomographyError()
560 mult=1.0/((x2!=0.0)?x2:1.0); in SquaredInhomogenousHomographyError()
/packages/apps/Camera/jni/feature_stab/src/dbreg/
Ddbreg.h554 double x0,x1,x2,mult; in SquaredInhomogenousHomographyError() local
559 x2=H[6]*x[0]+H[7]*x[1]+H[8]; in SquaredInhomogenousHomographyError()
560 mult=1.0/((x2!=0.0)?x2:1.0); in SquaredInhomogenousHomographyError()
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
Dgalaxy.rs59 float x2;
64 x2 = rsRand(2.0f) - 1.0f;
65 w = x1 * x1 + x2 * x2;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java184 double x2 = next.x; in getAppliedCurve() local
190 double delta = (x2 - x1); in getAppliedCurve()
278 double x2 = points[i + 1].x; in draw() local
282 for (double x = x1; x < x2; x += 20) { in draw()
285 double delta = (x2 - x1); in draw()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java195 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument
203 scale(x2 - x1, y2 - y1, 1); in drawLine()
319 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { in mapPoints() argument
330 float x4 = m[0] * x2 + m[4] * y2 + m[12]; in mapPoints()
331 float y4 = m[1] * x2 + m[5] * y2 + m[13]; in mapPoints()
332 float w4 = m[3] * x2 + m[7] * y2 + m[15]; in mapPoints()
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBogusMoveEventDetector.java107 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { in getDistance() argument
108 return (int)Math.hypot(x1 - x2, y1 - y2); in getDistance()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLCanvas.java83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); in drawLine() argument
87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); in drawRect() argument

12