Home
last modified time | relevance | path

Searched refs:cx (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_geometry.h34 double cx,cy,m; in db_PointCentroid2D() local
36 cx=0;cy=0; in db_PointCentroid2D()
39 cx+= *X++; in db_PointCentroid2D()
45 c[0]=cx*m; in db_PointCentroid2D()
54 double cx,cy,m; in db_PointCentroid2D() local
57 cx=0;cy=0; in db_PointCentroid2D()
61 cx+=temp[0]; in db_PointCentroid2D()
67 c[0]=cx*m; in db_PointCentroid2D()
78 double cx,cy,cz,m; in db_PointCentroid3D() local
80 cx=0;cy=0;cz=0; in db_PointCentroid3D()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_geometry.h34 double cx,cy,m; in db_PointCentroid2D() local
36 cx=0;cy=0; in db_PointCentroid2D()
39 cx+= *X++; in db_PointCentroid2D()
45 c[0]=cx*m; in db_PointCentroid2D()
54 double cx,cy,m; in db_PointCentroid2D() local
57 cx=0;cy=0; in db_PointCentroid2D()
61 cx+=temp[0]; in db_PointCentroid2D()
67 c[0]=cx*m; in db_PointCentroid2D()
78 double cx,cy,cz,m; in db_PointCentroid3D() local
80 cx=0;cy=0;cz=0; in db_PointCentroid3D()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java225 void paintRadius(Canvas canvas, float cx, float cy, float rx, float ry) { in paintRadius() argument
226 if (cx == Float.NaN) { in paintRadius()
231 RectF rect = new RectF(cx - rx, cy - ry, cx + rx, cy + ry); in paintRadius()
236 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); in paintRadius()
240 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); in paintRadius()
244 Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) { in paintOvallines() argument
254 rect.left = cx - dx; in paintOvallines()
256 rect.right = cx + dx; in paintOvallines()
261 rect.left = cx - dx; in paintOvallines()
263 rect.right = cx + dx; in paintOvallines()
[all …]
DImageGrad.java143 float cx = MasterImage.getImage().getOriginalBounds().width() / 2; in setRepresentation() local
145 float rx = Math.min(cx, cy) * .4f; in setRepresentation()
147 mGradRep.setPoint1(cx, cy-rx); in setRepresentation()
148 mGradRep.setPoint2(cx, cy+rx); in setRepresentation()
149 c1[0] = cx; in setRepresentation()
154 c2[0] = cx; in setRepresentation()
DGeometryMathUtils.java360 float cx = w / 2f; in getPartialToScreenMatrix() local
363 compensation.postScale(scale, scale, cx, cy); in getPartialToScreenMatrix()
364 compensation.postRotate(angle, cx, cy); in getPartialToScreenMatrix()
365 compensation.postRotate(rotation, cx, cy); in getPartialToScreenMatrix()
366 compensation.postTranslate(-cx, -cy); in getPartialToScreenMatrix()
368 compensation.postTranslate(cx, cy); in getPartialToScreenMatrix()
DGradControl.java235 float cx = (p1x + p2x) / 2; in paintOvallines() local
248 float cx = (p1x + p2x) / 2; in fillHandles() local
250 handlex[0] = cx; in fillHandles()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java107 float cx = d.centerX() * p + s.centerX() * (1 - p); in drawEntry() local
115 mTarget.set(cx - ch / 2, cy - ch / 2, cx + ch / 2, cy + ch / 2); in drawEntry()
123 mTarget.set(cx - cw / 2, cy - ch / 2, cx - ch / 2, cy + ch / 2); in drawEntry()
128 mTarget.set(cx + ch / 2, cy - ch / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
135 mTarget.set(cx - cw / 2, cy - cw / 2, cx + cw / 2, cy + cw / 2); in drawEntry()
143 mTarget.set(cx - cw / 2, cy - ch / 2, cx + cw / 2, cy - cw / 2); in drawEntry()
148 mTarget.set(cx - cw / 2, cy + cw / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
DPhotoView.java680 float cx = r.exactCenterX(); in drawTileView() local
720 cx = interpolate(filmRatio, cxPage, cx); in drawTileView()
729 setTileViewPosition(cx, cy, viewW, viewH, imageScale); in drawTileView()
733 canvas.translate((int) (cx + 0.5f), (int) (cy + 0.5f)); in drawTileView()
748 private void setTileViewPosition(float cx, float cy, in setTileViewPosition() argument
753 int centerX = (int) (imageW / 2f + (viewW / 2f - cx) / scale + 0.5f); in setTileViewPosition()
826 int cx = wantsCardEffect in draw() local
831 canvas.translate(cx, cy); in draw()
DGLRootView.java448 int cx = w / 2; in rotateCanvas() local
450 mCanvas.translate(cx, cy); in rotateCanvas()
453 mCanvas.translate(-cy, -cx); in rotateCanvas()
455 mCanvas.translate(-cx, -cy); in rotateCanvas()
DSurfaceTextureScreenNail.java116 int cx = x + width / 2; in draw() local
118 canvas.translate(cx, cy); in draw()
120 canvas.translate(-cx, -cy); in draw()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java341 float cx = getWidth() / 2F; in zoomTo() local
344 zoomTo(scale, cx, cy); in zoomTo()
348 float cx = getWidth() / 2F; in zoomToPoint() local
351 panBy(cx - pointX, cy - pointY); in zoomToPoint()
352 zoomTo(scale, cx, cy); in zoomToPoint()
371 float cx = getWidth() / 2F; in zoomIn() local
374 mSuppMatrix.postScale(rate, rate, cx, cy); in zoomIn()
383 float cx = getWidth() / 2F; in zoomOut() local
388 tmp.postScale(1F / rate, 1F / rate, cx, cy); in zoomOut()
391 mSuppMatrix.setScale(1F, 1F, cx, cy); in zoomOut()
[all …]
DRotateBitmap.java60 int cx = mBitmap.getWidth() / 2; in getRotateMatrix() local
62 matrix.preTranslate(-cx, -cy); in getRotateMatrix()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterVignette.java61 Bitmap bitmap, int w, int h, int cx, int cy, float radx, float rady, in nativeApplyFilter() argument
64 private float calcRadius(float cx, float cy, int w, int h) { in calcRadius() argument
65 float d = cx; in calcRadius()
66 if (d < (w - cx)) { in calcRadius()
67 d = w - cx; in calcRadius()
91 float cx = w / 2; in runFilter() local
93 float r = calcRadius(cx, cy, w, h); in runFilter()
104 cx = c[0]; in runFilter()
120 mScript.set_centerx(cx); in runFilter()
/packages/apps/Launcher2/src/com/android/launcher2/
DCling.java231 int cx = -1; in dispatchDraw() local
240 cx = positions[i]; in dispatchDraw()
242 if (cx > -1 && cy > -1) { in dispatchDraw()
243 c.drawCircle(cx, cy, mRevealRadius, mErasePaint); in dispatchDraw()
244 mPunchThroughGraphic.setBounds(cx - dw/2, cy - dh/2, cx + dw/2, cy + dh/2); in dispatchDraw()
257 mHandTouchGraphic.setBounds(cx + offset, cy + offset, in dispatchDraw()
258 cx + mHandTouchGraphic.getIntrinsicWidth() + offset, in dispatchDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java119 float cx = cropBounds.centerX(); in drawWallpaperSelectionFrame() local
121 RectF r1 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2); in drawWallpaperSelectionFrame()
125 RectF r2 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2); in drawWallpaperSelectionFrame()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageView.java271 int cx = width / 2; in positionFromMatrix() local
277 cx += (mTempRectF.left / scale) - xoffset; in positionFromMatrix()
279 cx -= (mTempRectF.left / scale) - xoffset; in positionFromMatrix()
287 mRenderer.centerX = swap ? cy : cx; in positionFromMatrix()
288 mRenderer.centerY = swap ? cx : cy; in positionFromMatrix()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageView.java259 int cx = width / 2; in positionFromMatrix() local
265 cx += (mTempRectF.left / scale) - xoffset; in positionFromMatrix()
267 cx -= (mTempRectF.left / scale) - xoffset; in positionFromMatrix()
275 mRenderer.centerX = swap ? cy : cx; in positionFromMatrix()
276 mRenderer.centerY = swap ? cx : cy; in positionFromMatrix()
/packages/apps/Camera/src/com/android/camera/ui/
DPieRenderer.java643 private void setCircle(int cx, int cy) { in setCircle() argument
644 mCircle.set(cx - mCircleSize, cy - mCircleSize, in setCircle()
645 cx + mCircleSize, cy + mCircleSize); in setCircle()
646 mDial.set(cx - mCircleSize + mInnerOffset, cy - mCircleSize + mInnerOffset, in setCircle()
647 cx + mCircleSize - mInnerOffset, cy + mCircleSize - mInnerOffset); in setCircle()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Dvp_motionmodel.c343 VP_PAR cx, cy; in vp_zoom_motion2d() local
356 cx = (VP_PAR) (w/2.0); in vp_zoom_motion2d()
363 MXW(R2r)=cx*(((VP_PAR)1.0) - inv_zoom); in vp_zoom_motion2d()
/packages/apps/Camera/jni/feature_stab/src/dbreg/
Dvp_motionmodel.c343 VP_PAR cx, cy; in vp_zoom_motion2d() local
356 cx = (VP_PAR) (w/2.0); in vp_zoom_motion2d()
363 MXW(R2r)=cx*(((VP_PAR)1.0) - inv_zoom); in vp_zoom_motion2d()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java356 int cx = r.centerX(); in scaleRectAboutCenter() local
358 r.offset(-cx, -cy); in scaleRectAboutCenter()
360 r.offset(cx, cy); in scaleRectAboutCenter()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java327 final float[] cx = {0.3f, 0.3f, 0.5f, 0.7f, 0.7f}; in randMultiDrop() local
330 float x = cx[n % cx.length]; in randMultiDrop()
331 float y = cy[n % cx.length]; in randMultiDrop()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp499 double cx = sa[c].X(); in ccw() local
504 double val = (ax - cx)*(by - cy) - (bx - cx)*(ay - cy); in ccw()
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DDelaunay.cpp499 double cx = sa[c].X(); in ccw() local
504 double val = (ax - cx)*(by - cy) - (bx - cx)*(ay - cy); in ccw()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java220 final float cx = mDrawable.getIntrinsicWidth() * 0.5f; in draw() local
224 canvas.translate(px - cx, py - cy); in draw()

12