Searched refs:cropRect (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/media/common/src/android/media/cts/ |
D | CodecImage.java | 141 public void setCropRect(Rect cropRect) { in setCropRect() argument 142 if (cropRect != null) { in setCropRect() 143 cropRect = new Rect(cropRect); // make a copy in setCropRect() 144 cropRect.intersect(0, 0, getWidth(), getHeight()); in setCropRect() 146 mCropRect = cropRect; in setCropRect()
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | CompareStreams.java | 264 Rect cropRect = new Rect(cropRectList.get(i)); in updateErrorStats() local 265 cropRect.left = clamp(cropRect.left, 0, imgWidth); in updateErrorStats() 266 cropRect.top = clamp(cropRect.top, 0, imgHeight); in updateErrorStats() 267 cropRect.right = clamp(cropRect.right, 0, imgWidth); in updateErrorStats() 268 cropRect.bottom = clamp(cropRect.bottom, 0, imgHeight); in updateErrorStats() 269 assertTrue("invalid cropRect, " + cropRect, in updateErrorStats() 270 IS_AT_LEAST_T ? cropRect.isValid() in updateErrorStats() 271 : cropRect.left <= cropRect.right && cropRect.top <= cropRect.bottom); in updateErrorStats() 272 assertTrue(String.format("cropRect %s exceeds frameRect %s", cropRect, frameRect), in updateErrorStats() 273 frameRect.contains(cropRect)); in updateErrorStats() [all …]
|
D | VideoErrorManager.java | 128 int imgHeight, Rect cropRect) { in computeMSE() argument 136 if (cropRect != null) { in computeMSE() 137 cropLeft = cropRect.left; in computeMSE() 138 cropTop = cropRect.top; in computeMSE() 139 cropWidth = cropRect.width(); in computeMSE() 140 cropHeight = cropRect.height(); in computeMSE()
|
D | DecodeStreamToYuv.java | 178 Rect cropRect = image.getCropRect(); in getImage() local 179 int imageWidth = cropRect.width(); in getImage() 180 int imageHeight = cropRect.height(); in getImage() 183 int imageLeft = cropRect.left; in getImage() 184 int imageTop = cropRect.top; in getImage()
|
D | OutputManager.java | 246 Rect cropRect = image.getCropRect(); in checksum() local 247 int imageWidth = cropRect.width(); in checksum() 248 int imageHeight = cropRect.height(); in checksum() 251 int imageLeft = cropRect.left; in checksum() 252 int imageTop = cropRect.top; in checksum()
|
/cts/tests/tests/media/common/jni/ |
D | codec-utils-jni.cpp | 196 jobject cropRect = NULL; in getNativeImage() local 198 cropRect = env->CallObjectMethod(image, gFields.methodCrop); in getNativeImage() 199 area = cropRect; in getNativeImage() 211 if (cropRect != NULL) { in getNativeImage() 212 env->DeleteLocalRef(cropRect); in getNativeImage() 213 cropRect = NULL; in getNativeImage()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ImageDecoderTest.java | 1495 public Rect cropRect; in testCrop() field in Listener 1509 cropRect = new Rect(quarterWidth, quarterHeight, in testCrop() 1511 decoder.setCrop(cropRect); in testCrop() 1529 assertEquals(l.cropRect.width(), drawable.getIntrinsicWidth()); in testCrop() 1530 assertEquals(l.cropRect.height(), drawable.getIntrinsicHeight()); in testCrop() 1582 Rect cropRect = new Rect(l.outCropRect); in testScaleAndCrop() local 1599 Bitmap cropped = Bitmap.createBitmap(twoStepBm, cropRect.left, cropRect.top, in testScaleAndCrop() 1600 cropRect.width(), cropRect.height()); in testScaleAndCrop()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 3091 MeteringRectangle[] requestRegions, Rect cropRect){ in getExpectedOutputRegion() argument 3096 boolean intersect = resultRect.setIntersect(requestRect, cropRect); in getExpectedOutputRegion()
|