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 | 373 int arrayXToNormalizedWithCrop(int x, const CropRegion &scalerCrop) const; 374 int arrayYToNormalizedWithCrop(int y, const CropRegion &scalerCrop) const; 397 CropRegion calculatePreviewCrop(const CropRegion &scalerCrop) const;
|
D | Parameters.cpp | 2975 const CropRegion &scalerCrop) const { in calculatePreviewCrop() 2978 float cropAspect = scalerCrop.width / scalerCrop.height; in calculatePreviewCrop() 2981 width = scalerCrop.width; in calculatePreviewCrop() 2982 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop() 2984 left = scalerCrop.left; in calculatePreviewCrop() 2985 top = scalerCrop.top + (scalerCrop.height - height) / 2; in calculatePreviewCrop() 2987 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop() 2988 height = scalerCrop.height; in calculatePreviewCrop() 2990 left = scalerCrop.left + (scalerCrop.width - width) / 2; in calculatePreviewCrop() 2991 top = scalerCrop.top; in calculatePreviewCrop() [all …]
|