/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/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...] |
ImageGeometry.java | 221 Path crop = new Path(); local 222 crop.moveTo(points[0], points[1]); 223 crop.lineTo(points[2], points[3]); 224 crop.lineTo(points[4], points[5]); 225 crop.lineTo(points[6], points[7]); 226 crop.close(); 227 canvas.drawPath(crop, paint); 228 return crop; 434 protected float getTransformState(RectF photo, RectF crop, float[] displayCenter) { 443 if (crop != null) [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...] |
/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; 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/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...] |
/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/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]
|
/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...] |
/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;
|
/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...] |
/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...] |
/hardware/samsung_slsi/exynos5/include/ |
exynos_rotator.h | 79 * image left crop size[in] 82 * image top crop size[in] 125 * image left crop size[in] 128 * image top crop size[in]
|
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;
|
/frameworks/native/include/private/gui/ |
LayerState.h | 60 crop.makeInvalid(); 85 Rect crop; member in struct:android::layer_state_t
|
/frameworks/native/libs/gui/ |
LayerState.cpp | 40 output.write(crop); 60 input.read(crop);
|
/hardware/samsung_slsi/exynos5/librotator/ |
exynos_rotator.c | 80 struct v4l2_crop crop; member in struct:rotator_info 461 // crop 463 info->crop.type = info->buf_type; 464 if (exynos_v4l2_g_crop(fd, &info->crop) < 0) { 469 if (info->crop_left != info->crop.c.left || 470 info->crop_top != info->crop.c.top || 471 info->crop_width != info->crop.c.width || 472 info->crop_height != info->crop.c.height) { 473 ALOGV("%s::crop is different..", __func__); 493 ALOGV("%s::fmt, crop is same with old-one, so skip s_fmt crop..", __func__) [all...] |