CameraX video allowed predefined buckets of qualities UHD, FHD, HD, SD (defined in VideoQuality enum),
the CameraXPreview is configured to use the highest quality and
CameraX will select the closest corresponding resolution supported by the device.
tentatively add ChangeResolutionDialogX (which would be renamed back to ChangeResolutionDialog) to give users the option to select photo resolution and video qualities
add ImageQualityManager which performs the same operation for getting all resolutions supported by a device using the Camera2 API, as defined in the legacy CameraPreview
add VideoQualityManager to manage saving / getting user-selected quality.
Issues
So far, I have not been able to get CameraX to respect the specified image resolution. The captured image usually has a resolution different from what was specified. Still doing some research on this.
Notes
CameraX
video allowed predefined buckets of qualitiesUHD
,FHD
,HD
,SD
(defined inVideoQuality
enum), theCameraXPreview
is configured to use the highest quality andCameraX
will select the closest corresponding resolution supported by the device.ChangeResolutionDialogX
(which would be renamed back toChangeResolutionDialog
) to give users the option to select photo resolution and video qualitiesImageQualityManager
which performs the same operation for getting all resolutions supported by a device using theCamera2
API, as defined in the legacyCameraPreview
VideoQualityManager
to manage saving / getting user-selected quality.Issues
CameraX
to respect the specified image resolution. The captured image usually has a resolution different from what was specified. Still doing some research on this.