Searched refs:scalerCrop (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 184 Parameters::CropRegion scalerCrop = { in processFaceDetect() local 206 faceRects[i*4 + 0], scalerCrop); in processFaceDetect() 208 faceRects[i*4 + 1], scalerCrop); in processFaceDetect() 210 faceRects[i*4 + 2], scalerCrop); in processFaceDetect() 212 faceRects[i*4 + 3], scalerCrop); in processFaceDetect() 218 faceLandmarks[i*6 + 0], scalerCrop); in processFaceDetect() 220 faceLandmarks[i*6 + 1], scalerCrop); in processFaceDetect() 222 faceLandmarks[i*6 + 2], scalerCrop); in processFaceDetect() 224 faceLandmarks[i*6 + 3], scalerCrop); in processFaceDetect() 226 faceLandmarks[i*6 + 4], scalerCrop); in processFaceDetect() [all …]
|
D | Parameters.h | 343 int arrayXToNormalizedWithCrop(int x, const CropRegion &scalerCrop) const; 344 int arrayYToNormalizedWithCrop(int y, const CropRegion &scalerCrop) const; 367 CropRegion calculatePreviewCrop(const CropRegion &scalerCrop) const;
|
D | Parameters.cpp | 2708 const CropRegion &scalerCrop) const { in calculatePreviewCrop() 2711 float cropAspect = scalerCrop.width / scalerCrop.height; in calculatePreviewCrop() 2714 width = scalerCrop.width; in calculatePreviewCrop() 2715 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop() 2717 left = scalerCrop.left; in calculatePreviewCrop() 2718 top = scalerCrop.top + (scalerCrop.height - height) / 2; in calculatePreviewCrop() 2720 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop() 2721 height = scalerCrop.height; in calculatePreviewCrop() 2723 left = scalerCrop.left + (scalerCrop.width - width) / 2; in calculatePreviewCrop() 2724 top = scalerCrop.top; in calculatePreviewCrop() [all …]
|