/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | ParameterUtils.java | 374 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 …]
|
D | LegacyResultMapper.java | 294 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()
|
D | LegacyFaceDetectMapper.java | 235 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()
|
D | LegacyRequestMapper.java | 64 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()
|
D | LegacyMetadataMapper.java | 1293 Rect activeArray = c.get(SENSOR_INFO_ACTIVE_ARRAY_SIZE); in createRequestTemplate() local 1295 new MeteringRectangle(/*x*/0, /*y*/0, /*width*/activeArray.width() - 1, in createRequestTemplate() 1296 /*height*/activeArray.height() - 1,/*weight*/0)}; in createRequestTemplate()
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | DistortionMapperTest.cpp | 51 int32_t activeArray[4], int32_t preCorrectionActiveArray[4]) { in setupTestMapper() 58 activeArray, 4); in setupTestMapper() 173 std::array<int32_t, 4> activeArray = {0, 0, 4032, 3024}; in TEST() local 175 setupTestMapper(&m, identityDistortion, testICal, /*activeArray*/ activeArray.data(), in TEST() 176 /*preCorrectionActiveArray*/ activeArray.data()); in TEST() 178 auto rectsOrig = activeArray; in TEST() 179 res = m.mapCorrectedRectToRaw(activeArray.data(), 1, /*clamp*/true, /*simple*/ true); in TEST() 182 for (size_t i = 0; i < activeArray.size(); i++) { in TEST() 183 EXPECT_EQ(activeArray[i], rectsOrig[i]); in TEST() 186 res = m.mapRawRectToCorrected(activeArray.data(), 1, /*clamp*/true, /*simple*/ true); in TEST() [all …]
|
D | DistortionMapperComp.py | 21 activeArray = np.array([[1000, 750]]) variable 23 rawCoords = np.floor(np.random.rand(1000,2) * activeArray)
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | StaticMetadata.java | 795 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 …]
|
D | CameraTestUtils.java | 1598 final float maxZoom, final Rect activeArray) { in getCropRegionForZoom() argument 1613 if (activeArray == null) { in getCropRegionForZoom() 1632 int cropCenterX = (int)(activeArray.width() * center.x); in getCropRegionForZoom() 1633 int cropCenterY = (int)(activeArray.height() * center.y); in getCropRegionForZoom() 1634 int cropWidth = (int) (activeArray.width() / zoomFactor); in getCropRegionForZoom() 1635 int cropHeight = (int) (activeArray.height() / zoomFactor); in getCropRegionForZoom()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | AndroidCamera2Settings.java | 79 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()
|