Searched refs:zoomRatio (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/services/camera/libcameraservice/device3/ |
D | ZoomRatioMapper.cpp | 295 float zoomRatio = 1.0; in deriveZoomRatio() local 321 zoomRatio = std::min(std::min(zoomRatioLeft, zoomRatioRight), in deriveZoomRatio() 324 ALOGV("%s: derived zoomRatio is %f", __FUNCTION__, zoomRatio); in deriveZoomRatio() 325 *zoomRatioRet = zoomRatio; in deriveZoomRatio() 331 float zoomRatio = 1.0; in separateZoomFromCropLocked() local 332 status_t res = deriveZoomRatio(metadata, &zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked() 341 res = metadata->update(ANDROID_CONTROL_ZOOM_RATIO, &zoomRatio, 1); in separateZoomFromCropLocked() 358 scaleCoordinates(entry.data.i32 + j, 1, zoomRatio, true /*clamp*/, arrayWidth, in separateZoomFromCropLocked() 364 scaleCoordinates(entry.data.i32 + j + 2, 1, zoomRatio, true /*clamp*/, arrayWidth, in separateZoomFromCropLocked() 373 scaleRects(entry.data.i32, entry.count / 4, zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked() [all …]
|
D | ZoomRatioMapper.h | 85 status_t deriveZoomRatio(const CameraMetadata* metadata, float *zoomRatio, int arrayWidth,
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | ZoomRatioTest.cpp | 343 float zoomRatio = 1.0f; in subCropOverZoomRangeTest() local 344 metadata.update(ANDROID_CONTROL_ZOOM_RATIO, &zoomRatio, 1); in subCropOverZoomRangeTest() 383 float zoomRatio = 3.0f; in subZoomOverMaxDigitalZoomTest() local 390 metadata.update(ANDROID_CONTROL_ZOOM_RATIO, &zoomRatio, 1); in subZoomOverMaxDigitalZoomTest() 427 float zoomRatio = 3.0f; in subZoomOverZoomRangeTest() local 433 metadata.update(ANDROID_CONTROL_ZOOM_RATIO, &zoomRatio, 1); in subZoomOverZoomRangeTest() 442 ASSERT_EQ(entry.data.f[0], zoomRatio); in subZoomOverZoomRangeTest() 452 ASSERT_EQ(entry.data.f[0], zoomRatio); in subZoomOverZoomRangeTest()
|
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/ |
D | HdrPreviewExtenderImpl.java | 145 Float zoomRatio = result.get(CaptureResult.CONTROL_ZOOM_RATIO); 146 if (zoomRatio != null) { 147 captureResults.add(new Pair<>(CaptureResult.CONTROL_ZOOM_RATIO, zoomRatio));
|
D | HdrImageCaptureExtenderImpl.java | 143 Float zoomRatio = result.second.get( in getCaptureProcessor() 145 if (zoomRatio != null) { in getCaptureProcessor() 147 zoomRatio)); in getCaptureProcessor()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | ExifUtils.cpp | 376 float zoomRatio = std::max(zoomRatioX, zoomRatioY); in setDigitalZoomRatio() local 379 if (zoomRatio <= noZoomThreshold) { in setDigitalZoomRatio() 383 static_cast<uint32_t>(std::round(zoomRatio * kRationalPrecision)), in setDigitalZoomRatio()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.cpp | 3266 float zoomRatio = 1 + zoomIncrement * zoom; in calculateCropRegion() local 3267 ALOG_ASSERT( (zoomRatio >= 1.f && zoomRatio <= maxDigitalZoom.data.f[0]), in calculateCropRegion() 3269 maxDigitalZoom.data.f[0], zoomRatio); in calculateCropRegion() 3273 maxDigitalZoom.data.f[0], zoomIncrement, zoomRatio, previewWidth, in calculateCropRegion() 3291 zoomWidth = fastInfo.arrayWidth / zoomRatio; in calculateCropRegion() 3297 zoomHeight = fastInfo.arrayHeight / zoomRatio; in calculateCropRegion() 3304 zoomWidth = fastInfo.arrayWidth / zoomRatio; in calculateCropRegion() 3305 zoomHeight = fastInfo.arrayHeight / zoomRatio; in calculateCropRegion()
|