Home
last modified time | relevance | path

Searched refs:GeometryMathUtils (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageStraighten.java37 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
216 if (GeometryMathUtils.needsDimensionSwap(h.rotation)) { in updateCurrentCrop()
225 float scale = GeometryMathUtils.scale(iw, ih, viewWidth, viewHeight); in updateCurrentCrop()
226 scale *= GeometryMathUtils.SHOW_SCALE; in updateCurrentCrop()
227 GeometryMathUtils.scaleRect(tmp, scale); in updateCurrentCrop()
231 Matrix m1 = GeometryMathUtils.getFullGeometryToScreenMatrix(h, imageWidth, in updateCurrentCrop()
249 GeometryMathUtils.initializeHolder(mDrawHolder, mLocalRep); in onDraw()
257 Matrix m = GeometryMathUtils.getFullGeometryToScreenMatrix(mDrawHolder, imageWidth, in onDraw()
DImageRotate.java27 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
73 GeometryMathUtils.initializeHolder(mDrawHolder, mLocalRep); in onDraw()
74 GeometryMathUtils.drawTransformedCropped(mDrawHolder, canvas, image, canvas.getWidth(), in onDraw()
DImageMirror.java27 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
69 GeometryMathUtils.initializeHolder(mDrawHolder, mLocalRep); in onDraw()
70 GeometryMathUtils.drawTransformedCropped(mDrawHolder, canvas, image, getWidth(), in onDraw()
DGeometryMathUtils.java41 public final class GeometryMathUtils { class
45 private GeometryMathUtils() {}; in GeometryMathUtils() method in GeometryMathUtils
334 return GeometryMathUtils.getOriginalToScreen(h, reflectRotation, bmapDimens.width(), in getImageToScreenMatrix()
444 if (GeometryMathUtils.needsDimensionSwap(holder.rotation)) { in getFullGeometryToScreenMatrix()
448 float scale = GeometryMathUtils.scale(bw, bh, viewWidth, viewHeight); in getFullGeometryToScreenMatrix()
472 float scale = GeometryMathUtils.scale(crop.width(), crop.height(), viewWidth, viewHeight); in getCropSelectionToScreenMatrix()
474 GeometryMathUtils.scaleRect(crop, scale); in getCropSelectionToScreenMatrix()
DImageCrop.java37 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
90 GeometryMathUtils.initializeHolder(mUpdateHolder, mLocalRep); in setFilterCropRepresentation()
186 if (GeometryMathUtils.needsDimensionSwap(mGeometry.rotation)) { in applyAspect()
269 mDisplayMatrix = GeometryMathUtils.getFullGeometryToScreenMatrix(mGeometry, in onDraw()
273 mDisplayCropMatrix = GeometryMathUtils.getFullGeometryToScreenMatrix(mGeometry, in onDraw()
DPrimaryImage.java586 GeometryMathUtils.GeometryHolder holder = GeometryMathUtils.unpackGeometry( in computeImageToScreen()
588 m = GeometryMathUtils.getCropSelectionToScreenMatrix(null, holder, in computeImageToScreen()
623 Matrix m = GeometryMathUtils.getImageToScreenMatrix(mPreset.getGeometryFilters(), in getImageToScreenMatrix()
DImageShow.java228 Matrix m = GeometryMathUtils.getImageToScreenMatrix( in getImageToScreenMatrix()
452 GeometryMathUtils.GeometryHolder holder = null; in drawImageAndAnimate()
453 holder = GeometryMathUtils.unpackGeometry(geometry); in drawImageAndAnimate()
494 float scale = GeometryMathUtils.scale(imageWidth, imageHeight, in computeImageBounds()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropMath.java23 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
100 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right); in getEdgePoints()
101 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom); in getEdgePoints()
122 float mag = GeometryMathUtils.vectorLength( in closestSide()
123 GeometryMathUtils.shortestVectorFromPointToLine(point, line)); in closestSide()
DBoundedRect.java22 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
137 GeometryMathUtils.shortestVectorFromPointToLine(badCorner, nearestSide); in moveInner()
198 float[] p = GeometryMathUtils.lineIntersect(pathOfCorner, outerSide); in resizeInner()
291 float[] p = GeometryMathUtils.lineIntersect(l1, l2); in fixedAspectResizeInner()
DCropObject.java22 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
236 float[] bUnit = GeometryMathUtils.normalize(b); in moveCurrentSelection()
237 float sp = GeometryMathUtils.scalarProjection(disp, bUnit); in moveCurrentSelection()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilter.java25 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
91 return GeometryMathUtils.getImageToScreenMatrix(getEnvironment().getImagePreset() in getOriginalToScreenMatrix()
DFilterMirrorRepresentation.java26 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DCacheProcessing.java24 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
111 cacheBitmap = GeometryMathUtils.applyGeometryRepresentations(geometry, cacheBitmap); in apply()
DImagePreset.java40 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
467 return GeometryMathUtils.finalGeometryRect(width, height, getGeometryFilters()); in finalGeometryRect()
474 Bitmap bmp = GeometryMathUtils.applyGeometryRepresentations( in applyGeometry()
DCachingPipeline.java35 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
414 return GeometryMathUtils.applyGeometryRepresentations(preset.getGeometryFilters(), bitmap); in renderGeometryIcon()