Skip to content

Instantly share code, notes, and snippets.

@owahltinez
Created October 11, 2018 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owahltinez/aab4512852c6806e8f7db37e21748308 to your computer and use it in GitHub Desktop.
Save owahltinez/aab4512852c6806e8f7db37e21748308 to your computer and use it in GitHub Desktop.
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