/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | FilterCropRepresentation.java | 37 public FilterCropRepresentation(RectF crop) { argument 44 setTextId(R.string.crop); 46 setCrop(crop); 67 FilterCropRepresentation crop = (FilterCropRepresentation) rep; 68 if (mCrop.bottom != crop.mCrop.bottom 69 || mCrop.left != crop.mCrop.left 70 || mCrop.right != crop.mCrop.right 71 || mCrop.top != crop.mCrop.top) { 85 public void setCrop(RectF crop) { argument 86 if (crop 96 findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) argument 107 findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | ImageToProcess.java | 34 public final Rect crop; field in class:ImageToProcess 40 * @param crop The crop region of the image to save. Note that this is in 41 * the coordinate-space of the original image, so the crop should 42 * be performed *before* any rotation, and a crop rectangle of 46 ListenableFuture<TotalCaptureResultProxy> metadata, Rect crop) { 50 this.crop = crop; 54 * No crop. 45 ImageToProcess(ImageProxy proxy, OrientationManager.DeviceOrientation imageRotation, ListenableFuture<TotalCaptureResultProxy> metadata, Rect crop) argument
|
H A D | TaskImageContainer.java | 79 int aFormat, Rect crop) { 84 cropApplied = crop; 193 * Returns rotated crop rectangle in terms of absolute sensor crop 214 * Returns a crop rectangle whose points are a strict subset of the points 219 * @param crop an arbitrary crop rectangle; if null, the crop is assumed to 222 * with passed-in crop rectangle; a null intersection returns 225 public Rect guaranteedSafeCrop(ImageProxy image, @Nullable Rect crop) { argument 78 TaskImage(OrientationManager.DeviceOrientation anOrientation, int aWidth, int aHeight, int aFormat, Rect crop) argument 244 guaranteedSafeCrop(int width, int height, @Nullable Rect crop) argument 274 requiresCropOperation(ImageProxy image, @Nullable Rect crop) argument [all...] |
H A D | TaskConvertImageToRGBPreview.java | 198 * strange crop values. Crop is always applied before any rotation. Out-of-bound 199 * crop boundaries are accepted, but treated mathematically as intersection with 228 protected int[] colorInscribedDataCircleFromYuvImage(ImageProxy img, Rect crop, int subsample) { argument 229 crop = guaranteedSafeCrop(img, crop); 236 int inputWidth = crop.width(); 237 int inputHeight = crop.height(); 249 final int inputVerticalOffset = quantizeBy2(crop.top); 250 final int inputHorizontalOffset = quantizeBy2(crop.left); 492 * YUV data. No crop i 540 colorSubSampleFromYuvImage(ImageProxy img, Rect crop, int subsample, boolean enableSquareInscribe) argument 847 runSelectedConversion(ImageProxy img, Rect crop, int subsample) argument [all...] |
H A D | TaskCompressImageToJpeg.java | 86 Rect crop, int degrees) { 87 return JpegUtilNative.compressJpegFromYUV420Image(img, outBuf, quality, crop, degrees); 177 // to calculate the proper rotation of the crop to be applied to the 187 // calculate crop from exif info with image proxy width/height 189 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); 193 // calculate crop from exif info with combined rotation 195 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); 237 safeCrop = guaranteedSafeCrop(img.proxy, img.crop); 242 Size resultSize = getImageSizeForOrientation(img.crop.width(), 243 img.crop 85 compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, Rect crop, int degrees) argument [all...] |
H A D | TaskJpegEncode.java | 185 * @param crop Crop to be applied 189 public byte[] decompressCropAndRecompressJpegData(final byte[] jpegData, Rect crop, argument 193 final Bitmap croppedResult = Bitmap.createBitmap(original, crop.left, crop.top, 194 crop.width(), crop.height());;
|
H A D | TaskPreviewChainedJpeg.java | 64 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop);
|
H A D | TaskChainedCompressImageToJpeg.java | 52 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropObject.java | 17 package com.android.gallery3d.filtershow.crop; 192 RectF crop = mBoundedRect.getInner(); 205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; 208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; 211 dx = Math.max(crop.right + dX, crop [all...] |
H A D | CropActivity.java | 17 package com.android.gallery3d.filtershow.crop; 310 RectF crop = getBitmapCrop(photo); 311 startBitmapIO(flags, mOriginalBitmap, mSourceUri, destinationUri, crop, 425 // Set extra for crop bounds 464 // Find crop bounds (scaled to original image size) 467 Log.w(LOGTAG, "cannot find crop for full size image"); 475 Log.w(LOGTAG, "crop has bad values for full size image"); 488 Bitmap crop = null; 490 // Do region decoding to get crop bitmap 493 crop [all...] |
H A D | CropExtras.java | 17 package com.android.gallery3d.filtershow.crop;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMathUtils.java | 51 public RectF crop = FilterCropRepresentation.getNil(); field in class:GeometryMathUtils.GeometryHolder 57 crop.set(h.crop); 64 crop = FilterCropRepresentation.getNil(); 71 crop.equals(FilterCropRepresentation.getNil()) && 85 ((crop == null && h.crop == null) || (crop != null && crop.equals(h.crop))) [all...] |
H A D | ImageCrop.java | 32 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) { argument 89 mLocalRep = (crop == null) ? new FilterCropRepresentation() : crop; 98 private void internallyUpdateLocalRep(RectF crop, RectF image) { argument 100 .findNormalizedCrop(crop, (int) image.width(), (int) image.height()); 101 mGeometry.crop.set(crop); [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | JpegUtilNative.java | 42 * Compresses a YCbCr image to jpeg, applying a crop and rotation. 85 * @param cropLeft left-edge of the bounds of the image to crop to before 87 * @param cropTop top-edge of the bounds of the image to crop to before 89 * @param cropRight right-edge of the bounds of the image to crop to before 91 * @param cropBottom bottom-edge of the bounds of the image to crop to 154 "crop = [(%d, %d) - (%d, %d)]; " + 202 * @param crop The crop rectangle to apply *before* rotation. 211 Rect crop, int degrees) { 217 Preconditions.checkState(crop 210 compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, Rect crop, int degrees) argument [all...] |
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
H A D | InputStreamProvider.java | 67 // Find crop bounds (scaled to original image size) 97 Log.w(TAG, "crop has bad values for full size image"); 117 Bitmap crop = null; 119 // Do region decoding to get crop bitmap 124 crop = decoder.decodeRegion(roundedTrueCrop, options); 128 if (crop == null) { 129 // BitmapRegionDecoder has failed, try to crop in-memory 167 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, 173 if (crop == null) { 177 float[] dimsAfter = new float[] { crop [all...] |
H A D | CropAndSetWallpaperTask.java | 72 Bitmap crop = mStreamProvider.readCroppedBitmap( 74 if (crop == null) { 81 if (crop.compress(CompressFormat.JPEG, DEFAULT_COMPRESS_QUALITY, tmpOut)) {
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
H A D | ResourceWallpaperInfo.java | 32 public float getScale(Point wallpaperSize, RectF crop) { 33 return wallpaperSize.x /crop.width();
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
H A D | JpegImageBackendImageSaver.java | 172 ImageBackend imageBackend, Rect crop) { 176 mCrop = crop; 189 ImageBackend imageBackend, Executor executor, Rect crop) { 193 mCrop = crop; 170 JpegImageBackendImageSaver( ImageRotationCalculator imageRotationCalculator, ImageBackend imageBackend, Rect crop) argument 187 JpegImageBackendImageSaver( ImageRotationCalculator imageRotationCalculator, ImageBackend imageBackend, Executor executor, Rect crop) argument
|
H A D | YuvImageBackendImageSaver.java | 176 * @param crop the crop to apply. Note that crop must be done *before* any 180 ImageBackend imageBackend, Rect crop) { 183 mCrop = crop; 192 * @param crop the crop to apply. Note that crop must be done *before* any 198 ImageBackend imageBackend, Rect crop, Executor executor) { 201 mCrop = crop; 179 YuvImageBackendImageSaver(ImageRotationCalculator imageRotationCalculator, ImageBackend imageBackend, Rect crop) argument 197 YuvImageBackendImageSaver(ImageRotationCalculator imageRotationCalculator, ImageBackend imageBackend, Rect crop, Executor executor) argument [all...] |
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
H A D | WallpaperCropActivity.java | 280 RectF crop = Utils.getMaxCropRect(src.getImageWidth(), src.getImageHeight(), 282 mCropView.setScale(req.scaleAndOffsetProvider.getScale(wallpaperSize, crop)); 283 mCropView.setParallaxOffset(req.scaleAndOffsetProvider.getParallaxOffset(), crop); 334 // crop this image and scale it down to the default wallpaper size for 340 RectF crop = Utils.getMaxCropRect( 347 streamProvider, this, crop, streamProvider.getRotationFromExif(this), 356 // Get the crop 367 // Get the crop 390 // Extend the crop all the way to the right, for parallax 476 float getScale(Point wallpaperSize, RectF crop); argument [all...] |
H A D | CropView.java | 196 public void setParallaxOffset(float offset, RectF crop) { argument 199 mCenterX = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left;
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | Wallpaper.java | 31 import com.android.gallery3d.filtershow.crop.CropActivity; 32 import com.android.gallery3d.filtershow.crop.CropExtras; 111 // ignored; fallthru to existing crop activity 113 // ignored; fallthru to existing crop activity
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | BitmapUtil.java | 40 * Does not crop to fit the hinted dimensions. 67 * Also applies a center-crop a la {@link android.widget.ImageView.ScaleType#CENTER_CROP}. 80 LogUtils.w(TAG, t, "BitmapUtils unable to crop image"); 86 * Returns a new Bitmap copy with a center-crop effect a la 97 return crop(src, w, h, 0.5f, 0.5f); 101 * Returns a new Bitmap copy with a crop effect depending on the crop anchor given. 0.5f is like 102 * {@link android.widget.ImageView.ScaleType#CENTER_CROP}. The crop anchor will be be nudged 122 * @param horizontalCenterPercent determines which part of the src to crop from. Range from 0 125 * @param verticalCenterPercent determines which part of the src to crop fro 131 public static Bitmap crop(final Bitmap src, final int w, final int h, method in class:BitmapUtil [all...] |
/packages/apps/Gallery2/jni/filters/ |
H A D | geometry.c | 116 static __inline__ void crop(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight, int offsetWidth, int offsetHeight){ function 160 crop(source, srcWidth, srcHeight, destination, dstWidth, dstHeight, offsetWidth, offsetHeight);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
H A D | EditorCrop.java | 108 view.setText(mContext.getString(R.string.crop)); 160 return R.string.crop;
|