Last active
October 1, 2019 15:10
-
-
Save owahltinez/0c8c4b168701dff436655378155316e0 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 context = this as Context // assuming we are inside of an activity | |
val surfaceViewSize = getPreviewOutputSize( | |
context, characteristics, SurfaceHolder::class.java) | |
val imageReaderSize = getPreviewOutputSize( | |
context, characteristics, ImageReader::class.java, format = ImageFormat.YUV_420_888) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment