commit | f18887cfe5cff8c548c5342043602b00c9c71b93 | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenwang@google.com> | Tue May 31 10:24:02 2022 -0700 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Tue May 31 10:44:34 2022 -0700 |
tree | ccb8014f9a56c7dfb7bd859eaa701f5a8fe572cb | |
parent | 0665da9b2422c7815933bb70f30a078a9b50c5e3 [diff] [blame] |
Camera: Fix condition check for Performance Class Test: Observe Pixel 6 dumpsys with media_performance_class set to 33 Bug: 234414724 Change-Id: I378c7e1adf1446a70593d04da73521a81050150d
diff --git a/services/camera/libcameraservice/utils/SessionConfigurationUtils.cpp b/services/camera/libcameraservice/utils/SessionConfigurationUtils.cpp index d5ddf9f..b31c93b 100644 --- a/services/camera/libcameraservice/utils/SessionConfigurationUtils.cpp +++ b/services/camera/libcameraservice/utils/SessionConfigurationUtils.cpp
@@ -88,7 +88,7 @@ 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) {