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

Commit f18887cf authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Fix condition check for Performance Class

Test: Observe Pixel 6 dumpsys with media_performance_class set to 33
Bug: 234414724
Change-Id: I378c7e1adf1446a70593d04da73521a81050150d
parent 0665da9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ namespace SessionConfigurationUtils {
int32_t PERF_CLASS_LEVEL =
        property_get_int32("ro.odm.build.media_performance_class", 0);

bool IS_PERF_CLASS = (PERF_CLASS_LEVEL == SDK_VERSION_S);
bool IS_PERF_CLASS = (PERF_CLASS_LEVEL >= SDK_VERSION_S);

camera3::Size getMaxJpegResolution(const CameraMetadata &metadata,
        bool ultraHighResolution) {