Searched defs:y1 (Results 1 - 7 of 7) sorted by relevance

/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
71 centY = (y0 + y1 + y2) / 3.0;
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
109 // Calculate the line that goes through x1,y1 and is perpendicular to
112 double b2 = y1 - m2 * x1;
119 dy = y1 - m1 * x + b1;
124 mass = fabs( (y1 - y0) * (x2 - x0) );
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, argument
143 FindTriangleCentroid(x0, y0, x1, y1, x
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
192 if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is higher
194 yBottomCorners[0] = y1;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
1002 int y1 = (yy >= 0.0) ? (int) yy : (int) floor(yy); local
1007 inSegment(y1, sptr->height, BORDER-1))
1010 double yfrac = yy - y1;
1012 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac));
1016 wt1 * ciCalc(suptr, x1, y1, xfra
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
71 centY = (y0 + y1 + y2) / 3.0;
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
109 // Calculate the line that goes through x1,y1 and is perpendicular to
112 double b2 = y1 - m2 * x1;
119 dy = y1 - m1 * x + b1;
124 mass = fabs( (y1 - y0) * (x2 - x0) );
129 inline void FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, argument
143 FindTriangleCentroid(x0, y0, x1, y1, x
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
192 if(y1 > yBottomCorners[0] || y2 > yBottomCorners[1]) // If either of the bottom corners is higher
194 yBottomCorners[0] = y1;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
982 int y1 = (yy >= 0.0) ? (int) yy : (int) floor(yy); local
987 inSegment(y1, sptr->height, BORDER-1))
990 double yfrac = yy - y1;
992 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac));
996 wt1 * ciCalc(suptr, x1, y1, xfra
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLCanvas.java71 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
73 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
75 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
77 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
H A DGLCanvasImpl.java56 // x1, y1, x2, y2.
186 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument
193 translate(x1, y1);
194 scale(x2 - x1, y2 - y1, 1);
302 // {x1', y1', x2', y2'} are stored in mMapPointsBuffer and also returned.
303 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { argument
306 // Multiply m and (x1 y1 0 1) to produce (x3 y3 z3 w3). z3 is unused.
307 float x3 = m[0] * x1 + m[4] * y1 + m[12];
308 float y3 = m[1] * x1 + m[5] * y1 + m[13];
309 float w3 = m[3] * x1 + m[7] * y1
[all...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLCanvasStub.java50 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {} argument
51 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {} argument

Completed in 105 milliseconds