Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 419a3be1 authored by Mark Harman's avatar Mark Harman Committed by Mohammed Althaf T
Browse files

Log whether JPEG_R is available.

parent 72556493
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2924,6 +2924,20 @@ public class CameraController2 extends CameraController {
            want_raw = false; // just in case it got set to true somehow
        }

        if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
            if( MyDebug.LOG ) {
                android.util.Size [] jpeg_r_camera_picture_sizes = configs.getOutputSizes(ImageFormat.JPEG_R);
                if( jpeg_r_camera_picture_sizes == null ) {
                    if( MyDebug.LOG )
                        Log.d(TAG, "JPEG_R sizes: " + Arrays.toString(jpeg_r_camera_picture_sizes));
                }
                else {
                    if( MyDebug.LOG )
                        Log.d(TAG, "JPEG_R not supported");
                }
            }
        }

        ae_fps_ranges = new ArrayList<>();
        for (Range<Integer> r : characteristics.get(CameraCharacteristics.CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES)) {
            ae_fps_ranges.add(new int[] {r.getLower(), r.getUpper()});