From 822d9e61fa3a23e3a9e6d45355c2324143e4b7d4 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Mon, 5 Jul 2021 19:31:26 +0900 Subject: android: capabilities: Make keys list into set and member variable We need to be able to add additional characteristics/request/result keys into the corresponding list in the static metadata based on libcamera camera capabilities. We also need to be able to easily check if the lists have specific keys, for populating templates and result metadata. Turn the characteristics, requests, and results keys vectors into sets, and move them to member variables to achieve this. Signed-off-by: Paul Elder Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- src/android/camera_capabilities.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/android/camera_capabilities.h') diff --git a/src/android/camera_capabilities.h b/src/android/camera_capabilities.h index c7a966ce..dc5339c1 100644 --- a/src/android/camera_capabilities.h +++ b/src/android/camera_capabilities.h @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -72,6 +73,10 @@ private: std::map formatsMap_; std::unique_ptr staticMetadata_; unsigned int maxJpegBufferSize_; + + std::set availableCharacteristicsKeys_; + std::set availableRequestKeys_; + std::set availableResultKeys_; }; #endif /* __ANDROID_CAMERA_CAPABILITIES_H__ */ -- cgit v1.2.1