summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-03-17 04:29:06 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-03-18 18:02:40 +0100
commitaaf1ce50f9602c838428c8a089e28b83666b759b (patch)
tree2281db443dced74fb3a2431814431fa576f81eda /include
parent718f5e99a966246de8d129902ad470872652b749 (diff)
libcamera: PixelFormat: Mark all function arguments of type PixelFormat as const reference
PixelFormat was previously an alias for unsigned int but is now a class. Make all functions taking PixelFormat do so as a const reference. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h
index 29a8030d..b1441f8e 100644
--- a/include/libcamera/stream.h
+++ b/include/libcamera/stream.h
@@ -28,9 +28,9 @@ public:
StreamFormats(const std::map<PixelFormat, std::vector<SizeRange>> &formats);
std::vector<PixelFormat> pixelformats() const;
- std::vector<Size> sizes(PixelFormat pixelformat) const;
+ std::vector<Size> sizes(const PixelFormat &pixelformat) const;
- SizeRange range(PixelFormat pixelformat) const;
+ SizeRange range(const PixelFormat &pixelformat) const;
private:
std::map<PixelFormat, std::vector<SizeRange>> formats_;