diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2020-07-14 09:02:09 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2020-08-03 11:16:17 +0200 |
commit | 420d5b23a78a8b19bd8d52dd0cf76ed01da5f07e (patch) | |
tree | 7b42006a34b1b87e3b3decd3bea433d69d3f20e9 /src | |
parent | 4217c9f1aa863cf629bb2420be352b0c39988a5b (diff) |
libcamera: ipu3: cio2: Add a const sensor() method
Add a const version of the CIO2Device::sensor() method, that retrieves
a const pointer to the sensor_ class member, to be called by users
which only own a const reference to a CIO2Device class instance.
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/ipu3/cio2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/ipu3/cio2.h b/src/libcamera/pipeline/ipu3/cio2.h index 221cf817..fa813a98 100644 --- a/src/libcamera/pipeline/ipu3/cio2.h +++ b/src/libcamera/pipeline/ipu3/cio2.h @@ -50,6 +50,7 @@ public: int stop(); CameraSensor *sensor() { return sensor_; } + const CameraSensor *sensor() const { return sensor_; } int queueBuffer(Request *request, FrameBuffer *rawBuffer); void tryReturnBuffer(FrameBuffer *buffer); |