Home
last modified time | relevance | path

Searched refs:cropRect (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/media/common/src/android/media/cts/
DCodecImage.java141 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/
DCompareStreams.java264 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 …]
DVideoErrorManager.java128 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()
DDecodeStreamToYuv.java178 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()
DOutputManager.java246 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/
Dcodec-utils-jni.cpp196 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/
DImageDecoderTest.java1495 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/
DCameraTestUtils.java3091 MeteringRectangle[] requestRegions, Rect cropRect){ in getExpectedOutputRegion() argument
3096 boolean intersect = resultRect.setIntersect(requestRect, cropRect); in getExpectedOutputRegion()