summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/raspberrypi
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2021-11-18 16:42:13 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-23 13:46:04 +0000
commite0b870e615dda0b43e2b5778cfd797ba19aa4ba5 (patch)
treeda0a80cc810277129fcfa21517d5c0a0f8edc4c2 /src/libcamera/pipeline/raspberrypi
parentb0e31c902084b9f4dfa2bafa07a1d62c83eb6292 (diff)
pipeline: raspberrypi: Add const qualifer in isRaw()
This function does not modify the pixFmt parameter, so use a const qualifier. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/raspberrypi')
-rw-r--r--src/libcamera/pipeline/raspberrypi/raspberrypi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 5e1f2273..11d3c2b1 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -96,7 +96,7 @@ V4L2DeviceFormat toV4L2DeviceFormat(const V4L2SubdeviceFormat &format,
return deviceFormat;
}
-bool isRaw(PixelFormat &pixFmt)
+bool isRaw(const PixelFormat &pixFmt)
{
/*
* The isRaw test might be redundant right now the pipeline handler only