[libcamera-devel] [PATCH 30/31] DNI: test: serialization: Serialize array controls
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sat Feb 29 17:42:53 CET 2020
From: Jacopo Mondi <jacopo at jmondi.org>
Depends on the fictional array control definition.
Not for inclusion.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
test/serialization/control_serialization.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/serialization/control_serialization.cpp b/test/serialization/control_serialization.cpp
index 2989b52774fb..1de54a02c443 100644
--- a/test/serialization/control_serialization.cpp
+++ b/test/serialization/control_serialization.cpp
@@ -38,13 +38,14 @@ protected:
size_t size;
int ret;
- /* Create a control list with three controls. */
+ /* Create a control list with several controls. */
const ControlInfoMap &infoMap = camera_->controls();
ControlList list(infoMap);
list.set(controls::Brightness, 255);
list.set(controls::Contrast, 128);
list.set(controls::Saturation, 50);
+ list.set(controls::BayerGains, { 1.0f, 1.1f, 0.9f, 1.0f });
/*
* Serialize the control list, this should fail as the control
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list