Lines Matching refs:arrayHeight
195 int32_t *arrayWidth, int32_t *arrayHeight) { in getArrayDimensionsToBeUsed() argument
196 if (settings == nullptr || arrayWidth == nullptr || arrayHeight == nullptr) { in getArrayDimensionsToBeUsed()
213 *arrayHeight = mArrayHeight; in getArrayDimensionsToBeUsed()
216 *arrayHeight = mArrayHeightMaximumResolution; in getArrayDimensionsToBeUsed()
227 int arrayHeight, arrayWidth = 0; in updateCaptureRequest() local
228 res = getArrayDimensionsToBeUsed(request, &arrayWidth, &arrayHeight); in updateCaptureRequest()
241 if (cropWidth < arrayWidth && cropHeight < arrayHeight) { in updateCaptureRequest()
245 cropRegionEntry.data.i32[3] = arrayHeight; in updateCaptureRequest()
251 res = separateZoomFromCropLocked(request, false/*isResult*/, arrayWidth, arrayHeight); in updateCaptureRequest()
253 res = combineZoomAndCropLocked(request, false/*isResult*/, arrayWidth, arrayHeight); in updateCaptureRequest()
270 int arrayHeight, arrayWidth = 0; in updateCaptureResult() local
271 res = getArrayDimensionsToBeUsed(result, &arrayWidth, &arrayHeight); in updateCaptureResult()
276 res = combineZoomAndCropLocked(result, true/*isResult*/, arrayWidth, arrayHeight); in updateCaptureResult()
278 res = separateZoomFromCropLocked(result, true/*isResult*/, arrayWidth, arrayHeight); in updateCaptureResult()
291 int arrayWidth, int arrayHeight) { in deriveZoomRatio() argument
305 float arrayCenterY = arrayHeight / 2.0; in deriveZoomRatio()
316 float zoomRatioTop = std::max(arrayHeight / (2 * cropRegionTop), 1.0f); in deriveZoomRatio()
318 float zoomRatioBottom = std::max(arrayHeight / (2 * cropRegionBottom), 1.0f); in deriveZoomRatio()
330 int arrayWidth, int arrayHeight) { in separateZoomFromCropLocked() argument
332 status_t res = deriveZoomRatio(metadata, &zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked()
359 arrayHeight); in separateZoomFromCropLocked()
365 arrayHeight); in separateZoomFromCropLocked()
373 scaleRects(entry.data.i32, entry.count / 4, zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked()
380 arrayWidth, arrayHeight); in separateZoomFromCropLocked()
388 int arrayWidth, int arrayHeight) { in combineZoomAndCropLocked() argument
406 arrayHeight); in combineZoomAndCropLocked()
412 arrayHeight); in combineZoomAndCropLocked()
419 scaleRects(entry.data.i32, entry.count / 4, 1.0 / zoomRatio, arrayWidth, arrayHeight); in combineZoomAndCropLocked()
425 arrayWidth, arrayHeight); in combineZoomAndCropLocked()
439 float scaleRatio, bool clamp, int32_t arrayWidth, int32_t arrayHeight) { in scaleCoordinates() argument
453 float yCentered = y - (arrayHeight - 2) / 2; in scaleCoordinates()
457 scaledY += (arrayHeight - 2) / 2; in scaleCoordinates()
463 int32_t bottom = arrayHeight - 1; in scaleCoordinates()
474 float scaleRatio, int32_t arrayWidth, int32_t arrayHeight) { in scaleRects() argument
486 scaleCoordinates(coords, 1, scaleRatio, true /*clamp*/, arrayWidth, arrayHeight); in scaleRects()
488 scaleCoordinates(coords+2, 1, scaleRatio, true /*clamp*/, arrayWidth, arrayHeight); in scaleRects()