• Home
  • Raw
  • Download

Lines Matching refs:arrayWidth

195         int32_t *arrayWidth, int32_t *arrayHeight) {  in getArrayDimensionsToBeUsed()  argument
196 if (settings == nullptr || arrayWidth == nullptr || arrayHeight == nullptr) { in getArrayDimensionsToBeUsed()
212 *arrayWidth = mArrayWidth; in getArrayDimensionsToBeUsed()
215 *arrayWidth = mArrayWidthMaximumResolution; 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()
244 cropRegionEntry.data.i32[2] = arrayWidth; 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
304 float arrayCenterX = arrayWidth / 2.0; in deriveZoomRatio()
315 float zoomRatioLeft = std::max(arrayWidth / (2 * cropRegionLeft), 1.0f); in deriveZoomRatio()
317 float zoomRatioRight = std::max(arrayWidth / (2 * cropRegionRight), 1.0f); in deriveZoomRatio()
330 int arrayWidth, int arrayHeight) { in separateZoomFromCropLocked() argument
332 status_t res = deriveZoomRatio(metadata, &zoomRatio, arrayWidth, arrayHeight); 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()
380 arrayWidth, arrayHeight); in separateZoomFromCropLocked()
388 int arrayWidth, int arrayHeight) { in combineZoomAndCropLocked() argument
405 scaleCoordinates(entry.data.i32 + j, 1, 1.0 / zoomRatio, true /*clamp*/, arrayWidth, in combineZoomAndCropLocked()
411 scaleCoordinates(entry.data.i32 + j + 2, 1, 1.0 / zoomRatio, true /*clamp*/, arrayWidth, 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
452 float xCentered = x - (arrayWidth - 2) / 2; in scaleCoordinates()
456 scaledX += (arrayWidth - 2) / 2; in scaleCoordinates()
462 int32_t right = arrayWidth - 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()