[libcamera-devel] [PATCH 5/6] libcamera: pipeline: simple: Set device's flip controls correctly
David Plowman
david.plowman at raspberrypi.com
Thu Nov 10 15:45:55 CET 2022
Set the horizontal and vertical flip controls correctly by
calling the device's setTransform method now that this no longer
happens in CameraSensor::init().
Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
---
src/libcamera/pipeline/simple/simple.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index a32de7f3..f25a8cc1 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -1120,6 +1120,9 @@ int SimplePipelineHandler::configure(Camera *camera, CameraConfiguration *c)
if (ret < 0)
return ret;
+ /* Set up the video device's horizontal and vertical flips. */
+ video->setTransform(c->transform);
+
/* Configure the video node. */
V4L2PixelFormat videoFormat = video->toV4L2PixelFormat(pipeConfig->captureFormat);
--
2.30.2
More information about the libcamera-devel
mailing list