Home
last modified time | relevance | path

Searched refs:maxAspectRatio (Results 1 – 1 of 1) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java570 float maxAspectRatio = (float)sz.getWidth() / (float)sz.getHeight(); in isSizeWithinSensorMargin() local
571 if (sensorAspectRatio < maxAspectRatio) { in isSizeWithinSensorMargin()
572 croppedHeight = (float)sensorSize.getWidth() / maxAspectRatio; in isSizeWithinSensorMargin()
573 } else if (sensorAspectRatio > maxAspectRatio) { in isSizeWithinSensorMargin()
574 croppedWidth = (float)sensorSize.getHeight() * maxAspectRatio; in isSizeWithinSensorMargin()