Created
October 11, 2018 18:32
-
-
Save owahltinez/aab4512852c6806e8f7db37e21748308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val characteristics: CameraCharacteristics = ... | |
val targetClass: Class<T> = ... // e.g. SurfaceView::class.java | |
val sizes = characteristics.get( | |
CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP) | |
.getOutputSizes(targetClass) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment