Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/legacy/
DParameterUtils.java73 public final Rect previewCrop; field in ParameterUtils.ZoomData
79 public ZoomData(int zoomIndex, Rect previewCrop, Rect reportedCrop, in ZoomData() argument
82 this.previewCrop = previewCrop; in ZoomData()
400 Rect previewCrop = getPreviewCropRectangleUnzoomed(activeArray, streamSize); in getClosestAvailableZoomCrop() local
404 shrinkToSameAspectRatioCentered(previewCrop, actualCrop); in getClosestAvailableZoomCrop()
409 "getClosestAvailableZoomCrop - previewCrop = " + previewCrop); in getClosestAvailableZoomCrop()
895 Rect previewCrop = zoomData.previewCrop; in convertMeteringRectangleToLegacy() local
898 previewCrop.width(); in convertMeteringRectangleToLegacy()
900 previewCrop.height(); in convertMeteringRectangleToLegacy()
905 transform.setTranslate(-previewCrop.left, -previewCrop.top); in convertMeteringRectangleToLegacy()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp2855 CropRegion previewCrop = calculateCropRegion(/*previewOnly*/ true); in cropXToArray() local
2856 ALOG_ASSERT(x < previewCrop.width, "Crop-relative X coordinate = '%d' " in cropXToArray()
2857 "is out of bounds (upper = %f)", x, previewCrop.width); in cropXToArray()
2859 int ret = x + previewCrop.left; in cropXToArray()
2871 CropRegion previewCrop = calculateCropRegion(/*previewOnly*/ true); in cropYToArray() local
2872 ALOG_ASSERT(y < previewCrop.height, "Crop-relative Y coordinate = '%d' is " in cropYToArray()
2873 "out of bounds (upper = %f)", y, previewCrop.height); in cropYToArray()
2875 int ret = y + previewCrop.top; in cropYToArray()
2886 CropRegion previewCrop = calculateCropRegion(/*previewOnly*/ true); in normalizedXToCrop() local
2887 return (x + 1000) * (previewCrop.width - 1) / 2000; in normalizedXToCrop()
[all …]