Searched refs:previewSizes (Results 1 – 4 of 4) sorted by relevance
277 List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes(); in findClosestSize() local280 int smallestWidth = previewSizes.get(0).width; in findClosestSize()281 int smallestHeight = previewSizes.get(0).height; in findClosestSize()282 for (Camera.Size size : previewSizes) { in findClosestSize()
275 List<Camera.Size> previewSizes = p.getSupportedPreviewSizes(); in mapScalerStreamConfigs() local291 Collections.sort(previewSizes, areaComparator); in mapScalerStreamConfigs()302 while (!previewSizes.isEmpty()) { in mapScalerStreamConfigs()303 int index = previewSizes.size() - 1; // max is always at the end in mapScalerStreamConfigs()304 Camera.Size size = previewSizes.get(index); in mapScalerStreamConfigs()310 previewSizes.remove(index); // Assume removing from end is O(1) in mapScalerStreamConfigs()323 if (previewSizes.isEmpty()) { in mapScalerStreamConfigs()327 previewSizes = p.getSupportedPreviewSizes(); in mapScalerStreamConfigs()331 Collections.sort(previewSizes, Collections.reverseOrder(areaComparator)); in mapScalerStreamConfigs()335 HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, previewSizes); in mapScalerStreamConfigs()[all …]
918 List<Size> previewSizes = getSizesWithinBound( in enumerateAvailableSizes() local920 if ((previewSizes == null) || (previewSizes.isEmpty())) { in enumerateAvailableSizes()924 List<Size> orderedPreviewSizes = getAscendingOrderSizes(previewSizes, in enumerateAvailableSizes()
1316 List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes(); in findClosestPreviewSize() local1317 return findClosestSizeFromList(width, height, previewSizes); in findClosestPreviewSize()