summaryrefslogtreecommitdiff
path: root/src/android/jpeg/post_processor_jpeg.h
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2020-10-21 10:39:54 +0900
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-21 11:18:12 +0100
commit79bca4300b6582fe018967e8483eb584583d2a96 (patch)
tree00b1ba616e37a47f21fd73612c625dcafb774d6d /src/android/jpeg/post_processor_jpeg.h
parent90c193f2a70093917730b86359c6e459c28d2c24 (diff)
android: post_processor_jpeg: Make |cameraDevice_| constant
PostProcessorJpeg doesn't have the ownership of CameraDevice given in the constructor. To clarify it, this makes the member variable constant. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/jpeg/post_processor_jpeg.h')
-rw-r--r--src/android/jpeg/post_processor_jpeg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/jpeg/post_processor_jpeg.h b/src/android/jpeg/post_processor_jpeg.h
index ae636ff3..3706cec2 100644
--- a/src/android/jpeg/post_processor_jpeg.h
+++ b/src/android/jpeg/post_processor_jpeg.h
@@ -19,7 +19,7 @@ class CameraDevice;
class PostProcessorJpeg : public PostProcessor
{
public:
- PostProcessorJpeg(CameraDevice *device);
+ PostProcessorJpeg(CameraDevice *const device);
int configure(const libcamera::StreamConfiguration &incfg,
const libcamera::StreamConfiguration &outcfg) override;
@@ -28,7 +28,7 @@ public:
CameraMetadata *metadata) override;
private:
- CameraDevice *cameraDevice_;
+ CameraDevice *const cameraDevice_;
std::unique_ptr<Encoder> encoder_;
libcamera::Size streamSize_;
};