Home
last modified time | relevance | path

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

/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp2679 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePreviewCrop() local
2682 if (previewAspect > cropAspect) { in calculatePreviewCrop()
2684 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop()
2689 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop()
3017 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePictureFovs() local
3019 if (videoAspect > previewAspect) { in calculatePictureFovs()
3020 previewAspect = videoAspect; in calculatePictureFovs()
3023 if (arrayAspect < previewAspect) { in calculatePictureFovs()
3024 vertCropFactor = arrayAspect / previewAspect; in calculatePictureFovs()
3026 horizCropFactor = previewAspect / arrayAspect; in calculatePictureFovs()
[all …]