Home
last modified time | relevance | path

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

12

/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/Camera2/src/com/android/camera/util/
DDebugBoundsRenderer.java48 public static void drawBounds(Canvas canvas, Paint paint, float size, float x1, float y1, in drawBounds() argument
52 canvas.drawLine(x1, y1, x1 + size, y1, paint); in drawBounds()
54 canvas.drawLine(x1, y1, x1, y1 + size, paint); in drawBounds()
70 canvas.drawLine(x1, y2, x1 + size, y2, paint); in drawBounds()
72 canvas.drawLine(x1, y2 - size, x1, y2, paint); in drawBounds()
75 float cX = (x1 + x2) / 2; in drawBounds()
/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()
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_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_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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h89 static inline float getSquaredDistanceFloat(const float x1, const float y1, const float x2, in getSquaredDistanceFloat() argument
91 return GeometryUtils::SQUARE_FLOAT(x1 - x2) + GeometryUtils::SQUARE_FLOAT(y1 - y2); in getSquaredDistanceFloat()
95 const float x1, const float y1, const float x2, const float y2, const bool extend) { in pointToLineSegSquaredDistanceFloat() argument
96 const float ray1x = x - x1; in pointToLineSegSquaredDistanceFloat()
98 const float ray2x = x2 - x1; in pointToLineSegSquaredDistanceFloat()
106 return getSquaredDistanceFloat(x, y, x1, y1); in pointToLineSegSquaredDistanceFloat()
113 projectionX = x1; in pointToLineSegSquaredDistanceFloat()
119 projectionX = x1 + projectionLengthSqr * ray2x; 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()
52 static AK_FORCE_INLINE int getDistanceInt(const int x1, const int y1, const int x2, in getDistanceInt() argument
54 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2))); in getDistanceInt()
/packages/apps/DevCamera/src/com/android/devcamera/
DPreviewOverlay.java175 float x1 = (0.92f * mLens + 0.04f) * previewW; in onDraw() local
178 canvas.drawCircle(x1, y1, 20, mPaint2); in onDraw()
180 canvas.drawCircle(x1, y1, 18, mPaint2); in onDraw()
235 float x1, x2, y1, y2; in onDraw() local
254 x1 = 0; in onDraw()
257 canvas.drawLine(x1, y1, x2, y2, mPaint); in onDraw()
262 x1 = x2 = previewW / 2 + focalLengthW * (float) Math.tan(i); in onDraw()
265 canvas.drawLine(x1, y1, x2, y2, mPaint); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java50 double x1 = cur[0]; in calculatetCurve() local
57 double delta = (x2 - x1); in calculatetCurve()
59 double b = (x - x1) / delta; in calculatetCurve()
91 double x1 = cur[0]; in getValue() local
98 double delta = (x2 - x1); in getValue()
100 double b = (x - x1) / delta; in getValue()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dbiginteger.h263 uint64_t x0 = a0 * b0, x1 = a0 * b1, x2 = a1 * b0, x3 = a1 * b1; in MulAdd64()
264 x1 += (x0 >> 32); // can't give carry in MulAdd64()
265 x1 += x2; in MulAdd64()
266 if (x1 < x2) in MulAdd64()
268 uint64_t lo = (x1 << 32) + (x0 & 0xFFFFFFFF); in MulAdd64()
269 uint64_t hi = x3 + (x1 >> 32); in MulAdd64()
/packages/services/Car/car-lib/api/released/
D2.txt34 field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1
35 field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1
86 field public static final int FLAG_BROWSABLE = 1; // 0x1
99 field public static final int WIDGET_CHECKBOX = 1; // 0x1
188 field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1
194 field public static final int GEAR_FIRST = 1; // 0x1
206 field public static final int IGNITION_STATE_LOCK = 1; // 0x1
211 field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1
213 field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1
236 field public static final int SENSOR_RATE_FAST = 1; // 0x1
[all …]
D1.txt22 field public static final int VERSION = 1; // 0x1
34 field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1
35 field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1
86 field public static final int FLAG_BROWSABLE = 1; // 0x1
99 field public static final int WIDGET_CHECKBOX = 1; // 0x1
188 field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1
194 field public static final int GEAR_FIRST = 1; // 0x1
205 field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1
207 field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1
230 field public static final int SENSOR_RATE_FAST = 1; // 0x1
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java183 double x1 = cur.x; in getAppliedCurve() local
190 double delta = (x2 - x1); in getAppliedCurve()
192 double b = (x - x1) / delta; in getAppliedCurve()
277 double x1 = points[i].x; in draw() local
282 for (double x = x1; x < x2; x += 20) { in draw()
285 double delta = (x2 - x1); in draw()
287 double b = (x - x1) / delta; in draw()
DGeometryMathUtils.java129 float x1 = line[0]; in shortestVectorFromPointToLine() local
133 float xdelt = x2 - x1; in shortestVectorFromPointToLine()
137 float u = ((point[0] - x1) * xdelt + (point[1] - y1) * ydelt) in shortestVectorFromPointToLine()
140 (x1 + u * (x2 - x1)), (y1 + u * (y2 - y1)) in shortestVectorFromPointToLine()
/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/services/Car/car-lib/api/
Dcurrent.txt53 field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1
54 field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1
94 field public static final int J1772 = 1; // 0x1
116 field public static final int UNLEADED = 1; // 0x1
121 field public static final int FRONT_LEFT = 1; // 0x1
131 field public static final int SEAT_ROW_1_LEFT = 1; // 0x1
311 field public static final int UX_RESTRICTIONS_NO_DIALPAD = 1; // 0x1
363 field public static final int VEHICLE_PROPERTY_ACCESS_READ = 1; // 0x1
367 field public static final int VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE = 1; // 0x1
382 field public static final int STATUS_UNAVAILABLE = 1; // 0x1
[all …]
Dsystem-current.txt9 field public static final int RESULT_DEVICE_NOT_SUPPORTED = 1; // 0x1
80 field public static final int KEY_EVENT_VOICE_SEARCH_SHORT_PRESS_KEY_UP = 1; // 0x1
82 field @Deprecated public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1
96 field public static final int ERROR_NO_CHANNEL = 1; // 0x1
111 field public static final int DOOR_ROW_1_LEFT = 1; // 0x1
121 field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1
126 field public static final int WHEEL_LEFT_FRONT = 1; // 0x1
134 field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1
148 field public static final int READ = 1; // 0x1
167 field public static final int METER_PER_SEC = 1; // 0x1
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java193 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { in drawLine() argument
200 translate(x1, y1); in drawLine()
201 scale(x2 - x1, y2 - y1, 1); in drawLine()
317 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { in mapPoints() argument
321 float x3 = m[0] * x1 + m[4] * y1 + m[12]; in mapPoints()
322 float y3 = m[1] * x1 + m[5] * y1 + m[13]; in mapPoints()
323 float w3 = m[3] * x1 + m[7] * y1 + m[15]; in mapPoints()
DGLCanvas.java85 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); in drawLine() argument
89 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); in drawRect() argument
/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/Messaging/src/com/android/messaging/util/
DCubicBezierInterpolator.java31 public CubicBezierInterpolator(final float x1, final float y1, final float x2, final float y2) { in CubicBezierInterpolator() argument
32 mX1 = x1; in CubicBezierInterpolator()
/packages/modules/Cronet/api/
Dcurrent.txt37 field public static final int HTTP_CACHE_IN_MEMORY = 1; // 0x1
63 field public static final int ERROR_HOSTNAME_NOT_RESOLVED = 1; // 0x1
122 field public static final int REQUEST_PRIORITY_LOWEST = 1; // 0x1
152 field public static final int WAITING_FOR_STALLED_SOCKET_POOL = 1; // 0x1
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java470 private static float dist(float x0, float y0, float x1, float y1) { in dist() argument
471 return (float) Math.hypot(x1 - x0, y1 - y0); in dist()
499 private static float weight(float x0, float y0, float x1, float y1, float pow) { in weight() argument
500 float d = dist(x0, y0, x1, y1); in weight()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DDynamicGridKeyboard.java234 public void updateCoordinates(final int x0, final int y0, final int x1, final int y1) { in updateCoordinates() argument
237 getHitBox().set(x0, y0, x1, y1); in updateCoordinates()

12