Home
last modified time | relevance | path

Searched refs:crop (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterCropRepresentation.java37 public FilterCropRepresentation(RectF crop) { in FilterCropRepresentation() argument
44 setTextId(R.string.crop); in FilterCropRepresentation()
46 setCrop(crop); in FilterCropRepresentation()
67 FilterCropRepresentation crop = (FilterCropRepresentation) rep; in equals() local
68 if (mCrop.bottom != crop.mCrop.bottom in equals()
69 || mCrop.left != crop.mCrop.left in equals()
70 || mCrop.right != crop.mCrop.right in equals()
71 || mCrop.top != crop.mCrop.top) { in equals()
85 public void setCrop(RectF crop) { in setCrop() argument
86 if (crop == null) { in setCrop()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DImageActionUtils.java103 Rect crop = new Rect(); in shareImage() local
104 rectF.round(crop); in shareImage()
106 Uri uri = getImageUri(bitmap, crop, context, tag); in shareImage()
134 Rect crop, Intent intent, String tag) { in startShareActivity() argument
141 persistBitmapAndStartActivity(context, bitmap, crop, intent, in startShareActivity()
150 Rect crop, Intent intent, String tag, View sharedElement) { in startShareActivity() argument
158 crop, intent, ImageActionUtils::getShareIntentForImageUri, tag, sharedElement); in startShareActivity()
166 public static void persistBitmapAndStartActivity(Context context, Bitmap bitmap, Rect crop, in persistBitmapAndStartActivity() argument
168 persistBitmapAndStartActivity(context, bitmap, crop, intent, uriToIntentMap, tag, in persistBitmapAndStartActivity()
177 public static void persistBitmapAndStartActivity(Context context, Bitmap bitmap, Rect crop, in persistBitmapAndStartActivity() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropObject.java17 package com.android.gallery3d.filtershow.crop;
192 RectF crop = mBoundedRect.getInner(); in moveCurrentSelection() local
205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; in moveCurrentSelection()
208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveCurrentSelection()
211 dx = Math.max(crop.right + dX, crop.left + minWidthHeight) in moveCurrentSelection()
212 - crop.right; in moveCurrentSelection()
215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveCurrentSelection()
216 - crop.bottom; in moveCurrentSelection()
221 crop.left, crop.bottom in moveCurrentSelection()
224 crop.right, crop.top in moveCurrentSelection()
[all …]
DCropActivity.java17 package com.android.gallery3d.filtershow.crop;
310 RectF crop = getBitmapCrop(photo); in startFinishOutput() local
311 startBitmapIO(flags, mOriginalBitmap, mSourceUri, destinationUri, crop, in startFinishOutput()
488 Bitmap crop = null; in doInBackground() local
493 crop = decoder.decodeRegion(roundedTrueCrop, options); in doInBackground()
497 if (crop == null) { in doInBackground()
505 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in doInBackground()
511 if (crop == null) { in doInBackground()
518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in doInBackground()
530 c.drawBitmap(crop, m, new Paint()); in doInBackground()
[all …]
DCropView.java17 package com.android.gallery3d.filtershow.crop;
116 RectF crop = mCropObj.getInnerBounds(); in initialize() local
118 if (crop != newCropBounds || containing != newPhotoBounds in initialize()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskImageContainer.java79 int aFormat, Rect crop) { in TaskImage() argument
84 cropApplied = crop; in TaskImage()
225 public Rect guaranteedSafeCrop(ImageProxy image, @Nullable Rect crop) { in guaranteedSafeCrop() argument
226 return guaranteedSafeCrop(image.getWidth(), image.getHeight(), crop); in guaranteedSafeCrop()
244 public Rect guaranteedSafeCrop(int width, int height, @Nullable Rect crop) { in guaranteedSafeCrop() argument
245 if (crop == null) { in guaranteedSafeCrop()
248 Rect safeCrop = new Rect(crop); in guaranteedSafeCrop()
249 if (crop.top > crop.bottom || crop.left > crop.right || crop.width() <= 0 in guaranteedSafeCrop()
250 || crop.height() <= 0) { in guaranteedSafeCrop()
274 public boolean requiresCropOperation(ImageProxy image, @Nullable Rect crop) { in requiresCropOperation() argument
[all …]
DTaskConvertImageToRGBPreview.java228 protected int[] colorInscribedDataCircleFromYuvImage(ImageProxy img, Rect crop, int subsample) { in colorInscribedDataCircleFromYuvImage() argument
229 crop = guaranteedSafeCrop(img, crop); in colorInscribedDataCircleFromYuvImage()
236 int inputWidth = crop.width(); in colorInscribedDataCircleFromYuvImage()
237 int inputHeight = crop.height(); in colorInscribedDataCircleFromYuvImage()
249 final int inputVerticalOffset = quantizeBy2(crop.top); in colorInscribedDataCircleFromYuvImage()
250 final int inputHorizontalOffset = quantizeBy2(crop.left); in colorInscribedDataCircleFromYuvImage()
540 protected int[] colorSubSampleFromYuvImage(ImageProxy img, Rect crop, int subsample, in colorSubSampleFromYuvImage() argument
542 crop = guaranteedSafeCrop(img, crop); in colorSubSampleFromYuvImage()
549 int inputWidth = crop.width(); in colorSubSampleFromYuvImage()
550 int inputHeight = crop.height(); in colorSubSampleFromYuvImage()
[all …]
DImageToProcess.java34 public final Rect crop; field in ImageToProcess
46 ListenableFuture<TotalCaptureResultProxy> metadata, Rect crop) { in ImageToProcess() argument
50 this.crop = crop; in ImageToProcess()
DTaskCompressImageToJpeg.java88 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument
89 return JpegUtilNative.compressJpegFromYUV420Image(img, outBuf, quality, crop, degrees); in compressJpegFromYUV420Image()
190 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); in run()
196 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); in run()
238 safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run()
243 Size resultSize = getImageSizeForOrientation(img.crop.width(), in run()
244 img.crop.height(), in run()
285 img.crop, inputImage.orientation.getDegrees()); in run()
304 img.crop, inputImage.orientation.getDegrees()); in run()
DTaskJpegEncode.java189 public byte[] decompressCropAndRecompressJpegData(final byte[] jpegData, Rect crop, in decompressCropAndRecompressJpegData() argument
193 final Bitmap croppedResult = Bitmap.createBitmap(original, crop.left, crop.top, in decompressCropAndRecompressJpegData()
194 crop.width(), crop.height());; in decompressCropAndRecompressJpegData()
DTaskPreviewChainedJpeg.java64 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java51 public RectF crop = FilterCropRepresentation.getNil(); field in GeometryMathUtils.GeometryHolder
57 crop.set(h.crop); in set()
64 crop = FilterCropRepresentation.getNil(); in wipe()
71 crop.equals(FilterCropRepresentation.getNil()) && in isNil()
85 ((crop == null && h.crop == null) || (crop != null && crop.equals(h.crop))) && in equals()
92 + ",straighten:" + straighten + ",crop:" + crop.toString() in toString()
273 ((FilterCropRepresentation) r).getCrop(out.crop); in unpackGeometry()
305 RectF crop = getTrueCropRect(holder, width, height); in finalGeometryRect() local
307 crop.roundOut(frame); in finalGeometryRect()
314 RectF crop = getTrueCropRect(holder, width, height); in applyFullGeometryMatrix() local
[all …]
DImageCrop.java32 import com.android.gallery3d.filtershow.crop.CropDrawingUtils;
33 import com.android.gallery3d.filtershow.crop.CropMath;
34 import com.android.gallery3d.filtershow.crop.CropObject;
88 public void setFilterCropRepresentation(FilterCropRepresentation crop) { in setFilterCropRepresentation() argument
89 mLocalRep = (crop == null) ? new FilterCropRepresentation() : crop; in setFilterCropRepresentation()
98 private void internallyUpdateLocalRep(RectF crop, RectF image) { in internallyUpdateLocalRep() argument
100 .findNormalizedCrop(crop, (int) image.width(), (int) image.height()); in internallyUpdateLocalRep()
101 mGeometry.crop.set(crop); in internallyUpdateLocalRep()
103 mLocalRep.setCrop(crop); in internallyUpdateLocalRep()
237 || !mLocalRep.getCrop().equals(mUpdateHolder.crop)) { in forceStateConsistency()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java211 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument
217 Preconditions.checkState(crop.left < crop.right, "Invalid crop rectangle: " + in compressJpegFromYUV420Image()
218 crop.toString()); in compressJpegFromYUV420Image()
219 Preconditions.checkState(crop.top < crop.bottom, "Invalid crop rectangle: " + in compressJpegFromYUV420Image()
220 crop.toString()); in compressJpegFromYUV420Image()
243 int cropLeft = crop.left; in compressJpegFromYUV420Image()
247 int cropRight = crop.right; in compressJpegFromYUV420Image()
251 int cropTop = crop.top; in compressJpegFromYUV420Image()
255 int cropBot = crop.bottom; in compressJpegFromYUV420Image()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DImageActionsApi.java66 public void shareWithExplicitIntent(@Nullable Rect crop, Intent intent) { in shareWithExplicitIntent() argument
67 addImageAndSendIntent(crop, intent, false, null /* exceptionCallback */); in shareWithExplicitIntent()
76 public void shareAsDataWithExplicitIntent(@Nullable Rect crop, Intent intent, in shareAsDataWithExplicitIntent() argument
78 addImageAndSendIntent(crop, intent, true, exceptionCallback); in shareAsDataWithExplicitIntent()
81 private void addImageAndSendIntent(@Nullable Rect crop, Intent intent, boolean setData, in addImageAndSendIntent() argument
91 bitmap, crop, intent, (uri, intentForUri) -> { in addImageAndSendIntent()
107 public void startShareActivity(Rect crop) { in startShareActivity() argument
108 ImageActionUtils.startShareActivity(mContext, mBitmapSupplier, crop, null, TAG); in startShareActivity()
DLauncherSwipeHandlerV2.java232 Rect crop = new Rect();
239 tvs.getCurrentCropRect().roundOut(crop);
240 Size windowSize = new Size(crop.width(), crop.height());
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java677 Rect crop = new Rect(); in getOpeningWindowAnimators() local
710 crop.set(left, top, right, bottom); in getOpeningWindowAnimators()
748 ? Math.max(crop.width(), crop.height()) / 2f in getOpeningWindowAnimators()
795 crop.set(left, top, right, bottom); in getOpeningWindowAnimators()
797 final int windowCropWidth = crop.width(); in getOpeningWindowAnimators()
798 final int windowCropHeight = crop.height(); in getOpeningWindowAnimators()
800 Utilities.rotateBounds(crop, mDeviceProfile.widthPx, in getOpeningWindowAnimators()
819 float windowTransX0 = tmpRectF.left - offsetX - crop.left * scale; in getOpeningWindowAnimators()
820 float windowTransY0 = tmpRectF.top - offsetY - crop.top * scale; in getOpeningWindowAnimators()
864 .setWindowCrop(crop) in getOpeningWindowAnimators()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DJpegImageBackendImageSaver.java172 ImageBackend imageBackend, Rect crop) { in JpegImageBackendImageSaver() argument
176 mCrop = crop; in JpegImageBackendImageSaver()
189 ImageBackend imageBackend, Executor executor, Rect crop) { in JpegImageBackendImageSaver() argument
193 mCrop = crop; in JpegImageBackendImageSaver()
DYuvImageBackendImageSaver.java180 ImageBackend imageBackend, Rect crop) { in YuvImageBackendImageSaver() argument
183 mCrop = crop; in YuvImageBackendImageSaver()
198 ImageBackend imageBackend, Rect crop, Executor executor) { in YuvImageBackendImageSaver() argument
201 mCrop = crop; in YuvImageBackendImageSaver()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DWallpaper.java31 import com.android.gallery3d.filtershow.crop.CropActivity;
32 import com.android.gallery3d.filtershow.crop.CropExtras;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorCrop.java108 view.setText(mContext.getString(R.string.crop)); in openUtilityPanel()
160 return R.string.crop; in getTextId()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java38 import com.android.gallery3d.filtershow.crop.CropActivity;
39 import com.android.gallery3d.filtershow.crop.CropExtras;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/
DSubsamplingScaleImageViewUtil.kt27 onNewCrop: (crop: Rect, zoom: Float) -> Unit in setOnNewCropListener()
/packages/apps/Gallery2/jni/filters/
Dgeometry.c118 static __inline__ void crop(uint8_t * source, int srcWidth, int srcHeight, uint8_t * destination, i… in crop() function
159 crop(source, srcWidth, srcHeight, destination, dstWidth, dstHeight, offsetWidth, offsetHeight); in JNIFUNCF()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DImagePreviewFragment.java403 Point crop = new Point(cropWidth, cropHeight); in setDefaultWallpaperZoomAndScroll() local
405 WallpaperCropUtils.calculateVisibleRect(mRawWallpaperSize, crop); in setDefaultWallpaperZoomAndScroll()
423 visibleRawWallpaperSize, crop); in setDefaultWallpaperZoomAndScroll()

12