Home
last modified time | relevance | path

Searched refs:screenResolution (Results 1 – 2 of 2) sorted by relevance

/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/
DCameraManager.java184 Point screenResolution = configManager.getScreenResolution(); in getFramingRect() local
185 int width = screenResolution.x * 3 / 4; in getFramingRect()
191 int height = screenResolution.y * 3 / 4; in getFramingRect()
197 int leftOffset = (screenResolution.x - width) / 2; in getFramingRect()
198 int topOffset = (screenResolution.y - height) / 2; in getFramingRect()
220 Point screenResolution = configManager.getScreenResolution(); in getFramingRectInPreview() local
221 rect.left = rect.left * cameraResolution.x / screenResolution.x; in getFramingRectInPreview()
222 rect.right = rect.right * cameraResolution.x / screenResolution.x; in getFramingRectInPreview()
223 rect.top = rect.top * cameraResolution.y / screenResolution.y; in getFramingRectInPreview()
224 rect.bottom = rect.bottom * cameraResolution.y / screenResolution.y; in getFramingRectInPreview()
[all …]
DCameraConfigurationManager.java41 private Point screenResolution; field in CameraConfigurationManager
65 screenResolution = new Point(width, height); in initFromCameraParameters()
66 Log.i(TAG, "Screen resolution: " + screenResolution); in initFromCameraParameters()
67 cameraResolution = findBestPreviewSizeValue(parameters, screenResolution, false); in initFromCameraParameters()
98 return screenResolution; in getScreenResolution()
135 Point screenResolution, in findBestPreviewSizeValue() argument
146 …int newDiff = Math.abs(screenResolution.x * supportedHeight - supportedWidth * screenResolution.y); in findBestPreviewSizeValue()