[libcamera-devel] [PATCH v2 4/5] libcamera: pipeline: simple: Set device's flip controls as previously

David Plowman david.plowman at raspberrypi.com
Mon Nov 21 16:44:20 CET 2022


Set the horizontal and vertical flip controls by calling the device's
setTransform method now that this no longer happens in
CameraSensor::init(). The aim here is to preserve the previous
behaviour.

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