Searched refs:scalerCrop (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | FrameProcessor.cpp | 178 Parameters::CropRegion scalerCrop = { in processFaceDetect() local 200 faceRects[i*4 + 0], scalerCrop); in processFaceDetect() 202 faceRects[i*4 + 1], scalerCrop); in processFaceDetect() 204 faceRects[i*4 + 2], scalerCrop); in processFaceDetect() 206 faceRects[i*4 + 3], scalerCrop); in processFaceDetect() 212 faceLandmarks[i*6 + 0], scalerCrop); in processFaceDetect() 214 faceLandmarks[i*6 + 1], scalerCrop); in processFaceDetect() 216 faceLandmarks[i*6 + 2], scalerCrop); in processFaceDetect() 218 faceLandmarks[i*6 + 3], scalerCrop); in processFaceDetect() 220 faceLandmarks[i*6 + 4], scalerCrop); in processFaceDetect() [all …]
|
D | Parameters.h | 340 int arrayXToNormalizedWithCrop(int x, const CropRegion &scalerCrop) const; 341 int arrayYToNormalizedWithCrop(int y, const CropRegion &scalerCrop) const; 364 CropRegion calculatePreviewCrop(const CropRegion &scalerCrop) const;
|
D | Parameters.cpp | 2677 const CropRegion &scalerCrop) const { in calculatePreviewCrop() 2680 float cropAspect = scalerCrop.width / scalerCrop.height; in calculatePreviewCrop() 2683 width = scalerCrop.width; in calculatePreviewCrop() 2684 height = cropAspect * scalerCrop.height / previewAspect; in calculatePreviewCrop() 2686 left = scalerCrop.left; in calculatePreviewCrop() 2687 top = scalerCrop.top + (scalerCrop.height - height) / 2; in calculatePreviewCrop() 2689 width = previewAspect * scalerCrop.width / cropAspect; in calculatePreviewCrop() 2690 height = scalerCrop.height; in calculatePreviewCrop() 2692 left = scalerCrop.left + (scalerCrop.width - width) / 2; in calculatePreviewCrop() 2693 top = scalerCrop.top; in calculatePreviewCrop() [all …]
|