Allow streams not in default / max res StreamConfigurationMaps to pass sensor pixel mode checks.
OEMs may have private streams - for default mode streams, they shouldn't
be blocked from being used by the camera framework.
Bug: 273668276
Test: OEM testing
Test: RobustnessTest.java on cuttlefish
Change-Id: I789039d363a578c955895ee52a550f610793f68b
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
diff --git a/services/camera/libcameraservice/utils/SessionConfigurationUtils.h b/services/camera/libcameraservice/utils/SessionConfigurationUtils.h
index b5654ac..2e35de0 100644
--- a/services/camera/libcameraservice/utils/SessionConfigurationUtils.h
+++ b/services/camera/libcameraservice/utils/SessionConfigurationUtils.h
@@ -145,7 +145,7 @@
status_t checkAndOverrideSensorPixelModesUsed(
const std::vector<int32_t> &sensorPixelModesUsed, int format, int width, int height,
- const CameraMetadata &staticInfo, bool flexibleConsumer,
+ const CameraMetadata &staticInfo,
std::unordered_set<int32_t> *overriddenSensorPixelModesUsed);
bool targetPerfClassPrimaryCamera(