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

1 2 3 4 5

  /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]);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
CropObject.java 17 package com.android.gallery3d.filtershow.crop;
193 RectF crop = mBoundedRect.getInner(); local
206 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left;
209 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top;
212 dx = Math.max(crop.right + dX, crop.left + minWidthHeight
    [all...]
CropActivity.java 17 package com.android.gallery3d.filtershow.crop;
60 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...]
  /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...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
ImageCrop.java 36 import com.android.gallery3d.filtershow.crop.BoundedRect;
37 import com.android.gallery3d.filtershow.crop.CropExtras;
38 import com.android.gallery3d.filtershow.crop.CropMath;
74 // Offset between crop center and photo center
116 return getContext().getString(R.string.crop);
129 * Set tolerance for crop marker selection (in pixels)
136 * Set minimum side length for crop box (in pixels)
254 // if photo is smaller than minimum, refuse to set crop bounds
259 // if incoming crop is smaller than minimum, refuse to set crop bound
364 RectF crop = mBounded.getInner(); local
488 RectF crop = getLocalCropBounds(); local
577 RectF crop = drawTransformed(canvas, image, gPaint, mOffset); local
    [all...]
GeometryMetadata.java 25 import com.android.gallery3d.filtershow.crop.CropExtras;
146 // If no crop has been applied, make sure to use the exact size values.
358 public static Matrix buildPhotoMatrix(RectF photo, RectF crop, float rotation,
363 m.postRotate(rotation, crop.centerX(), crop.centerY());
368 public static Matrix buildCropMatrix(RectF crop, float rotation) {
370 m.setRotate(rotation, crop.centerX(), crop.centerY());
395 // If no crop has been applied, make sure to use the exact size values.
423 * straighten angle, mirrors it about the crop center, and rotates it abou
    [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...]
  /frameworks/native/services/surfaceflinger/
Layer.cpp 95 mCurrentState.active.crop.makeInvalid();
252 // this is the crop rectangle that applies to the buffer
254 Rect crop; local
256 // if the buffer crop is defined, we use that
257 crop = mCurrentCrop;
260 crop = mActiveBuffer->getBounds();
262 // if we don't have a buffer yet, we use an empty/invalid crop
263 crop.makeInvalid();
265 return crop;
275 if (!s.active.crop.isEmpty())
    [all...]
  /frameworks/native/include/gui/
IGraphicBufferProducer.h 106 const Rect& crop, int scalingMode, uint32_t transform,
108 : timestamp(timestamp), crop(crop), scalingMode(scalingMode),
114 *outCrop = crop;
130 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput
  /device/lge/mako/camera/QCamera/stack/mm-camera-test/src/
mm_qcamera_display.c 178 common_crop_t *crop = (common_crop_t *) (frame->cropinfo); local
204 if (crop->in2_w != 0 || crop->in2_h != 0) {
206 e->src_rect.x = (crop->out2_w - crop->in2_w + 1) / 2 - 1;
208 e->src_rect.y = (crop->out2_h - crop->in2_h + 1) / 2 - 1;
210 e->src_rect.w = crop->in2_w;
211 e->src_rect.h = crop->in2_h;
460 int v4l2_render(int frame_fd, struct v4l2_buffer *vb, struct v4l2_crop *crop)
517 common_crop_t *crop; local
    [all...]
  /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;
  /hardware/qcom/display/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)
937 hwc_rect_t crop = layer->sourceCrop; local
1004 hwc_rect_t crop = layer->sourceCrop; local
    [all...]
  /hardware/samsung_slsi/exynos5/include/
exynos_v4l2.h 80 int exynos_v4l2_cropcap(int fd, struct v4l2_cropcap *crop);
82 int exynos_v4l2_g_crop(int fd, struct v4l2_crop *crop);
84 int exynos_v4l2_s_crop(int fd, struct v4l2_crop *crop);
112 int exynos_subdev_g_crop(int fd, struct v4l2_subdev_crop *crop);
114 int exynos_subdev_s_crop(int fd, struct v4l2_subdev_crop *crop);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterGeometry.java 27 import com.android.gallery3d.filtershow.crop.CropExtras;
95 RectF crop = mGeometry.getCropBounds(bitmap); local
96 if (crop.width() > 0 && crop.height() > 0)
97 cropBounds = GeometryMath.roundNearest(crop);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
EditorCrop.java 29 import com.android.gallery3d.filtershow.crop.CropExtras;
72 view.setText(mContext.getString(R.string.crop));
108 return R.string.crop;
  /external/chromium/third_party/libjingle/source/talk/session/phone/
mediachannel.h 299 // take the nearest-point. The parameter "crop" controls whether to crop this
304 bool interpolate, bool crop) const = 0;
311 // nearest-point. The parameter "crop" controls whether to crop this frame to
314 bool interpolate, bool crop) const = 0;
318 // take the nearest-point. The parameter "crop" controls whether to crop this
321 bool crop) const = 0;
325 // just take the nearest-point. The parameter "crop" controls whether to cro
    [all...]
  /frameworks/native/include/private/gui/
LayerState.h 60 crop.makeInvalid();
85 Rect crop; member in struct:android::layer_state_t
  /hardware/ti/omap4xxx/hwc/
hwc.c 219 c->width, c->height, c->crop.x, c->crop.y,
220 c->crop.w, c->crop.h,
444 oc->crop.w = oc->win.w = width;
445 oc->crop.h = oc->win.h = height;
483 /* crop */
484 oc->crop.x = layer->sourceCrop.left;
485 oc->crop.y = layer->sourceCrop.top;
486 oc->crop.w = WIDTH(layer->sourceCrop)
597 } crop, win; local
    [all...]
  /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...]
exynos_v4l2.c 607 int exynos_v4l2_cropcap(int fd, struct v4l2_cropcap *crop)
618 if (!crop) {
619 ALOGE("%s: crop is NULL", __func__);
623 if (__v4l2_check_buf_type(crop->type) == false) {
628 ret = ioctl(fd, VIDIOC_CROPCAP, crop);
639 int exynos_v4l2_g_crop(int fd, struct v4l2_crop *crop)
650 if (!crop) {
651 ALOGE("%s: crop is NULL", __func__);
655 if (__v4l2_check_buf_type(crop->type) == false) {
660 ret = ioctl(fd, VIDIOC_G_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...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
LabelMaker.java 376 int[] crop = new int[4]; local
377 crop[0] = cropU;
378 crop[1] = cropV;
379 crop[2] = cropW;
380 crop[3] = cropH;
381 mCrop = crop;
  /frameworks/base/core/java/android/view/
SurfaceControl.java 369 public void setWindowCrop(Rect crop) {
371 if (crop != null) {
373 crop.left, crop.top, crop.right, crop.bottom);
  /frameworks/native/libs/gui/
LayerState.cpp 40 output.write(crop);
60 input.read(crop);

Completed in 577 milliseconds

1 2 3 4 5