• Home
  • Raw
  • Download

Lines Matching refs:arrayHeight

219         int32_t *arrayWidth, int32_t *arrayHeight) {  in getArrayDimensionsToBeUsed()  argument
220 if (settings == nullptr || arrayWidth == nullptr || arrayHeight == nullptr) { in getArrayDimensionsToBeUsed()
237 *arrayHeight = mArrayHeight; in getArrayDimensionsToBeUsed()
240 *arrayHeight = mArrayHeightMaximumResolution; in getArrayDimensionsToBeUsed()
250 int arrayHeight, arrayWidth = 0; in updateCaptureRequest() local
251 res = getArrayDimensionsToBeUsed(request, &arrayWidth, &arrayHeight); in updateCaptureRequest()
269 if (cropWidth < arrayWidth && cropHeight < arrayHeight) { in updateCaptureRequest()
273 cropRegionEntry.data.i32[3] = arrayHeight; in updateCaptureRequest()
279 res = separateZoomFromCropLocked(request, false/*isResult*/, arrayWidth, arrayHeight); in updateCaptureRequest()
281 res = combineZoomAndCropLocked(request, false/*isResult*/, arrayWidth, arrayHeight); in updateCaptureRequest()
299 int arrayHeight, arrayWidth = 0; in updateCaptureResult() local
300 res = getArrayDimensionsToBeUsed(result, &arrayWidth, &arrayHeight); in updateCaptureResult()
307 res = combineZoomAndCropLocked(result, true/*isResult*/, arrayWidth, arrayHeight); in updateCaptureResult()
309 res = separateZoomFromCropLocked(result, true/*isResult*/, arrayWidth, arrayHeight); in updateCaptureResult()
328 int arrayWidth, int arrayHeight) { in deriveZoomRatio() argument
342 float arrayCenterY = arrayHeight / 2.0; in deriveZoomRatio()
353 float zoomRatioTop = std::max(arrayHeight / (2 * cropRegionTop), 1.0f); in deriveZoomRatio()
355 float zoomRatioBottom = std::max(arrayHeight / (2 * cropRegionBottom), 1.0f); in deriveZoomRatio()
367 int arrayWidth, int arrayHeight) { in separateZoomFromCropLocked() argument
369 status_t res = deriveZoomRatio(metadata, &zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked()
395 arrayHeight); in separateZoomFromCropLocked()
401 scaleRects(entry.data.i32, entry.count / 4, zoomRatio, arrayWidth, arrayHeight); in separateZoomFromCropLocked()
408 arrayWidth, arrayHeight); in separateZoomFromCropLocked()
416 int arrayWidth, int arrayHeight) { in combineZoomAndCropLocked() argument
433 arrayHeight); in combineZoomAndCropLocked()
438 scaleRects(entry.data.i32, entry.count / 4, 1.0 / zoomRatio, arrayWidth, arrayHeight); in combineZoomAndCropLocked()
444 arrayWidth, arrayHeight); in combineZoomAndCropLocked()
458 float scaleRatio, bool clamp, int32_t arrayWidth, int32_t arrayHeight) { in scaleCoordinates() argument
472 float yCentered = y - (arrayHeight - 2) / 2; in scaleCoordinates()
476 scaledY += (arrayHeight - 2) / 2; in scaleCoordinates()
482 int32_t bottom = arrayHeight - 1; in scaleCoordinates()
493 int32_t arrayWidth, int32_t arrayHeight) { in scaleRegion() argument
496 arrayHeight); in scaleRegion()
502 arrayHeight); in scaleRegion()
511 float scaleRatio, int32_t arrayWidth, int32_t arrayHeight) { in scaleRects() argument
523 scaleCoordinates(coords, 1, scaleRatio, true /*clamp*/, arrayWidth, arrayHeight); in scaleRects()
525 scaleCoordinates(coords+2, 1, scaleRatio, true /*clamp*/, arrayWidth, arrayHeight); in scaleRects()