Message ID | 20221121154421.11732-6-david.plowman@raspberrypi.com |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
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.
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@raspberrypi.com> --- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 3 +++ 1 file changed, 3 insertions(+)