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.cpp2918 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePreviewCrop() local
2921 if (previewAspect > cropAspect) { in calculatePreviewCrop()
2923 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop()
2928 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop()
3294 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePictureFovs() local
3296 if (videoAspect > previewAspect) { in calculatePictureFovs()
3297 previewAspect = videoAspect; in calculatePictureFovs()
3300 if (arrayAspect < previewAspect) { in calculatePictureFovs()
3301 vertCropFactor = arrayAspect / previewAspect; in calculatePictureFovs()
3303 horizCropFactor = previewAspect / arrayAspect; in calculatePictureFovs()
[all …]