-
- All Implemented Interfaces:
public final class SizeSelectionHelperInternal use only.
-
-
Method Summary
Modifier and Type Method Description static Pair<Size, Size>getBestSize(@NonNull() List<Size> pictureSizes, @NonNull() List<Size> previewSizes, int maxArea, int minArea, float minAspectRatio)static SizegetLargestAllowedSize(@NonNull() List<Size> sizes, int maxArea)static SizegetLargestAllowedSizeWithSimilarAspectRatio(@NonNull() List<Size> sizes, @NonNull() Size referenceSize, int maxArea)static SizegetClosestSizeWithSimilarAspectRatio(@NonNull() List<Size> sizes, @NonNull() Size referenceSize, int maxArea)-
-
Method Detail
-
getBestSize
@Nullable() static Pair<Size, Size> getBestSize(@NonNull() List<Size> pictureSizes, @NonNull() List<Size> previewSizes, int maxArea, int minArea, float minAspectRatio)
-
getLargestAllowedSize
@Nullable() static Size getLargestAllowedSize(@NonNull() List<Size> sizes, int maxArea)
-
getLargestAllowedSizeWithSimilarAspectRatio
@Nullable() static Size getLargestAllowedSizeWithSimilarAspectRatio(@NonNull() List<Size> sizes, @NonNull() Size referenceSize, int maxArea)
-
-
-
-