Lines Matching refs:arrayHeight

198         int32_t *arrayWidth, int32_t *arrayHeight) {  in getArrayDimensionsToBeUsed()  argument
199 if (settings == nullptr || arrayWidth == nullptr || arrayHeight == nullptr) { in getArrayDimensionsToBeUsed()
216 *arrayHeight = mArrayHeight; in getArrayDimensionsToBeUsed()
219 *arrayHeight = mArrayHeightMaximumResolution; in getArrayDimensionsToBeUsed()
230 int arrayHeight, arrayWidth = 0; in updateCaptureRequest() local
231 res = getArrayDimensionsToBeUsed(request, &arrayWidth, &arrayHeight); in updateCaptureRequest()
244 if (cropWidth < arrayWidth && cropHeight < arrayHeight) { in updateCaptureRequest()
248 cropRegionEntry.data.i32[3] = arrayHeight; in updateCaptureRequest()
254 res = separateZoomFromCropLocked(request, false/*isResult*/, arrayWidth, arrayHeight); in updateCaptureRequest()
256 res = combineZoomAndCropLocked(request, false/*isResult*/, arrayWidth, arrayHeight); in updateCaptureRequest()
273 int arrayHeight, arrayWidth = 0; in updateCaptureResult() local
274 res = getArrayDimensionsToBeUsed(result, &arrayWidth, &arrayHeight); in updateCaptureResult()
279 res = combineZoomAndCropLocked(result, true/*isResult*/, arrayWidth, arrayHeight); in updateCaptureResult()
281 res = separateZoomFromCropLocked(result, true/*isResult*/, arrayWidth, arrayHeight); in updateCaptureResult()
294 int arrayWidth, int arrayHeight) { in deriveZoomRatio() argument
308 float arrayCenterY = arrayHeight / 2.0; in deriveZoomRatio()
319 float zoomRatioTop = std::max(arrayHeight / (2 * cropRegionTop), 1.0f); in deriveZoomRatio()
321 float zoomRatioBottom = std::max(arrayHeight / (2 * cropRegionBottom), 1.0f); in deriveZoomRatio()
333 int arrayWidth, int arrayHeight) { in separateZoomFromCropLocked() argument
335 status_t res = deriveZoomRatio(metadata, &zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked()
361 arrayHeight); in separateZoomFromCropLocked()
367 scaleRects(entry.data.i32, entry.count / 4, zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked()
374 arrayWidth, arrayHeight); in separateZoomFromCropLocked()
382 int arrayWidth, int arrayHeight) { in combineZoomAndCropLocked() argument
399 arrayHeight); in combineZoomAndCropLocked()
404 scaleRects(entry.data.i32, entry.count / 4, 1.0 / zoomRatio, arrayWidth, arrayHeight); in combineZoomAndCropLocked()
410 arrayWidth, arrayHeight); in combineZoomAndCropLocked()
424 float scaleRatio, bool clamp, int32_t arrayWidth, int32_t arrayHeight) { in scaleCoordinates() argument
438 float yCentered = y - (arrayHeight - 2) / 2; in scaleCoordinates()
442 scaledY += (arrayHeight - 2) / 2; in scaleCoordinates()
448 int32_t bottom = arrayHeight - 1; in scaleCoordinates()
459 int32_t arrayWidth, int32_t arrayHeight) { in scaleRegion() argument
462 arrayHeight); in scaleRegion()
468 arrayHeight); in scaleRegion()
477 float scaleRatio, int32_t arrayWidth, int32_t arrayHeight) { in scaleRects() argument
489 scaleCoordinates(coords, 1, scaleRatio, true /*clamp*/, arrayWidth, arrayHeight); in scaleRects()
491 scaleCoordinates(coords+2, 1, scaleRatio, true /*clamp*/, arrayWidth, arrayHeight); in scaleRects()