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

David Plowman david.plowman at raspberrypi.com
Mon Nov 21 16:44:21 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/rkisp1/rkisp1.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index 3d3a7086..f144fabd 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -632,6 +632,9 @@ int PipelineHandlerRkISP1::configure(Camera *camera, CameraConfiguration *c)
 	if (ret)
 		return ret;
 
+	/* Set up the device's horizontal and vertical flips. */
+	sensor->device()->setTransform(c->transform);
+
 	/*
 	 * Configure the format on the sensor output and propagate it through
 	 * the pipeline.
-- 
2.30.2



More information about the libcamera-devel mailing list