HomeSort by relevance Sort by last modified time
    Searched full:crop (Results 1 - 25 of 498) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
FilterCropRepresentation.java 29 public static final String SERIALIZATION_NAME = "CROP";
37 public FilterCropRepresentation(RectF crop) {
44 setTextId(R.string.crop);
46 setCrop(crop);
67 FilterCropRepresentation crop = (FilterCropRepresentation) rep; local
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) {
    [all...]
  /packages/apps/Camera2/src/com/android/camera/crop/
CropObject.java 17 package com.android.camera.crop;
190 RectF crop = mBoundedRect.getInner(); local
203 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left;
206 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top;
209 dx = Math.max(crop.right + dX, crop.left + minWidthHeight
    [all...]
CropActivity.java 17 package com.android.camera.crop;
59 public static final String CROP_ACTION = "com.android.camera.action.CROP";
148 * in the CROP intent.
307 RectF crop = getBitmapCrop(photo); local
308 startBitmapIO(flags, mOriginalBitmap, mSourceUri, destinationUri, crop,
422 // Set extra for crop bounds
461 // Find crop bounds (scaled to original image size)
464 Log.w(LOGTAG, "cannot find crop for full size image");
472 Log.w(LOGTAG, "crop has bad values for full size image");
485 Bitmap crop = null local
616 RectF crop = CropMath.getScaledCropBounds(cropBounds, photoBounds, imageBounds); local
686 RectF crop = mCropView.getCrop(); local
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
OpenGLSystem.java 61 public static final void setTextureCrop(int[] crop) {
63 cropSignature = (crop[0] + crop[1]) << 16;
64 cropSignature |= crop[2] + crop[3];
68 crop, 0);
MotionBlurComponent.java 35 public int[] crop = new int[4]; field in class:MotionBlurComponent.BlurRecord
77 mHistory[mCurrentStep].crop[0] = drawableCrop[0];
78 mHistory[mCurrentStep].crop[1] = drawableCrop[1];
79 mHistory[mCurrentStep].crop[2] = drawableCrop[2];
80 mHistory[mCurrentStep].crop[3] = drawableCrop[3];
100 stepImage.setCrop(record.crop[0], record.crop[1], record.crop[2], -record.crop[3]);
  /frameworks/native/opengl/tests/finish/
finish.cpp 105 GLint crop[4] = { 0, 512, 512, -512 };
106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
119 GLint crop[4] = { 0, 1, 1, -1 };
120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
133 GLint crop[4] = { 0, 512, 512, -512 };
134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
148 GLint crop[4] = { 0, 1, 1, -1 };
149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
165 GLint crop[4] = { 0, 512, 512, -512 };
166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ImageUtilsTest.java 42 BufferedImage crop = ImageUtils.cropBlank(image, null); local
43 assertNull(crop);
53 BufferedImage crop = ImageUtils.cropBlank(image, new Rect(5, 5, 80, 80)); local
54 assertNull(crop);
64 BufferedImage crop = ImageUtils.cropBlank(image, null); local
65 assertNotNull(crop);
66 assertEquals(image.getWidth(), crop.getWidth());
67 assertEquals(image.getHeight(), crop.getHeight());
79 BufferedImage crop = ImageUtils.cropBlank(image, null); local
80 assertNotNull(crop);
96 BufferedImage crop = ImageUtils.cropBlank(image, new Rect(0, 0, 100, 100)); local
113 BufferedImage crop = ImageUtils.cropBlank(image, new Rect(5, 5, 80, 80)); local
128 BufferedImage crop = ImageUtils.cropColor(image, 0xFF00FF00, null); local
139 BufferedImage crop = ImageUtils.cropColor(image, 0xFFFF0000, null); local
154 BufferedImage crop = ImageUtils.cropColor(image, 0xFF00FF00, null); local
168 BufferedImage crop = ImageUtils.cropColor(image, 0xFFFF0000, new Rect(40, 40, 0, 0)); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
CropObject.java 17 package com.android.gallery3d.filtershow.crop;
192 RectF crop = mBoundedRect.getInner(); local
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.left + minWidthHeight
    [all...]
CropActivity.java 17 package com.android.gallery3d.filtershow.crop;
62 public static final String CROP_ACTION = "com.android.camera.action.CROP";
151 * in the CROP intent.
310 RectF crop = getBitmapCrop(photo); local
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 local
619 RectF crop = CropMath.getScaledCropBounds(cropBounds, photoBounds, imageBounds); local
689 RectF crop = mCropView.getCrop(); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
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))) &
305 RectF crop = getTrueCropRect(holder, width, height); local
314 RectF crop = getTrueCropRect(holder, width, height); local
406 RectF crop = new RectF(); local
471 RectF crop = getTrueCropRect(holder, bitmapWidth, bitmapHeight); local
    [all...]
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) {
89 mLocalRep = (crop == null) ? new FilterCropRepresentation() : crop;
98 private void internallyUpdateLocalRep(RectF crop, RectF image) {
100 .findNormalizedCrop(crop, (int) image.width(), (int) image.height());
101 mGeometry.crop.set(crop);
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/media/base/
videocommon_unittest.cc 183 ComputeCrop(1280, 720, // Crop size 16:9
192 ComputeCrop(640, 360, // Crop size 16:9
200 // Request 16:9 to 4:3. Expect horizontal crop.
201 ComputeCrop(640, 480, // Crop size 4:3
209 // Request 16:9 but VGA has 3:8 pixel aspect ratio. Expect no crop.
211 ComputeCrop(640, 360, // Crop size 16:9
219 // Request 16:9 but QVGA has 15:11 pixel aspect ratio. Expect horizontal crop.
221 ComputeCrop(640, 360, // Crop size 16:9
230 // Expect horizontal crop.
232 ComputeCrop(640, 400, // Crop size 16:1
    [all...]
videoframe.h 119 // take the nearest-point. The parameter "crop" controls whether to crop this
144 // take the nearest-point. The parameter "crop" controls whether to crop this
148 size_t width, size_t height, bool interpolate, bool crop) const;
155 // nearest-point. The parameter "crop" controls whether to crop this frame to
158 bool interpolate, bool crop) const;
162 // take the nearest-point. The parameter "crop" controls whether to crop thi
    [all...]
  /hardware/qcom/display/msm8974/libhwcomposer/
hwc_utils.cpp 505 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
508 int& crop_l = crop.left;
509 int& crop_t = crop.top;
510 int& crop_r = crop.right;
511 int& crop_b = crop.bottom;
512 int crop_w = crop.right - crop.left;
513 int crop_h = crop.bottom - crop.top;
739 hwc_rect_t& crop, hwc_rect_t& dst)
891 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
983 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
BitmapUtil.java 36 * Does not crop to fit the hinted dimensions.
63 * Also applies a center-crop a la {@link android.widget.ImageView.ScaleType#CENTER_CROP}.
76 LogUtils.w(PhotoManager.TAG, t, "unable to crop image");
82 * Returns a new Bitmap copy with a center-crop effect a la
93 return crop(src, w, h, 0.5f, 0.5f);
97 * Returns a new Bitmap copy with a crop effect depending on the crop anchor given. 0.5f is like
98 * {@link android.widget.ImageView.ScaleType#CENTER_CROP}. The crop anchor will be be nudged
118 * @param horizontalCenterPercent determines which part of the src to crop from. Range from 0
121 * @param verticalCenterPercent determines which part of the src to crop from. Range from
127 public static Bitmap crop(final Bitmap src, final int w, final int h, method in class:BitmapUtil
    [all...]
  /external/chromium_org/chrome/browser/resources/file_manager/js/image_editor/
image_transform.js 8 * Crop mode.
11 ImageEditor.Mode.Crop = function() {
12 ImageEditor.Mode.call(this, 'crop', 'GALLERY_CROP');
15 ImageEditor.Mode.Crop.prototype = {__proto__: ImageEditor.Mode.prototype};
20 ImageEditor.Mode.Crop.prototype.setUp = function() {
27 this.domOverlay_.className = 'crop-overlay';
43 this.cropFrame_.className = 'crop-frame';
76 ImageEditor.Mode.Crop.prototype.reset = function() {
84 ImageEditor.Mode.Crop.prototype.positionDOM = function() {
88 var delta = ImageEditor.Mode.Crop.MOUSE_GRAB_RADIUS
    [all...]
  /frameworks/native/services/surfaceflinger/
Layer.cpp 98 mCurrentState.active.crop.makeInvalid();
239 // this is the crop rectangle that applies to the buffer
241 Rect crop; local
243 // if the buffer crop is defined, we use that
244 crop = mCurrentCrop;
247 crop = mActiveBuffer->getBounds();
249 // if we don't have a buffer yet, we use an empty/invalid crop
250 crop.makeInvalid();
252 return crop;
268 if (!s.active.crop.isEmpty())
    [all...]
  /hardware/qcom/display/msm8960/libhwcomposer/
hwc_utils.cpp 544 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
547 int& crop_l = crop.left;
548 int& crop_t = crop.top;
549 int& crop_r = crop.right;
550 int& crop_b = crop.bottom;
551 int crop_w = crop.right - crop.left;
552 int crop_h = crop.bottom - crop.top;
772 hwc_rect_t& crop, hwc_rect_t& dst)
938 hwc_rect_t crop = layer->sourceCrop; local
1019 hwc_rect_t crop = layer->sourceCrop; local
    [all...]
  /hardware/qcom/display/msm8x26/libhwcomposer/
hwc_utils.cpp 504 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
507 int& crop_l = crop.left;
508 int& crop_t = crop.top;
509 int& crop_r = crop.right;
510 int& crop_b = crop.bottom;
511 int crop_w = crop.right - crop.left;
512 int crop_h = crop.bottom - crop.top;
733 hwc_rect_t& crop, hwc_rect_t& dst)
898 hwc_rect_t crop = layer->sourceCrop; local
965 hwc_rect_t crop = layer->sourceCrop; local
    [all...]
  /hardware/samsung_slsi/exynos5/libcsc/
csc.h 210 * address of image left crop size[out]
213 * address of image top crop size[out]
255 * image left crop size[in]
258 * image top crop size[in]
296 * address of image left crop size[out]
299 * address of image top crop size[out]
341 * image left crop size[in]
344 * image top crop size[in]
  /packages/apps/UnifiedEmail/src/com/android/bitmap/
BitmapUtils.java 24 * Calculate a center-crop rectangle for the given input and output
34 * vertical crop range.
38 * center point for the crop rect. Range is from [0.0, 1.0]. To
39 * perform a vertically centered crop, use 0.5. Otherwise, see
52 * @param outRect a Rect to write the resulting crop coordinates into
  /hardware/samsung_slsi/exynos5/libv4l2/
exynos_subdev.c 216 * @brief Retrieve the crop rectangle on a pad.
219 int exynos_subdev_g_crop(int fd, struct v4l2_subdev_crop *crop)
228 if (!crop) {
229 ALOGE("%s: crop is NULL", __func__);
233 ret = ioctl(fd, VIDIOC_SUBDEV_G_CROP, crop);
243 * @brief Set the crop rectangle on a pad.
246 int exynos_subdev_s_crop(int fd, struct v4l2_subdev_crop *crop)
255 if (!crop) {
256 ALOGE("%s: crop is NULL", __func__);
260 ret = ioctl(fd, VIDIOC_SUBDEV_S_CROP, crop);
    [all...]
  /device/lge/mako/camera/QCamera/stack/mm-jpeg-interface/src/
mm_jpeg.c 293 /* check crop boundary */
294 if ((src_buf->crop.width == 0) || (src_buf->crop.height == 0) ||
295 (src_buf->crop.width + src_buf->crop.offset_x > src_buf->src_dim.width) ||
296 (src_buf->crop.height + src_buf->crop.offset_y > src_buf->src_dim.height)) {
297 CDBG_ERROR("%s: invalid crop boundary (%d, %d) offset (%d, %d) out of (%d, %d)",
299 src_buf->crop.width,
300 src_buf->crop.height
    [all...]
  /frameworks/av/media/libstagefright/codecs/on2/h264dec/
SoftAVC.cpp 232 bool SoftAVC::handleCropRectEvent(const CropParams *crop) {
233 if (mCropLeft != crop->cropLeftOffset ||
234 mCropTop != crop->cropTopOffset ||
235 mCropWidth != crop->cropOutWidth ||
236 mCropHeight != crop->cropOutHeight) {
237 mCropLeft = crop->cropLeftOffset;
238 mCropTop = crop->cropTopOffset;
239 mCropWidth = crop->cropOutWidth;
240 mCropHeight = crop->cropOutHeight;
  /system/core/libpixelflinger/
raster.cpp 146 GGLint gglBitBlit(GGLContext* con, int tmu, GGLint crop[4], GGLint where[4])
168 const GGLint Wcr = crop[2];
169 const GGLint Hcr = crop[3];
173 const GGLint Ucr = crop[0];
174 const GGLint Vcr = crop[1];
190 const GGLint Ucr = crop[0] << 16;
191 const GGLint Vcr = crop[1] << 16;
192 const GGLint Wcr = crop[2] << 16;
193 const GGLint Hcr = crop[3] << 16;

Completed in 1712 milliseconds

1 2 3 4 5 6 7 8 91011>>