I cannot seem to get my CameraX camera to give me an ImageAnalysis resolution of anything larger than 1024x768
Here is my set up
def cameraXVersion = "1.0.0-rc02"I also later will alter the rotation on the imageAnalysis use case if the device orientation changes, not sure if that could mess things up somehow. Commenting it out has no effect
override fun updateRotation(orientation: DeviceRotationHelper.Orientation) { super.updateRotation(orientation)According to this code 1440x1080 is in the list of output sizes (and nowhere near the largest), and it is less than the 1080p maximum set for CameraX:
val characteristics = Camera2CameraInfo.extractCameraCharacteristics(camera!!.cameraInfo)According to the characteristics, my device is a LEVEL_3
characteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL) == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3 // trueAccording to this documentation, this is the highest level listed https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
So what am I doing wrong here?
Sorry about the terrible code formatting. Sure would be nice to have markdown supported. Here's a link to my StackOverflow post with all my info in a much more readable format https://stackoverflow.com/questions/66481571/cant-increase-camerax-imageanalysis-resolution-past-1024x768