[libcamera-devel] [PATCH 6/6] libcamera: pipeline: rkisp1: Set device's flip controls correctly
David Plowman
david.plowman at raspberrypi.com
Thu Nov 10 15:45:56 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/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