Searched refs:scalerCrop (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 205 Parameters::CropRegion scalerCrop = { in processFaceDetect() local 227 faceRects[i*4 + 0], scalerCrop); in processFaceDetect() 229 faceRects[i*4 + 1], scalerCrop); in processFaceDetect() 231 faceRects[i*4 + 2], scalerCrop); in processFaceDetect() 233 faceRects[i*4 + 3], scalerCrop); in processFaceDetect() 238 faceLandmarks[i*6 + 0], scalerCrop); in processFaceDetect() 240 faceLandmarks[i*6 + 1], scalerCrop); in processFaceDetect() 242 faceLandmarks[i*6 + 2], scalerCrop); in processFaceDetect() 244 faceLandmarks[i*6 + 3], scalerCrop); in processFaceDetect() 246 faceLandmarks[i*6 + 4], scalerCrop); in processFaceDetect() [all …]
|
D | Parameters.h | 374 int arrayXToNormalizedWithCrop(int x, const CropRegion &scalerCrop) const; 375 int arrayYToNormalizedWithCrop(int y, const CropRegion &scalerCrop) const; 398 CropRegion calculatePreviewCrop(const CropRegion &scalerCrop) const;
|
D | Parameters.cpp | 2984 const CropRegion &scalerCrop) const { in calculatePreviewCrop() 2987 float cropAspect = scalerCrop.width / scalerCrop.height; in calculatePreviewCrop() 2990 width = scalerCrop.width; in calculatePreviewCrop() 2991 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop() 2993 left = scalerCrop.left; in calculatePreviewCrop() 2994 top = scalerCrop.top + (scalerCrop.height - height) / 2; in calculatePreviewCrop() 2996 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop() 2997 height = scalerCrop.height; in calculatePreviewCrop() 2999 left = scalerCrop.left + (scalerCrop.width - width) / 2; in calculatePreviewCrop() 3000 top = scalerCrop.top; in calculatePreviewCrop() [all …]
|