prioritize low latency over max quality by default

This commit is contained in:
tibbi
2022-10-11 09:41:56 +02:00
parent e8e6b0e28b
commit c40ac93b06
2 changed files with 4 additions and 10 deletions

View File

@ -211,7 +211,7 @@ class CameraXPreview(
private fun buildImageCapture(resolution: Size, rotation: Int): ImageCapture {
return Builder()
.setCaptureMode(CAPTURE_MODE_MAXIMIZE_QUALITY)
.setCaptureMode(CAPTURE_MODE_MINIMIZE_LATENCY)
.setFlashMode(flashMode)
.setJpegQuality(config.photoQuality)
.setTargetRotation(rotation)