Searched refs:previewSizes (Results 1 – 3 of 3) 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()
266 List<Camera.Size> previewSizes = p.getSupportedPreviewSizes(); in mapScalerStreamConfigs() local282 Collections.sort(previewSizes, areaComparator); in mapScalerStreamConfigs()293 while (!previewSizes.isEmpty()) { in mapScalerStreamConfigs()294 int index = previewSizes.size() - 1; // max is always at the end in mapScalerStreamConfigs()295 Camera.Size size = previewSizes.get(index); in mapScalerStreamConfigs()301 previewSizes.remove(index); // Assume removing from end is O(1) in mapScalerStreamConfigs()314 if (previewSizes.isEmpty()) { in mapScalerStreamConfigs()318 previewSizes = p.getSupportedPreviewSizes(); in mapScalerStreamConfigs()322 Collections.sort(previewSizes, Collections.reverseOrder(areaComparator)); in mapScalerStreamConfigs()326 HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, previewSizes); in mapScalerStreamConfigs()[all …]
1316 List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes(); in findClosestPreviewSize() local1317 return findClosestSizeFromList(width, height, previewSizes); in findClosestPreviewSize()