[libcamera-devel] [PATCH] android: camera_capabilities: Ensure PixelArrayActiveAreas exists before accessing
Kieran Bingham
kieran.bingham at ideasonboard.com
Thu Jul 15 16:00:11 CEST 2021
The VIVID pipline handler does not set this. It's likely that the
UVC pipeline will not either.
If not present, we must not access it.
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
src/android/camera_capabilities.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/android/camera_capabilities.cpp b/src/android/camera_capabilities.cpp
index 6b5edb66fad2..dfc961affe46 100644
--- a/src/android/camera_capabilities.cpp
+++ b/src/android/camera_capabilities.cpp
@@ -589,7 +589,7 @@ int CameraCapabilities::initializeStaticMetadata()
physicalSize);
}
- {
+ if (properties.contains(properties::PixelArrayActiveAreas)) {
const Span<const Rectangle> &rects =
properties.get(properties::PixelArrayActiveAreas);
std::vector<int32_t> data{
--
2.30.2
More information about the libcamera-devel
mailing list