Searched refs:GeometryMathUtils (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageMirror.java27 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
69 GeometryMathUtils.initializeHolder(mDrawHolder, mLocalRep);
70 GeometryMathUtils.drawTransformedCropped(mDrawHolder, canvas, image, getWidth(),
H A DImageRotate.java27 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
73 GeometryMathUtils.initializeHolder(mDrawHolder, mLocalRep);
74 GeometryMathUtils.drawTransformedCropped(mDrawHolder, canvas, image, canvas.getWidth(),
H A DImageStraighten.java37 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
216 if (GeometryMathUtils.needsDimensionSwap(h.rotation)) {
225 float scale = GeometryMathUtils.scale(iw, ih, viewWidth, viewHeight);
226 scale *= GeometryMathUtils.SHOW_SCALE;
227 GeometryMathUtils.scaleRect(tmp, scale);
231 Matrix m1 = GeometryMathUtils.getFullGeometryToScreenMatrix(h, imageWidth,
249 GeometryMathUtils.initializeHolder(mDrawHolder, mLocalRep);
257 Matrix m = GeometryMathUtils.getFullGeometryToScreenMatrix(mDrawHolder, imageWidth,
H A DImageCrop.java37 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils.GeometryHolder;
90 GeometryMathUtils.initializeHolder(mUpdateHolder, mLocalRep);
186 if (GeometryMathUtils.needsDimensionSwap(mGeometry.rotation)) {
269 mDisplayMatrix = GeometryMathUtils.getFullGeometryToScreenMatrix(mGeometry,
273 mDisplayCropMatrix = GeometryMathUtils.getFullGeometryToScreenMatrix(mGeometry,
H A DGeometryMathUtils.java41 public final class GeometryMathUtils { class
42 private static final String TAG = "GeometryMathUtils";
45 private GeometryMathUtils() {}; method in class:GeometryMathUtils
334 return GeometryMathUtils.getOriginalToScreen(h, reflectRotation, bmapDimens.width(),
444 if (GeometryMathUtils.needsDimensionSwap(holder.rotation)) {
448 float scale = GeometryMathUtils.scale(bw, bh, viewWidth, viewHeight);
472 float scale = GeometryMathUtils.scale(crop.width(), crop.height(), viewWidth, viewHeight);
474 GeometryMathUtils.scaleRect(crop, scale);
H A DMasterImage.java586 GeometryMathUtils.GeometryHolder holder = GeometryMathUtils.unpackGeometry(
588 m = GeometryMathUtils.getCropSelectionToScreenMatrix(null, holder,
623 Matrix m = GeometryMathUtils.getImageToScreenMatrix(mPreset.getGeometryFilters(),
H A DImageShow.java228 Matrix m = GeometryMathUtils.getImageToScreenMatrix(master.getPreset().getGeometryFilters(),
450 GeometryMathUtils.GeometryHolder holder = null;
451 holder = GeometryMathUtils.unpackGeometry(geometry);
492 float scale = GeometryMathUtils.scale(imageWidth, imageHeight,
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilter.java25 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
91 return GeometryMathUtils.getImageToScreenMatrix(getEnvironment().getImagePreset()
H A DFilterMirrorRepresentation.java26 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DCropMath.java23 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
100 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right);
101 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom);
122 float mag = GeometryMathUtils.vectorLength(
123 GeometryMathUtils.shortestVectorFromPointToLine(point, line));
H A DCropObject.java22 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
236 float[] bUnit = GeometryMathUtils.normalize(b);
237 float sp = GeometryMathUtils.scalarProjection(disp, bUnit);
H A DBoundedRect.java22 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
137 GeometryMathUtils.shortestVectorFromPointToLine(badCorner, nearestSide);
198 float[] p = GeometryMathUtils.lineIntersect(pathOfCorner, outerSide);
291 float[] p = GeometryMathUtils.lineIntersect(l1, l2);
/packages/apps/Camera2/src/com/android/camera/crop/
H A DCropMath.java98 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right);
99 array[x + 1] = GeometryMathUtils.clamp(array[x + 1], imageBound.top, imageBound.bottom);
120 float mag = GeometryMathUtils.vectorLength(
121 GeometryMathUtils.shortestVectorFromPointToLine(point, line));
H A DGeometryMathUtils.java42 public final class GeometryMathUtils { class
43 private static final String TAG = "GeometryMathUtils";
46 private GeometryMathUtils() {}; method in class:GeometryMathUtils
H A DBoundedRect.java135 GeometryMathUtils.shortestVectorFromPointToLine(badCorner, nearestSide);
196 float[] p = GeometryMathUtils.lineIntersect(pathOfCorner, outerSide);
289 float[] p = GeometryMathUtils.lineIntersect(l1, l2);
H A DCropObject.java234 float[] bUnit = GeometryMathUtils.normalize(b);
235 float sp = GeometryMathUtils.scalarProjection(disp, bUnit);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
H A DCacheProcessing.java24 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
111 cacheBitmap = GeometryMathUtils.applyGeometryRepresentations(geometry, cacheBitmap);
H A DImagePreset.java40 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
467 return GeometryMathUtils.finalGeometryRect(width, height, getGeometryFilters());
474 Bitmap bmp = GeometryMathUtils.applyGeometryRepresentations(
H A DCachingPipeline.java35 import com.android.gallery3d.filtershow.imageshow.GeometryMathUtils;
413 return GeometryMathUtils.applyGeometryRepresentations(preset.getGeometryFilters(), bitmap);

Completed in 888 milliseconds