Searched refs:activeArray (Results 1 – 8 of 8) sorted by relevance
/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() 174 std::array<int32_t, 4> activeArray = {0, 0, 4032, 3024}; in TEST() local 176 setupTestMapper(&m, identityDistortion, testICal, /*activeArray*/ activeArray.data(), in TEST() 177 /*preCorrectionActiveArray*/ activeArray.data()); in TEST() 179 auto rectsOrig = activeArray; in TEST() 181 res = m.mapCorrectedRectToRaw(activeArray.data(), 1, mapperInfo, /*clamp*/true, in TEST() 185 for (size_t i = 0; i < activeArray.size(); i++) { in TEST() 186 EXPECT_EQ(activeArray[i], rectsOrig[i]); in TEST() 189 res = m.mapRawRectToCorrected(activeArray.data(), 1, mapperInfo, /*clamp*/true, in TEST() [all …]
|
D | DistortionMapperComp.py | 21 activeArray = np.array([[1000, 750]]) variable 23 rawCoords = np.floor(np.random.rand(1000,2) * activeArray)
|
D | RotateAndCropMapperTest.cpp | 54 CameraMetadata setupDeviceInfo(int32_t activeArray[4], std::vector<uint8_t> availableCropModes ) { in setupDeviceInfo() 58 activeArray, 4); in setupDeviceInfo()
|
D | ZoomRatioTest.cpp | 51 const int32_t activeArray[4], const int32_t preCorrectArray[4], in setupTestMapper() 56 deviceInfo.update(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE, activeArray, 4); in setupTestMapper()
|
/frameworks/av/services/camera/libcameraservice/fuzzer/ |
D | DistortionMapperFuzzer.cpp | 34 int32_t activeArray[4], int32_t preCorrectionActiveArray[4]) { in setupTestMapper() 41 activeArray, 4); in setupTestMapper()
|
/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()
|