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()
268 List<Camera.Size> previewSizes = p.getSupportedPreviewSizes(); in mapScalerStreamConfigs() local284 Collections.sort(previewSizes, areaComparator); in mapScalerStreamConfigs()295 while (!previewSizes.isEmpty()) { in mapScalerStreamConfigs()296 int index = previewSizes.size() - 1; // max is always at the end in mapScalerStreamConfigs()297 Camera.Size size = previewSizes.get(index); in mapScalerStreamConfigs()303 previewSizes.remove(index); // Assume removing from end is O(1) in mapScalerStreamConfigs()316 if (previewSizes.isEmpty()) { in mapScalerStreamConfigs()320 previewSizes = p.getSupportedPreviewSizes(); in mapScalerStreamConfigs()324 Collections.sort(previewSizes, Collections.reverseOrder(areaComparator)); in mapScalerStreamConfigs()328 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()