/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 66 double x2, double y2, in FindTriangleCentroid() argument 71 centY = (y0 + y1 + y2) / 3.0; in FindTriangleCentroid() 74 if (y0 == y2) in FindTriangleCentroid() 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid() 104 double dy = y2 - y0; 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() 144 FindTriangleCentroid(x0, y0, x3, y3, x2, y2, mass2, cent2x, cent2y); in FindQuadCentroid()
|
D | Blend.cpp | 144 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() 192 …if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is high… in runBlend() 195 yBottomCorners[1] = y2; in runBlend() 200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend() 1005 int y2 = y1 + 1; in ProcessPyramidForThisFrame() local 1010 double y2val = sptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1011 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() 1018 y2val = suptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1019 (suptr->ptr[y2][x2] - suptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() [all …]
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 66 double x2, double y2, in FindTriangleCentroid() argument 71 centY = (y0 + y1 + y2) / 3.0; in FindTriangleCentroid() 74 if (y0 == y2) in FindTriangleCentroid() 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid() 104 double dy = y2 - y0; 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() 144 FindTriangleCentroid(x0, y0, x3, y3, x2, y2, mass2, cent2x, cent2y); in FindQuadCentroid()
|
D | Blend.cpp | 144 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() 192 …if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is high… in runBlend() 195 yBottomCorners[1] = y2; in runBlend() 200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend() 1025 int y2 = y1 + 1; in ProcessPyramidForThisFrame() local 1030 double y2val = sptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1031 (sptr->ptr[y2][x2] - sptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() 1038 y2val = suptr->ptr[y2][x1] + in ProcessPyramidForThisFrame() 1039 (suptr->ptr[y2][x2] - suptr->ptr[y2][x1]) * xfrac; in ProcessPyramidForThisFrame() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLCanvas.java | 73 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
|
D | GLCanvasImpl.java | 186 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument 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 314 float x4 = m[0] * x2 + m[4] * y2 + m[12]; in mapPoints() 315 float y4 = m[1] * x2 + m[5] * y2 + m[13]; in mapPoints() 316 float w4 = m[3] * x2 + m[7] * y2 + m[15]; in mapPoints()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | GLCanvasStub.java | 50 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/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_metrics.h | 41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; in db_CauchyDerivative() local 74 y2=db_sqr(f[1]); in db_CauchyDerivative() 75 r2=x2+y2; in db_CauchyDerivative()
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_metrics.h | 41 double x2,y2,r,r2,r2s,one_over_r2,fu,r_fu,one_over_r_fu; in db_CauchyDerivative() local 74 y2=db_sqr(f[1]); in db_CauchyDerivative() 75 r2=x2+y2; in db_CauchyDerivative()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeleteDropTarget.java | 271 final float y2 = from.top + offsetY; // intermediate t/l in createFlingToTrashAnimatorListener() local 297 float y = (1f - t) * (1f - t) * (y1 - y1o) + 2 * (1f - t) * t * (y2 - x1o) + in createFlingToTrashAnimatorListener()
|