Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCamera.java411 final double previewRatio = getRatio(previewSize.width, previewSize.height); in getBestPictureSize() local
418 if (ratio == previewRatio) { in getBestPictureSize()
420 } else if (Math.abs(ratio - previewRatio) < MAX_RATIO_DIFF) { in getBestPictureSize()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp3278 float previewRatio = static_cast<float>(previewWidth) / previewHeight; in calculateCropRegion() local
3289 if (previewRatio >= arrayRatio) { in calculateCropRegion()