/cts/apps/CameraITS/tests/inprog/ |
test_crop_region.py | 22 """Takes shots with different sensor crop regions. 50 crop = req['android.scaler.cropRegion'] 51 print "Capturing img%d with crop: %d,%d %dx%d"%(i+1, 52 crop["left"],crop["top"], 53 crop["right"]-crop["left"],crop["bottom"]-crop["top"]) 60 crop = cap["metadata"]['android.scaler.cropRegion' [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]);
|
/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...] |
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
test_VIDIOC_CROP.c | 31 struct v4l2_crop crop; local 33 memset(&crop, 0xff, sizeof(crop)); 34 crop.type = type; 35 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); 61 struct v4l2_crop crop; local 63 memset(&crop, 0xff, sizeof(crop)); 64 crop.type = type; 65 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); 95 struct v4l2_crop crop; local 155 struct v4l2_crop crop; local 649 struct v4l2_crop crop; local 722 struct v4l2_crop crop; local [all...] |
/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.
|
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) { [all...] |
/frameworks/native/services/surfaceflinger/ |
LayerRejecter.cpp | 80 if (mFront.crop != mFront.requestedCrop) { 81 mFront.crop = mFront.requestedCrop; 82 mCurrent.crop = mFront.requestedCrop; 94 " drawing={ active ={ wh={%4u,%4u} crop={%4d,%4d,%4d,%4d} (%4d,%4d) " 98 mFront.active.h, mFront.crop.left, mFront.crop.top, mFront.crop.right, 99 mFront.crop.bottom, mFront.crop.getWidth(), mFront.crop.getHeight() [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...] |
/frameworks/native/opengl/tests/finish/ |
finish.cpp | 105 GLint crop[4] = { 0, 512, 512, -512 }; local 106 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 119 GLint crop[4] = { 0, 1, 1, -1 }; local 120 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 133 GLint crop[4] = { 0, 512, 512, -512 }; local 134 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 148 GLint crop[4] = { 0, 1, 1, -1 }; local 149 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 165 GLint crop[4] = { 0, 512, 512, -512 }; local 166 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); 185 GLint crop[4] = { 0, 1, 1, -1 }; local 198 GLint crop[4] = { 0, 1, 1, -1 }; local 213 GLint crop[4] = { 0, 1, 1, -1 }; local [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...] |
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
random_crop_test.py | 34 crop = random_ops.random_crop(value, shape).eval() 35 self.assertAllEqual(crop, value) 45 crop = random_ops.random_crop(value, size=target) 47 y = crop.eval() 52 # Run 1x1 crop num_samples times in an image and ensure that one finds each 61 crop = random_ops.random_crop(value, single, seed=7) 64 y = crop.eval()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
Screenshooter.java | 51 Rect crop = new Rect(0, 0, displayWidth, displayHeight); local 55 SurfaceControl.screenshot(crop, displayWidth, displayHeight, rotation);
|
/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...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
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.left < crop.right, "Invalid crop rectangle: " [all...] |
/hardware/google/av/codec2/include/ |
C2Buffer.h | [all...] |
/cts/tests/camera/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()));
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
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; local 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.getWidth(), crop.getHeight() } [all...] |
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
TransactionCompat.java | 81 public TransactionCompat setWindowCrop(SurfaceControlCompat surfaceControl, Rect crop) { 82 mTransaction.setWindowCrop(surfaceControl.mSurfaceControl, crop); 86 public TransactionCompat setFinalCrop(SurfaceControlCompat surfaceControl, Rect crop) { 87 mTransaction.setFinalCrop(surfaceControl.mSurfaceControl, crop);
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
hwc_ad.h | 44 bool prepare(hwc_context_t *ctx, const hwc_rect_t& crop,
|
/hardware/qcom/display/msm8226/libhwcomposer/ |
hwc_ad.h | 44 bool prepare(hwc_context_t *ctx, const hwc_rect_t& crop,
|
/hardware/qcom/display/msm8994/libhwcomposer/ |
hwc_ad.h | 44 bool prepare(hwc_context_t *ctx, const hwc_rect_t& crop,
|
/frameworks/native/services/vr/hardware_composer/tests/ |
vr_composer_test.cpp | 135 .crop = {0.0f, 0.0f, 600.0f, 400.0f}, 161 ASSERT_EQ(frame.layers[0].crop.left, received_frame.layers[0].crop.left); 162 ASSERT_EQ(frame.layers[0].crop.top, received_frame.layers[0].crop.top); 163 ASSERT_EQ(frame.layers[0].crop.right, received_frame.layers[0].crop.right); 164 ASSERT_EQ(frame.layers[0].crop.bottom, received_frame.layers[0].crop.bottom);
|
/system/core/libpixelflinger/ |
raster.cpp | 146 GGLint gglBitBlit(GGLContext* con, int tmu, GGLint crop[4], GGLint where[4]) 167 const GGLint Wcr = crop[2]; 168 const GGLint Hcr = crop[3]; 172 const GGLint Ucr = crop[0]; 173 const GGLint Vcr = crop[1]; 189 const GGLint Ucr = crop[0] << 16; 190 const GGLint Vcr = crop[1] << 16; 191 const GGLint Wcr = crop[2] << 16; 192 const GGLint Hcr = crop[3] << 16;
|
/external/libxcam/modules/ocl/ |
cl_image_360_stitch.cpp | 173 stitch_info.crop[0].left = 96; 174 stitch_info.crop[0].right = 96; 175 stitch_info.crop[0].top = 0; 176 stitch_info.crop[0].bottom = 0; 177 stitch_info.crop[1].left = 96; 178 stitch_info.crop[1].right = 96; 179 stitch_info.crop[1].top = 0; 180 stitch_info.crop[1].bottom = 0; 200 stitch_info.crop[0].left = 0; 201 stitch_info.crop[0].right = 0 [all...] |