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.cpp2986 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePreviewCrop() local
2989 if (previewAspect > cropAspect) { in calculatePreviewCrop()
2991 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop()
2996 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop()
3383 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePictureFovs() local
3385 if (videoAspect > previewAspect) { in calculatePictureFovs()
3386 previewAspect = videoAspect; in calculatePictureFovs()
3389 if (arrayAspect < previewAspect) { in calculatePictureFovs()
3390 vertCropFactor = arrayAspect / previewAspect; in calculatePictureFovs()
3392 horizCropFactor = previewAspect / arrayAspect; in calculatePictureFovs()
[all …]