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
77 public ZoomData(int zoomIndex, Rect previewCrop, Rect reportedCrop) { in ZoomData() argument
79 this.previewCrop = previewCrop; in ZoomData()
395 Rect previewCrop = getPreviewCropRectangleUnzoomed(activeArray, streamSize); in getClosestAvailableZoomCrop() local
399 shrinkToSameAspectRatioCentered(previewCrop, actualCrop); in getClosestAvailableZoomCrop()
404 "getClosestAvailableZoomCrop - previewCrop = " + previewCrop); in getClosestAvailableZoomCrop()
802 Rect previewCrop = zoomData.previewCrop; in convertMeteringRectangleToLegacy() local
805 previewCrop.width(); in convertMeteringRectangleToLegacy()
807 previewCrop.height(); in convertMeteringRectangleToLegacy()
812 transform.setTranslate(-previewCrop.left, -previewCrop.top); in convertMeteringRectangleToLegacy()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp2600 CropRegion previewCrop = calculateCropRegion(/*previewOnly*/ true); in cropXToArray() local
2601 ALOG_ASSERT(x < previewCrop.width, "Crop-relative X coordinate = '%d' " in cropXToArray()
2602 "is out of bounds (upper = %f)", x, previewCrop.width); in cropXToArray()
2604 int ret = x + previewCrop.left; in cropXToArray()
2616 CropRegion previewCrop = calculateCropRegion(/*previewOnly*/ true); in cropYToArray() local
2617 ALOG_ASSERT(y < previewCrop.height, "Crop-relative Y coordinate = '%d' is " in cropYToArray()
2618 "out of bounds (upper = %f)", y, previewCrop.height); in cropYToArray()
2620 int ret = y + previewCrop.top; in cropYToArray()
2631 CropRegion previewCrop = calculateCropRegion(/*previewOnly*/ true); in normalizedXToCrop() local
2632 return (x + 1000) * (previewCrop.width - 1) / 2000; in normalizedXToCrop()
[all …]