Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/legacy/
DParameterUtils.java502 float cropH, cropW; in getPreviewCropRectangleUnzoomed() local
505 cropH = activeArray.height(); in getPreviewCropRectangleUnzoomed()
506 cropW = cropH * aspectRatioPreview; in getPreviewCropRectangleUnzoomed()
510 cropH = cropW / aspectRatioPreview; in getPreviewCropRectangleUnzoomed()
514 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropW, cropH); in getPreviewCropRectangleUnzoomed()
543 float cropH, cropW; in shrinkToSameAspectRatioCentered() local
546 cropH = reference.height(); in shrinkToSameAspectRatioCentered()
547 cropW = cropH * aspectRatioShrinkTarget; in shrinkToSameAspectRatioCentered()
551 cropH = cropW / aspectRatioShrinkTarget; in shrinkToSameAspectRatioCentered()
558 translateMatrix.setScale(cropW / reference.width(), cropH / reference.height(), in shrinkToSameAspectRatioCentered()