Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/legacy/
DParameterUtils.java374 Camera.Parameters params, Rect activeArray, Size streamSize, Rect cropRegion, in getClosestAvailableZoomCrop() argument
379 checkNotNull(activeArray, "activeArray must not be null"); in getClosestAvailableZoomCrop()
389 if (!actualCrop.intersect(activeArray)) { in getClosestAvailableZoomCrop()
392 actualCrop.set(activeArray); in getClosestAvailableZoomCrop()
395 Rect previewCrop = getPreviewCropRectangleUnzoomed(activeArray, streamSize); in getClosestAvailableZoomCrop()
417 getAvailableZoomCropRectangles(params, activeArray); in getClosestAvailableZoomCrop()
419 getAvailablePreviewZoomCropRectangles(params, activeArray, streamSize); in getClosestAvailableZoomCrop()
492 private static Rect getPreviewCropRectangleUnzoomed(Rect activeArray, Size previewSize) { in getPreviewCropRectangleUnzoomed() argument
493 if (previewSize.getWidth() > activeArray.width()) { in getPreviewCropRectangleUnzoomed()
495 } else if (previewSize.getHeight() > activeArray.height()) { in getPreviewCropRectangleUnzoomed()
[all …]
DLegacyResultMapper.java294 CaptureRequest request, Rect activeArray, ZoomData zoomData, /*out*/Parameters p) { in mapAe() argument
342 MeteringRectangle[] meteringRectArray = getMeteringRectangles(activeArray, in mapAe()
351 Rect activeArray, ZoomData zoomData, Camera.Parameters p) { in mapAf() argument
362 MeteringRectangle[] meteringRectArray = getMeteringRectangles(activeArray, in mapAf()
384 private static MeteringRectangle[] getMeteringRectangles(Rect activeArray, ZoomData zoomData, in getMeteringRectangles() argument
391 activeArray, zoomData, area); in getMeteringRectangles()
DLegacyFaceDetectMapper.java235 Rect activeArray = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in mapResultFaces() local
236 ZoomData zoomData = ParameterUtils.convertScalerCropRegion(activeArray, in mapResultFaces()
244 ParameterUtils.convertFaceFromLegacy(face, activeArray, zoomData)); in mapResultFaces()
DLegacyRequestMapper.java64 Rect activeArray = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in convertRequestMetadata() local
71 zoomData = ParameterUtils.convertScalerCropRegion(activeArray, in convertRequestMetadata()
137 activeArray, zoomData, aeRegions, maxNumMeteringAreas, in convertRequestMetadata()
151 activeArray, zoomData, afRegions, maxNumFocusAreas, in convertRequestMetadata()
485 Rect activeArray, ParameterUtils.ZoomData zoomData, in convertMeteringRegionsToLegacy() argument
517 ParameterUtils.convertMeteringRectangleToLegacy(activeArray, rect, zoomData); in convertMeteringRegionsToLegacy()
DLegacyMetadataMapper.java1284 Rect activeArray = c.get(SENSOR_INFO_ACTIVE_ARRAY_SIZE); in createRequestTemplate() local
1286 new MeteringRectangle(/*x*/0, /*y*/0, /*width*/activeArray.width() - 1, in createRequestTemplate()
1287 /*height*/activeArray.height() - 1,/*weight*/0)}; in createRequestTemplate()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java795 Rect activeArray = getValueFromKeyNonNull(key); in getPreCorrectedActiveArraySizeChecked() local
797 if (activeArray == null) { in getPreCorrectedActiveArraySizeChecked()
802 …checkTrueForKey(key, "values left/top are invalid", activeArray.left >= 0 && activeArray.top >= 0); in getPreCorrectedActiveArraySizeChecked()
804 activeArray.width() <= pixelArraySize.getWidth() && in getPreCorrectedActiveArraySizeChecked()
805 activeArray.height() <= pixelArraySize.getHeight()); in getPreCorrectedActiveArraySizeChecked()
807 return activeArray; in getPreCorrectedActiveArraySizeChecked()
815 Rect activeArray = getValueFromKeyNonNull(key); in getActiveArraySizeChecked() local
817 if (activeArray == null) { in getActiveArraySizeChecked()
822 …checkTrueForKey(key, "values left/top are invalid", activeArray.left >= 0 && activeArray.top >= 0); in getActiveArraySizeChecked()
824 activeArray.width() <= pixelArraySize.getWidth() && in getActiveArraySizeChecked()
[all …]
DCameraTestUtils.java1526 final float maxZoom, final Rect activeArray) { in getCropRegionForZoom() argument
1541 if (activeArray == null) { in getCropRegionForZoom()
1560 int cropCenterX = (int)(activeArray.width() * center.x); in getCropRegionForZoom()
1561 int cropCenterY = (int)(activeArray.height() * center.y); in getCropRegionForZoom()
1562 int cropWidth = (int) (activeArray.width() / zoomFactor); in getCropRegionForZoom()
1563 int cropHeight = (int) (activeArray.height() / zoomFactor); in getCropRegionForZoom()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Settings.java79 public AndroidCamera2Settings(CameraDevice camera, int template, Rect activeArray, in AndroidCamera2Settings() argument
84 if (activeArray == null) { in AndroidCamera2Settings()
90 mActiveArray = activeArray; in AndroidCamera2Settings()
91 mCropRectangle = new Rect(0, 0, activeArray.width(), activeArray.height()); in AndroidCamera2Settings()