Instantly share code, notes, and snippets.

Embed
What would you like to do?
val characteristics: CameraCharacteristics = ...
val outputFormat: Int = ... // e.g. ImageFormat.JPEG
val sizes = characteristics.get(
CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP)
.getOutputSizes(outputFormat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment