Home
last modified time | relevance | path

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

/frameworks/av/services/camera/libcameraservice/api1/client2/
DFrameProcessor.cpp174 Parameters::CropRegion scalerCrop = { in processFaceDetect() local
196 faceRects[i*4 + 0], scalerCrop); in processFaceDetect()
198 faceRects[i*4 + 1], scalerCrop); in processFaceDetect()
200 faceRects[i*4 + 2], scalerCrop); in processFaceDetect()
202 faceRects[i*4 + 3], scalerCrop); in processFaceDetect()
207 faceLandmarks[i*6 + 0], scalerCrop); in processFaceDetect()
209 faceLandmarks[i*6 + 1], scalerCrop); in processFaceDetect()
211 faceLandmarks[i*6 + 2], scalerCrop); in processFaceDetect()
213 faceLandmarks[i*6 + 3], scalerCrop); in processFaceDetect()
215 faceLandmarks[i*6 + 4], scalerCrop); in processFaceDetect()
[all …]
DParameters.h370 int arrayXToNormalizedWithCrop(int x, const CropRegion &scalerCrop) const;
371 int arrayYToNormalizedWithCrop(int y, const CropRegion &scalerCrop) const;
394 CropRegion calculatePreviewCrop(const CropRegion &scalerCrop) const;
DParameters.cpp2915 const CropRegion &scalerCrop) const { in calculatePreviewCrop()
2918 float cropAspect = scalerCrop.width / scalerCrop.height; in calculatePreviewCrop()
2921 width = scalerCrop.width; in calculatePreviewCrop()
2922 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop()
2924 left = scalerCrop.left; in calculatePreviewCrop()
2925 top = scalerCrop.top + (scalerCrop.height - height) / 2; in calculatePreviewCrop()
2927 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop()
2928 height = scalerCrop.height; in calculatePreviewCrop()
2930 left = scalerCrop.left + (scalerCrop.width - width) / 2; in calculatePreviewCrop()
2931 top = scalerCrop.top; in calculatePreviewCrop()
[all …]