/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | PhotoProcessor.java | 201 int cropHeight = original.getHeight(); in getNormalizedBitmap() local 204 if (forceCropToSquare && cropWidth != cropHeight) { in getNormalizedBitmap() 206 if (cropHeight > cropWidth) { in getNormalizedBitmap() 207 cropTop = (cropHeight - cropWidth) / 2; in getNormalizedBitmap() 208 cropHeight = cropWidth; in getNormalizedBitmap() 210 cropLeft = (cropWidth - cropHeight) / 2; in getNormalizedBitmap() 211 cropWidth = cropHeight; in getNormalizedBitmap() 215 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap() 219 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap() 232 cropLeft + cropWidth, cropTop + cropHeight); in getNormalizedBitmap()
|
/aosp12/frameworks/av/media/libstagefright/colorconversion/ |
H A D | ColorConverter.cpp | 185 size_t ColorConverter::BitmapParams::cropHeight() const { in cropHeight() function in android::ColorConverter::BitmapParams 210 && src.cropHeight() == dst.cropHeight())) { in convert() 280 for (size_t y = 0; y < src.cropHeight(); ++y) { in convertCbYCrY() 395 dst.mStride, src.cropWidth(), src.cropHeight()); in convertYUV420SemiPlanarUseLibYUV() 530 for (size_t y = 0; y < src.cropHeight(); ++y) { in convertYUV420Planar() 641 for (size_t y = 0; y < src.cropHeight(); y += 2) { in convertYUV420Planar16ToY410() 714 for (size_t y = 0; y < src.cropHeight(); y++) { in convertYUV420Planar16ToY410() 795 for (size_t y = 0; y < src.cropHeight(); y++) { in convertYUV420Planar16ToY410() 836 for (size_t y = 0; y < src.cropHeight(); ++y) { in convertQCOMYUV420SemiPlanar() 904 for (size_t y = 0; y < src.cropHeight(); ++y) { in convertYUV420SemiPlanar() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | AspectRatio.java | 177 int cropHeight = area.width() * mHeight / mWidth; in getLargestCenterCrop() local 178 int cropTop = (area.height() - cropHeight) / 2; in getLargestCenterCrop() 179 int cropBottom = cropTop + cropHeight; in getLargestCenterCrop()
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
H A D | ImagePreviewFragment.java | 466 int cropHeight = mWallpaperSurface.getMeasuredHeight(); in setDefaultWallpaperZoomAndScroll() local 467 Point crop = new Point(cropWidth, cropHeight); in setDefaultWallpaperZoomAndScroll() 506 int cropHeight = mWallpaperSurface.getMeasuredHeight(); in calculateCropRect() local 507 int maxCrop = Math.max(cropWidth, cropHeight); in calculateCropRect() 508 int minCrop = Math.min(cropWidth, cropHeight); in calculateCropRect() 509 Point hostViewSize = new Point(cropWidth, cropHeight); in calculateCropRect() 513 cropWidth, cropHeight); in calculateCropRect()
|
/aosp12/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 561 float cropHeight, cropWidth; in effectiveCropRectFromRequested() local 564 cropHeight = requestedCrop.height(); in effectiveCropRectFromRequested() 565 cropWidth = cropHeight * aspectRatioPreview; in effectiveCropRectFromRequested() 569 cropHeight = cropWidth / aspectRatioPreview; in effectiveCropRectFromRequested() 573 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropWidth, cropHeight); in effectiveCropRectFromRequested()
|
/aosp12/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/ |
H A D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 210 size_t cropHeight = output.crop().height; in compareMd5Chksm() local 213 calc_md5_cksum(yPlane, yStride, cropWidth, cropHeight, au1_y_chksum); in compareMd5Chksm() 214 calc_md5_cksum(uPlane, uvStride, cropWidth / 2, cropHeight / 2, au1_u_chksum); in compareMd5Chksm() 215 calc_md5_cksum(vPlane, uvStride, cropWidth / 2, cropHeight / 2, au1_v_chksum); in compareMd5Chksm() 217 uint8_t* cbPlane = (uint8_t*)malloc(cropWidth * cropHeight / 4); in compareMd5Chksm() 218 uint8_t* crPlane = (uint8_t*)malloc(cropWidth * cropHeight / 4); in compareMd5Chksm() 222 for (size_t k = 0; k < (cropHeight / 2); k++) { in compareMd5Chksm() 229 calc_md5_cksum(yPlane, yStride, cropWidth, cropHeight, au1_y_chksum); in compareMd5Chksm() 230 calc_md5_cksum(cbPlane, cropWidth / 2, cropWidth / 2, cropHeight / 2, au1_u_chksum); in compareMd5Chksm() 231 calc_md5_cksum(crPlane, cropWidth / 2, cropWidth / 2, cropHeight / 2, au1_v_chksum); in compareMd5Chksm()
|
/aosp12/packages/apps/Gallery/src/com/android/camera/ |
H A D | CropImage.java | 479 int cropHeight = cropWidth; 483 cropHeight = cropWidth * mAspectY / mAspectX; 485 cropWidth = cropHeight * mAspectX / mAspectY; 490 int y = (height - cropHeight) / 2; 492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight);
|
/aosp12/frameworks/av/media/libstagefright/include/media/stagefright/ |
H A D | ColorConverter.h | 69 size_t cropHeight() const;
|
/aosp12/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | ZoomRatioMapper.cpp | 240 int cropHeight = cropRegionEntry.data.i32[3]; in updateCaptureRequest() local 241 if (cropWidth < arrayWidth && cropHeight < arrayHeight) { in updateCaptureRequest()
|
/aosp12/hardware/qcom/display/msm8994/libhwcomposer/ |
H A D | hwc_fbupdate.cpp | 528 const uint32_t cropHeight = sourceCrop.bottom - sourceCrop.top; in configure() local 531 const uint32_t layerClock = getLayerClock(dstWidth, dstHeight, cropHeight); in configure()
|
H A D | hwc_mdpcomp.cpp | 2791 uint32_t cropHeight = has90Transform(layer) ? crop.right - crop.left : in acquireMDPPipes() local 2795 const uint32_t layerClock = getLayerClock(dstWidth, dstHeight, cropHeight); in acquireMDPPipes() 2801 cropHeight /= downscale; in acquireMDPPipes()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 1000 float cropHeight = outHeight * (inWidth / (float) outWidth); in getMaxCropRect() local 1001 cropRect.top = (inHeight - cropHeight) * verticalAlignment; in getMaxCropRect() 1002 cropRect.bottom = cropRect.top + cropHeight; in getMaxCropRect()
|
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 1635 int cropHeight = (int) (activeArray.height() / zoomFactor); in getCropRegionForZoom() local 1639 /*top*/cropCenterY - cropHeight / 2, in getCropRegionForZoom() 1641 /*bottom*/cropCenterY + cropHeight / 2 - 1); in getCropRegionForZoom()
|