Skip to content

Instantly share code, notes, and snippets.

@owahltinez
Created October 11, 2018 18:39
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/ec67b9c2177a3e1934a642564117cfe9 to your computer and use it in GitHub Desktop.
Save owahltinez/ec67b9c2177a3e1934a642564117cfe9 to your computer and use it in GitHub Desktop.
val frameBufferCount = 3 // just an example, depends on your usage of ImageReader
val imageReader = ImageReader.newInstance(
imageReaderSize.width, imageReaderSize.height, ImageFormat.YUV_420_888
frameBufferCount)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment