Home
last modified time | relevance | path

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

/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_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/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/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/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/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/Gallery2/src/com/android/gallery3d/ui/
DGLCanvas.java73 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); in drawLine() argument
77 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); in drawRect() argument
DGLCanvasImpl.java186 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument
193 translate(x1, y1); in drawLine()
194 scale(x2 - x1, y2 - y1, 1); in drawLine()
303 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { in mapPoints() argument
307 float x3 = m[0] * x1 + m[4] * y1 + m[12]; in mapPoints()
308 float y3 = m[1] * x1 + m[5] * y1 + m[13]; in mapPoints()
309 float w3 = m[3] * x1 + m[7] * y1 + m[15]; in mapPoints()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLCanvasStub.java50 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {} in drawLine() argument
51 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {} in drawRect() argument
/packages/apps/Launcher2/src/com/android/launcher2/
DDeleteDropTarget.java273 final float x1 = from.left; // drag view t/l in createFlingToTrashAnimatorListener() local
295 float x = (1f - t) * (1f - t) * (x1 - x1o) + 2 * (1f - t) * t * (x2 - x1o) + in createFlingToTrashAnimatorListener()
DCellLayout.java2024 final int x1 = mTmpPoint[0]; in ReorderHintAnimation() local
2026 final int dX = x1 - x0; in ReorderHintAnimation()
/packages/apps/Camera/perftests/panorama/input/
Dtest_012.ppm1144 x1:T J e %v16K
6991 ;) :(3#/ # <6%~�w���������������������z[:tV4��I��I��h��t��������o��f�x;�q4�n'�t-�x1�}6�8��<��S…
7153 ;-RD5a[Mql^��v�����a��f��}��������u�{H�m:�h#�k&�i'�h&�p*�q,�x1�~7��S��^�����������~��R��J��7��;�L…
7294 …(a^L��a��k��z��t��X�Q�|<�t4�s)�t*�i!�o'�s)�p'�t.�v0�{J��^��������q��e�}6�x1�}8�x4F10#('#…
Dtest_011.ppm6729 …F��C��K��W��]��l��s��~��x�������Ȭ�ѵ�͚�Н�ʍѷ{��f��Z��s��|����ȷ����ij��T��R�{4�x1��X��l���������Ż�Ѽ��ə…
7234 …�������g��[��D��D��E��E��R��a��W��H��R��W��n��n��������q��g�u5�k*�e �l'�v/�x1�}5�7�O��W���������…
7377 …�R��i��z��������s��k��H��I��I��D��>��A��L��K��Y��]��k��z����a�}<�x7�u,�{1�x1�v/�o*�w3�x/�x/�{D��S…
Dtest_006.ppm7144 …�]��^��`��_��n��s�����������x��I��L��L��J��D��D��C��E��v�����������i��^��:�x1�v(�v(�w,�{/��A��A��R…
7151 …�i��]��[��_��`��o��s�����������w��M��Q��O��L��H��F��C��D��u����������^��T�x1�s,�p"�o!�u'�|.��;��=…
Dtest_034.ppm6355 O=/��:�kɔ,�h��b��`��b��a��h��~ƒ3ԠA��,�M�I���3ĊE�P wB��x1̗P�`d3��dۭKۭK���s��s��p��o��{�őۧ/ɑ<�Z…