Skip to content

Commit

Permalink
Use output format to fetch supported sizes for image capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyank Vasa authored and pvasa committed Aug 21, 2019
1 parent dbd57a9 commit 8d8667e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ internal open class Camera2(
}

protected open fun collectPictureSizes(sizes: SizeMap, map: StreamConfigurationMap) {
map.getOutputSizes(ImageReader::class.java).forEach { pictureSizes.add(it.width, it.height) }
map.getOutputSizes(internalOutputFormat).forEach { pictureSizes.add(it.width, it.height) }
}

private fun prepareContinuousFrameReader() {
Expand Down

0 comments on commit 8d8667e

Please sign in to comment.