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