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

Commit cc866b9d authored by Emilian Peev's avatar Emilian Peev Committed by Android (Google) Code Review
Browse files

Merge "Camera: Handle Jpeg_R size querie for basic extensions" into main

parents bcae0605 86298a90
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -736,6 +736,9 @@ public final class CameraExtensionCharacteristics {
                    return generateJpegSupportedSizes(
                            extenders.second.getSupportedPostviewResolutions(sz),
                                    streamMap);
                }  else if (format == ImageFormat.JPEG_R) {
                    // Jpeg_R/UltraHDR is currently not supported in the basic extension case
                    return new ArrayList<>();
                } else {
                    throw new IllegalArgumentException("Unsupported format: " + format);
                }
@@ -891,6 +894,9 @@ public final class CameraExtensionCharacteristics {
                        } else {
                            return generateSupportedSizes(null, format, streamMap);
                        }
                    } else if (format == ImageFormat.JPEG_R) {
                        // Jpeg_R/UltraHDR is currently not supported in the basic extension case
                        return new ArrayList<>();
                    } else {
                        throw new IllegalArgumentException("Unsupported format: " + format);
                    }