Searched refs:maxAspectRatio (Results 1 – 1 of 1) sorted by relevance
567 float maxAspectRatio = (float)sz.getWidth() / (float)sz.getHeight(); in isSizeWithinSensorMargin() local568 if (sensorAspectRatio < maxAspectRatio) { in isSizeWithinSensorMargin()569 croppedHeight = (float)sensorSize.getWidth() / maxAspectRatio; in isSizeWithinSensorMargin()570 } else if (sensorAspectRatio > maxAspectRatio) { in isSizeWithinSensorMargin()571 croppedWidth = (float)sensorSize.getHeight() * maxAspectRatio; in isSizeWithinSensorMargin()