Searched refs:sizes (Results 1 – 25 of 25) sorted by relevance
86 public List<Size> sizes = new LinkedList<Size>(); field in ResolutionUtil.ResolutionBucket104 sizes.add(size); in add()105 Collections.sort(sizes, new Comparator<Size>() { in add()113 maxPixels = sizes.get(0).width() * sizes.get(0).height(); in add()130 …public static List<Size> getDisplayableSizesFromSupported(List<Size> sizes, boolean isBackCamera) { in getDisplayableSizesFromSupported() argument131 List<ResolutionBucket> buckets = parseAvailableSizes(sizes, isBackCamera); in getDisplayableSizesFromSupported()148 List<Size> result = new ArrayList<Size>(sizes.size()); in getDisplayableSizesFromSupported()153 result.addAll(pickUpToThree(bucket.sizes)); in getDisplayableSizesFromSupported()182 private static List<Size> pickUpToThree(List<Size> sizes) { in pickUpToThree() argument184 Size largest = sizes.get(0); in pickUpToThree()[all …]
122 List<Size> sizes; in computeSizesForCamera() local126 sizes = CameraPictureSizesCacher.getCachedSizesForCamera(cameraId, mContext) in computeSizesForCamera()129 sizes = CameraPictureSizesCacher.getSizesForCamera(cameraId, mContext); in computeSizesForCamera()132 if (sizes != null) { in computeSizesForCamera()133 sizes = ResolutionUtil in computeSizesForCamera()134 .getDisplayableSizesFromSupported(sizes, in computeSizesForCamera()138 sizes = ResolutionUtil.filterBlackListedSizes(sizes, blacklisted); in computeSizesForCamera()139 return sizes; in computeSizesForCamera()
44 public static void updateSizesForCamera(Context context, int cameraId, List<Size> sizes) { in updateSizesForCamera() argument53 editor.putString(key_sizes, Size.listToString(sizes)); in updateSizesForCamera()88 List<Size> sizes = Size.buildListFromCameraSizes(thisCamera.getParameters() in getSizesForCamera() local93 editor.putString(key_sizes, Size.listToString(sizes)); in getSizesForCamera()95 return sizes; in getSizesForCamera()
197 public void fill(List<Size> sizes, ListPreference preference) { in onResume()198 setEntriesForSelection(sizes, preference); in onResume()
29 public void fill(List<Size> sizes, ListPreference preference); in fill() argument
151 public static Size[] convert(android.util.Size[] sizes) { in convert() argument152 Size[] converted = new Size[sizes.length]; in convert()153 for (int i = 0; i < sizes.length; ++i) { in convert()154 converted[i] = new Size(sizes[i].getWidth(), sizes[i].getHeight()); in convert()159 public static List<Size> convert(List<com.android.ex.camera2.portability.Size> sizes) { in convert() argument160 ArrayList<Size> converted = new ArrayList<>(sizes.size()); in convert()161 for (com.android.ex.camera2.portability.Size size : sizes) { in convert()173 public static String listToString(List<Size> sizes) { in listToString() argument175 for (Size s : sizes) { in listToString()
477 public static Size getOptimalPreviewSize(List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument478 int optimalPickIndex = getOptimalPreviewSizeIndex(sizes, targetRatio); in getOptimalPreviewSize()482 return sizes.get(optimalPickIndex); in getOptimalPreviewSize()500 public static int getOptimalPreviewSizeIndex(List<Size> sizes, double targetRatio) { in getOptimalPreviewSizeIndex() argument506 return getOptimalPreviewSizeIndex(sizes, targetRatio, aspectRatioTolerance); in getOptimalPreviewSizeIndex()593 List<Size> sizes, int targetWidth, in getOptimalVideoSnapshotPictureSize() argument598 if (sizes == null) { in getOptimalVideoSnapshotPictureSize()607 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()615 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()629 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
55 public static Size getOptimalPreviewSize(Size[] sizes,double targetRatio) { in getOptimalPreviewSize() argument56 return getOptimalPreviewSize(sizes, targetRatio, null); in getOptimalPreviewSize()65 public static Size getOptimalPreviewSize(Size[] sizes, in getOptimalPreviewSize() argument72 for (Size s : sizes) { in getOptimalPreviewSize()80 for (Size s : sizes) { in getOptimalPreviewSize()95 for (Size s : sizes) { in getOptimalPreviewSize()
818 List<Size> sizes = Size.convert(capabilities.getSupportedPreviewSizes()); in getDesiredPreviewSize() local826 Iterator<Size> it = sizes.iterator(); in getDesiredPreviewSize()838 for (Size size : sizes) { in getDesiredPreviewSize()847 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes, in getDesiredPreviewSize()
1999 List<Size> sizes = Size.convert(mCameraCapabilities.getSupportedPreviewSizes()); in updateParametersPictureSize() local2000 Size optimalSize = CameraUtil.getOptimalPreviewSize(sizes, in updateParametersPictureSize()
375 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument378 if (sizes == null) return null; in getOptimalPreviewSize()398 for (Size size : sizes) { in getOptimalPreviewSize()412 for (Size size : sizes) { in getOptimalPreviewSize()424 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() argument427 if (sizes == null) return null; in getOptimalVideoSnapshotPictureSize()432 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()444 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
279 private static List<String> sizeListToStringList(List<Size> sizes) { in sizeListToStringList() argument281 for (Size size : sizes) { in sizeListToStringList()
797 List<Size> sizes = mParameters.getSupportedPreviewSizes(); in getDesiredPreviewSize() local800 Iterator it = sizes.iterator(); in getDesiredPreviewSize()808 Size optimalSize = Util.getOptimalPreviewSize(this, sizes, in getDesiredPreviewSize()
1958 List<Size> sizes = mParameters.getSupportedPreviewSizes(); in updateCameraParametersPreference() local1960 sizes, (double) size.width / size.height); in updateCameraParametersPreference()
437 List<Size> sizes, double targetRatio) { in getOptimalPreviewSize() argument440 if (sizes == null) return null; in getOptimalPreviewSize()453 for (Size size : sizes) { in getOptimalPreviewSize()466 for (Size size : sizes) { in getOptimalPreviewSize()478 List<Size> sizes, double targetRatio) { in getOptimalVideoSnapshotPictureSize() argument481 if (sizes == null) return null; in getOptimalVideoSnapshotPictureSize()486 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()498 for (Size size : sizes) { in getOptimalVideoSnapshotPictureSize()
334 private static List<String> sizeListToStringList(List<Size> sizes) { in sizeListToStringList() argument336 for (Size size : sizes) { in sizeListToStringList()
763 List<Size> sizes = mParameters.getSupportedPreviewSizes(); in getDesiredPreviewSize() local766 Iterator<Size> it = sizes.iterator(); in getDesiredPreviewSize()774 Size optimalSize = Util.getOptimalPreviewSize(mActivity, sizes, in getDesiredPreviewSize()
2071 List<Size> sizes = mParameters.getSupportedPreviewSizes(); in updateCameraParametersPreference() local2072 Size optimalSize = Util.getOptimalPreviewSize(mActivity, sizes, in updateCameraParametersPreference()
169 final List<Camera.Size> sizes = params.getSupportedPreviewSizes(); in startPreview() local173 for (Camera.Size size : sizes) { in startPreview()185 for (Camera.Size size : sizes) { in startPreview()205 Camera.Size size = sizes.get(0); in startPreview()
997 final List<Camera.Size> sizes = new ArrayList<Camera.Size>( in chooseBestPictureSize() local1002 Collections.sort(sizes, new SizeComparator(maxWidth, maxHeight, aspectRatio, maxPixels)); in chooseBestPictureSize()1004 return sizes.get(0); in chooseBestPictureSize()1012 final List<Camera.Size> sizes = new ArrayList<Camera.Size>( in chooseBestPreviewSize() local1018 Collections.sort(sizes, new SizeComparator(Integer.MAX_VALUE, Integer.MAX_VALUE, in chooseBestPreviewSize()1021 return sizes.get(0); in chooseBestPreviewSize()
91 List<Camera.Size> sizes = params.getSupportedPreviewSizes(); in dumpCameraCaps() local95 for (Size size : sizes) { in dumpCameraCaps()
1017 boolean constrained, Size[] sizes) { in moveBox() argument1070 initBox(i, sizes[i + BOX_MAX]); in moveBox()
1dictionary=main:en,locale=en,description=English,date=1414726273, ...