summaryrefslogtreecommitdiff
path: root/src/android/camera_capabilities.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-08-26 23:36:30 +0200
committerJacopo Mondi <jacopo@jmondi.org>2021-08-31 12:09:35 +0200
commit88009711be33903672e45b89cf5c9d3fc5761724 (patch)
treef5d12535ae819512280afdf5f187e0b987679973 /src/android/camera_capabilities.h
parent5fc426fbfe58a82e30021d7a9ca12a4daeaec0f3 (diff)
android: Refuse Manual template if not supported
If the camera devices does not support the MANUAL_SENSOR capabilities there is no point in generating a request template for the Manual capture use case. This change fixes CTS tests android.hardware.camera2.cts.CameraDeviceTest#testCameraDeviceManualTemplate android.hardware.camera2.cts.NativeCameraDeviceTest#testCameraDeviceCreateCaptureRequest For devices that do not support MANUAL_SENSOR capabilities. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/android/camera_capabilities.h')
-rw-r--r--src/android/camera_capabilities.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android/camera_capabilities.h b/src/android/camera_capabilities.h
index 576f1e7c..a1259699 100644
--- a/src/android/camera_capabilities.h
+++ b/src/android/camera_capabilities.h
@@ -70,6 +70,7 @@ private:
int orientation_;
bool rawStreamAvailable_;
camera_metadata_enum_android_info_supported_hardware_level hwLevel_;
+ std::set<camera_metadata_enum_android_request_available_capabilities> capabilities_;
std::vector<Camera3StreamConfiguration> streamConfigurations_;
std::map<int, libcamera::PixelFormat> formatsMap_;