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.cpp2977 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePreviewCrop() local
2980 if (previewAspect > cropAspect) { in calculatePreviewCrop()
2982 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop()
2987 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop()
3374 float previewAspect = static_cast<float>(previewWidth) / previewHeight; in calculatePictureFovs() local
3376 if (videoAspect > previewAspect) { in calculatePictureFovs()
3377 previewAspect = videoAspect; in calculatePictureFovs()
3380 if (arrayAspect < previewAspect) { in calculatePictureFovs()
3381 vertCropFactor = arrayAspect / previewAspect; in calculatePictureFovs()
3383 horizCropFactor = previewAspect / arrayAspect; in calculatePictureFovs()
[all …]