Searched refs:optimalSize (Results 1 – 6 of 6) sorted by relevance
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 380 Size optimalSize = null; in getOptimalPreviewSize() 402 optimalSize = size; in getOptimalPreviewSize() 409 if (optimalSize == null) { in getOptimalPreviewSize() 414 optimalSize = size; in getOptimalPreviewSize() 419 return optimalSize; in getOptimalPreviewSize() 429 Size optimalSize = null; in getOptimalVideoSnapshotPictureSize() 435 if (optimalSize == null || size.width > optimalSize.width) { in getOptimalVideoSnapshotPictureSize() 436 optimalSize = size; in getOptimalVideoSnapshotPictureSize() 442 if (optimalSize == null) { in getOptimalVideoSnapshotPictureSize() 445 if (optimalSize == null || size.width > optimalSize.width) { in getOptimalVideoSnapshotPictureSize() [all …]
|
D | VideoCamera.java | 808 Size optimalSize = Util.getOptimalPreviewSize(this, sizes, in getDesiredPreviewSize() local 810 mDesiredPreviewWidth = optimalSize.width; in getDesiredPreviewSize() 811 mDesiredPreviewHeight = optimalSize.height; in getDesiredPreviewSize() 1939 Size optimalSize = Util.getOptimalVideoSnapshotPictureSize(supported, in setCameraParameters() local 1942 if (!original.equals(optimalSize)) { in setCameraParameters() 1943 mParameters.setPictureSize(optimalSize.width, optimalSize.height); in setCameraParameters() 1945 Log.v(TAG, "Video snapshot size is " + optimalSize.width + "x" + in setCameraParameters() 1946 optimalSize.height); in setCameraParameters()
|
D | Camera.java | 1977 Size optimalSize = Util.getOptimalPreviewSize(this, in updateCameraParametersPreference() local 1980 if (!original.equals(optimalSize)) { in updateCameraParametersPreference() 1981 mParameters.setPreviewSize(optimalSize.width, optimalSize.height); in updateCameraParametersPreference() 1988 Log.v(TAG, "Preview size is " + optimalSize.width + "x" + optimalSize.height); in updateCameraParametersPreference()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 602 Size optimalSize = null; in getOptimalVideoSnapshotPictureSize() local 620 if (optimalSize == null || size.width() > optimalSize.width()) { in getOptimalVideoSnapshotPictureSize() 621 optimalSize = size; in getOptimalVideoSnapshotPictureSize() 627 if (optimalSize == null) { in getOptimalVideoSnapshotPictureSize() 630 if (optimalSize == null || size.width() > optimalSize.width()) { in getOptimalVideoSnapshotPictureSize() 631 optimalSize = size; in getOptimalVideoSnapshotPictureSize() 635 return optimalSize; in getOptimalVideoSnapshotPictureSize()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PhotoModule.java | 2004 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes, in updateParametersPictureSize() local 2007 if (!optimalSize.equals(original)) { in updateParametersPictureSize() 2008 Log.v(TAG, "setting preview size. optimal: " + optimalSize + "original: " + original); in updateParametersPictureSize() 2009 mCameraSettings.setPreviewSize(optimalSize.toPortabilitySize()); in updateParametersPictureSize() 2015 if (optimalSize.width() != 0 && optimalSize.height() != 0) { in updateParametersPictureSize() 2017 mUI.updatePreviewAspectRatio((float) optimalSize.width() in updateParametersPictureSize() 2018 / (float) optimalSize.height()); in updateParametersPictureSize() 2020 Log.d(TAG, "Preview size is " + optimalSize); in updateParametersPictureSize()
|
D | VideoModule.java | 848 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes, in getDesiredPreviewSize() local 850 return new Point(optimalSize.width(), optimalSize.height()); in getDesiredPreviewSize() 1684 Size optimalSize = CameraUtil.getOptimalVideoSnapshotPictureSize(supported, in setCameraParameters() local 1687 if (!original.equals(optimalSize)) { in setCameraParameters() 1688 mCameraSettings.setPhotoSize(optimalSize.toPortabilitySize()); in setCameraParameters() 1690 Log.d(TAG, "Video snapshot size is " + optimalSize); in setCameraParameters()
|