Fix issue with bad camera quality on some devices.

There appears to be a weird bucketing thing that happens on some
devices, where if you give them a resolution that's too small, it'll
default you to some potato resolution. So we just bumped it up to
1920x1920, and that seems to be working on my swath of devices.
This commit is contained in:
Greyson Parrelli 2019-07-01 16:54:47 -04:00
parent ff3890cc12
commit a8dbfd812d

View File

@ -243,7 +243,7 @@ final class CameraXModule {
mImageCaptureConfigBuilder.setTargetRotation(getDisplaySurfaceRotation());
mImageCaptureConfigBuilder.setLensFacing(mCameraLensFacing);
mImageCaptureConfigBuilder.setCaptureMode(CameraXUtil.getOptimalCaptureMode());
mImageCaptureConfigBuilder.setTargetResolution(new Size(1920, 1080));
mImageCaptureConfigBuilder.setTargetResolution(new Size(1920, 1920));
mImageCapture = new ImageCapture(mImageCaptureConfigBuilder.build());
mVideoCaptureConfigBuilder.setTargetRotation(getDisplaySurfaceRotation());