/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
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.
|
/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...] |
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/ |
ScriptYuvCrop.java | 30 * Crop {@link ImageFormat#YUV_420_888 flexible-YUV} {@link Allocation allocations} into 34 * {@link ScriptYuvCrop#CROP_WINDOW crop window} parameter.</p> 44 * <p>The output will be a cropped copy of the input to only this crop window.</p> 63 RectF crop = parameters.get(CROP_WINDOW); local 65 (int)(crop.width() * inputSize.getWidth()), 66 (int)(crop.height() * inputSize.getHeight()));
|
/frameworks/native/include/gui/ |
CpuConsumer.h | 52 Rect crop; member in struct:android::CpuConsumer::LockedBuffer
|
IGraphicBufferProducer.h | 263 // * crop rect is out of bounds of the buffer dimensions 271 // crop - a crop rectangle that's used as a hint to the consumer 280 android_dataspace dataSpace, const Rect& crop, int scalingMode, 284 dataSpace(dataSpace), crop(crop), scalingMode(scalingMode), 295 *outCrop = crop; 318 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput
|
/external/replicaisland/src/com/replica/replicaisland/ |
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/jni/filters/ |
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/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...] |
CropView.java | 17 package com.android.gallery3d.filtershow.crop; 116 RectF crop = mCropObj.getInnerBounds(); local 118 if (crop != newCropBounds || containing != newPhotoBounds 189 Log.w(LOGTAG, "crop reset called"); 302 // If crop object doesn't exist, create it and update it from master 358 // Draw crop rect and markers
|
CropDrawingUtils.java | 17 package com.android.gallery3d.filtershow.crop;
|
CropExtras.java | 17 package com.android.gallery3d.filtershow.crop;
|
CropMath.java | 17 package com.android.gallery3d.filtershow.crop; 213 * @param photoBounds original bounds containing crop bounds 214 * @param displayBounds final bounds for crop 215 * @return the stretched/scaled/translated crop bounds that fit within displayBounds
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
TextureTestRenderer.java | 105 int crop[] = new int[] { 0, 0, 4, 4 }; local 108 GL11Ext.GL_TEXTURE_CROP_RECT_OES, crop, 0);
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
mm_qcamera_display.c | 176 common_crop_t *crop = (common_crop_t *) (frame->cropinfo); local 202 if (crop->in2_w != 0 || crop->in2_h != 0) { 204 e->src_rect.x = (crop->out2_w - crop->in2_w + 1) / 2 - 1; 206 e->src_rect.y = (crop->out2_h - crop->in2_h + 1) / 2 - 1; 208 e->src_rect.w = crop->in2_w; 209 e->src_rect.h = crop->in2_h; 458 int v4l2_render(int frame_fd, struct v4l2_buffer *vb, struct v4l2_crop *crop) 515 common_crop_t *crop; local [all...] |
/device/moto/shamu/camera/QCamera2/HAL/ |
QCameraChannel.cpp | 381 * crop information 382 * @crop_info : crop info as a result of zoom operation 1121 cam_crop_data_t *crop = NULL; local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/ |
SoftAVC.cpp | 221 const CropParams& crop = decInfo.cropParams; local 222 if (mCropLeft == crop.cropLeftOffset && 223 mCropTop == crop.cropTopOffset && 224 mCropWidth == crop.cropOutWidth && 225 mCropHeight == crop.cropOutHeight) { 229 mCropLeft = crop.cropLeftOffset; 230 mCropTop = crop.cropTopOffset; 231 mCropWidth = crop.cropOutWidth; 232 mCropHeight = crop.cropOutHeight;
|
/frameworks/av/media/libstagefright/colorconversion/ |
SoftwareRenderer.cpp | 75 "crop", &cropLeftNew, &cropTopNew, &cropRightNew, &cropBottomNew)) { 174 android_native_rect_t crop; local 175 crop.left = mCropLeft; 176 crop.top = mCropTop; 177 crop.right = mCropRight + 1; 178 crop.bottom = mCropBottom + 1; 179 ALOGV("setting crop: [%d, %d, %d, %d] for size [%zu, %zu]", 180 crop.left, crop.top, crop.right, crop.bottom, bufWidth, bufHeight) [all...] |
/frameworks/native/include/private/gui/ |
LayerState.h | 65 crop.makeInvalid(); 90 Rect crop; member in struct:android::layer_state_t
|
/frameworks/native/libs/gui/tests/ |
SurfaceTextureClient_test.cpp | 495 Rect crop = mST->getCurrentCrop(); local 496 EXPECT_EQ(0, crop.left); 497 EXPECT_EQ(0, crop.top); 498 EXPECT_EQ(4, crop.right); 499 EXPECT_EQ(4, crop.bottom); 621 // Query to see if the image crop extension exists 635 android_native_rect_t crop; 636 crop.left = 0; 637 crop.top = 0; 638 crop.right = 5 [all...] |
/frameworks/native/opengl/tests/gl_yuvtex/ |
gl_yuvtex.cpp | 151 GLint crop[4] = { 0, 0, yuvTexWidth, yuvTexHeight }; local 152 glTexParameteriv(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_CROP_RECT_OES, crop);
|
/hardware/intel/img/hwcomposer/merrifield/include/ |
DataBuffer.h | 24 typedef struct crop { struct in namespace:android::intel
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/include/ |
DataBuffer.h | 24 typedef struct crop { struct in namespace:android::intel
|
/hardware/ti/omap4-aah/test/CameraHal/ |
camera_test_surfacetexture.h | 163 Rect crop = getCrop(graphic_buffer, mtx); local 165 mDeferThread->add(graphic_buffer, crop, mCounter++);
|
/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/UnifiedEmail/src/com/android/mail/utils/ |
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 from. Range from 131 public static Bitmap crop(final Bitmap src, final int w, final int h, method in class:BitmapUtil [all...] |