Camera: Support querying session config with parameters
Existing isSessionConfigurationSupported doesn't consider session
parameters. However, many features are modeled as a session parameters.
Add a new API to query session configuration support considring session
parameters.
Test: Camera CTS
Bug: 309627704
Change-Id: If64d878cb0052c0f78db277ebe605d36197eb618
diff --git a/services/camera/libcameraservice/common/CameraDeviceBase.h b/services/camera/libcameraservice/common/CameraDeviceBase.h
index 01199af..983b2c1 100644
--- a/services/camera/libcameraservice/common/CameraDeviceBase.h
+++ b/services/camera/libcameraservice/common/CameraDeviceBase.h
@@ -35,6 +35,7 @@
#include "binder/Status.h"
#include "FrameProducer.h"
#include "utils/IPCTransport.h"
+#include "utils/SessionConfigurationUtils.h"
#include "CameraOfflineSessionBase.h"
@@ -42,17 +43,6 @@
namespace camera3 {
-typedef enum camera_request_template {
- CAMERA_TEMPLATE_PREVIEW = 1,
- CAMERA_TEMPLATE_STILL_CAPTURE = 2,
- CAMERA_TEMPLATE_VIDEO_RECORD = 3,
- CAMERA_TEMPLATE_VIDEO_SNAPSHOT = 4,
- CAMERA_TEMPLATE_ZERO_SHUTTER_LAG = 5,
- CAMERA_TEMPLATE_MANUAL = 6,
- CAMERA_TEMPLATE_COUNT,
- CAMERA_VENDOR_TEMPLATE_START = 0x40000000
-} camera_request_template_t;
-
typedef enum camera_stream_configuration_mode {
CAMERA_STREAM_CONFIGURATION_NORMAL_MODE = 0,
CAMERA_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE = 1,