Home
last modified time | relevance | path

Searched refs:crop (Results 1 – 10 of 10) sorted by relevance

/cts/apps/CameraITS/tests/inprog/
Dtest_crop_region.py50 crop = req['android.scaler.cropRegion']
52 crop["left"],crop["top"],
53 crop["right"]-crop["left"],crop["bottom"]-crop["top"])
60 crop = cap["metadata"]['android.scaler.cropRegion']
63 crop["left"],crop["top"],
64 crop["right"]-crop["left"],crop["bottom"]-crop["top"])
/cts/tests/tests/media/libmediandkjni/
Dcodec-utils-jni.cpp44 struct crop { struct
49 } crop; member
188 img->crop.left = env->GetIntField(area, gFields.fieldLeft); in getNativeImage()
189 img->crop.top = env->GetIntField(area, gFields.fieldTop); in getNativeImage()
190 img->crop.right = env->GetIntField(area, gFields.fieldRight); in getNativeImage()
191 img->crop.bottom = env->GetIntField(area, gFields.fieldBottom); in getNativeImage()
192 if (img->crop.right == 0 && img->crop.bottom == 0) { in getNativeImage()
193 img->crop.right = img->width; in getNativeImage()
194 img->crop.bottom = img->height; in getNativeImage()
228 (img->crop.left >> xDecim) * img->plane[ix].colInc in getNativeImage()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DImageReaderDecoderTest.java633 Rect crop = image.getCropRect(); in validateSwirl() local
648 Rect area = new Rect(pos - step, pos, crop.width() / 2, crop.height() + 2 * step - pos); in validateSwirl()
652 area.offset(crop.left, crop.top); in validateSwirl()
653 area.intersect(crop); in validateSwirl()
671 area.offset(crop.centerX() - area.left, 2 * (crop.centerY() - area.centerY())); in validateSwirl()
756 Rect crop = image.getCropRect(); in getDataFromImage() local
758 int width = crop.width(); in getDataFromImage()
759 int height = crop.height(); in getDataFromImage()
790 int w = crop.width() >> shift; in getDataFromImage()
791 int h = crop.height() >> shift; in getDataFromImage()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DScriptYuvCrop.java63 RectF crop = parameters.get(CROP_WINDOW); in createOutputInfo() local
65 (int)(crop.width() * inputSize.getWidth()), in createOutputInfo()
66 (int)(crop.height() * inputSize.getHeight())); in createOutputInfo()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DTextureTestRenderer.java105 int crop[] = new int[] { 0, 0, 4, 4 }; in onDrawFrame() local
108 GL11Ext.GL_TEXTURE_CROP_RECT_OES, crop, 0); in onDrawFrame()
/cts/tests/camera/src/android/hardware/camera2/cts/
Dcrop_yuvf_420_to_yuvx_444.rscript27 yuvx_444 RS_KERNEL crop(uint32_t x, uint32_t y) {
DImageReaderTest.java751 Rect crop = new Rect(/*left*/wOffset, /*top*/hOffset, /*right*/wOffset + w, in convertPixelYuvToRgba() local
753 assertTrue("Output rectangle" + crop + " must lie within image bounds " + imageBounds, in convertPixelYuvToRgba()
754 imageBounds.contains(crop)); in convertPixelYuvToRgba()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java1158 Rect crop = image.getCropRect(); in getImageMD5Checksum() local
1159 int cropLeft = crop.left; in getImageMD5Checksum()
1160 int cropRight = crop.right; in getImageMD5Checksum()
1161 int cropTop = crop.top; in getImageMD5Checksum()
1162 int cropBottom = crop.bottom; in getImageMD5Checksum()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1265 Rect crop = image.getCropRect(); in getImageMD5Checksum() local
1266 int cropLeft = crop.left; in getImageMD5Checksum()
1267 int cropRight = crop.right; in getImageMD5Checksum()
1268 int cropTop = crop.top; in getImageMD5Checksum()
1269 int cropBottom = crop.bottom; in getImageMD5Checksum()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java426 Rect crop = new Rect(0 ,0, cropWidth, cropHeight); in testInBitmapReuse() local
427 Bitmap reuseCropped = cropBitmap(reuseResult, crop); in testInBitmapReuse()
428 Bitmap defaultCropped = cropBitmap(defaultResult, crop); in testInBitmapReuse()