Searched refs:aspectRatioPreview (Results 1 – 2 of 2) sorted by relevance
559 float aspectRatioPreview = previewSize.width() * 1.0f / previewSize.height(); in effectiveCropRectFromRequested() local562 if (aspectRatioPreview < aspectRatioArray) { in effectiveCropRectFromRequested()565 cropWidth = cropHeight * aspectRatioPreview; in effectiveCropRectFromRequested()569 cropHeight = cropWidth / aspectRatioPreview; in effectiveCropRectFromRequested()
500 float aspectRatioPreview = previewSize.getWidth() * 1.0f / previewSize.getHeight(); in getPreviewCropRectangleUnzoomed() local503 if (Math.abs(aspectRatioPreview - aspectRatioArray) < ASPECT_RATIO_TOLERANCE) { in getPreviewCropRectangleUnzoomed()506 } else if (aspectRatioPreview < aspectRatioArray) { in getPreviewCropRectangleUnzoomed()509 cropW = cropH * aspectRatioPreview; in getPreviewCropRectangleUnzoomed()513 cropH = cropW / aspectRatioPreview; in getPreviewCropRectangleUnzoomed()