Searched refs:safeCrop (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskImageContainer.java | 248 Rect safeCrop = new Rect(crop); in guaranteedSafeCrop() local 254 safeCrop.left = Math.max(safeCrop.left, 0); in guaranteedSafeCrop() 255 safeCrop.top = Math.max(safeCrop.top, 0); in guaranteedSafeCrop() 256 safeCrop.right = Math.max(Math.min(safeCrop.right, width), safeCrop.left); in guaranteedSafeCrop() 257 safeCrop.bottom = Math.max(Math.min(safeCrop.bottom, height), safeCrop.top); in guaranteedSafeCrop() 259 if (safeCrop.width() <= 0 || safeCrop.height() <= 0) { in guaranteedSafeCrop() 263 return safeCrop; in guaranteedSafeCrop()
|
D | TaskPreviewChainedJpeg.java | 64 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run() local 66 final TaskImage inputImage = calculateInputImage(img, safeCrop); in run() 68 new Size(safeCrop.width(), safeCrop.height()), in run() 80 convertedImage = runSelectedConversion(img.proxy, safeCrop, subsample); in run()
|
D | TaskCompressImageToJpeg.java | 112 final Rect safeCrop; in run() local 189 safeCrop = guaranteedSafeCrop(img.proxy, in run() 195 safeCrop = guaranteedSafeCrop(imageWidth, imageHeight, in run() 205 img.proxy.getFormat(), safeCrop); in run() 207 if(requiresCropOperation(img.proxy, safeCrop)) { in run() 211 safeCrop.width(), in run() 212 safeCrop.height(), in run() 216 compressedData.array(), safeCrop, in run() 238 safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run() 242 img.proxy.getFormat(), safeCrop); in run()
|
D | TaskConvertImageToRGBPreview.java | 820 final Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in calculateResultImage() local 824 resultWidth = safeCrop.width() / subsample; in calculateResultImage() 825 resultHeight = safeCrop.height() / subsample; in calculateResultImage() 827 final int radius = inscribedCircleRadius(safeCrop.width() / subsample, safeCrop.height() in calculateResultImage() 868 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run() local 870 final TaskImage inputImage = calculateInputImage(img, safeCrop); in run() 872 new Size(safeCrop.width(), safeCrop.height()), in run() 885 convertedImage = runSelectedConversion(img.proxy, safeCrop, subsample); in run()
|
D | TaskChainedCompressImageToJpeg.java | 52 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run() local 56 img.proxy.getHeight(), img.proxy.getFormat(), safeCrop); in run() 58 img.proxy.getHeight(), ImageFormat.JPEG , safeCrop); in run()
|