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>
This commit is contained in:
parent
90c193f2a7
commit
79bca4300b
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ using namespace libcamera;
|
|||
|
||||
LOG_DEFINE_CATEGORY(JPEG)
|
||||
|
||||
PostProcessorJpeg::PostProcessorJpeg(CameraDevice *device)
|
||||
PostProcessorJpeg::PostProcessorJpeg(CameraDevice *const device)
|
||||
: cameraDevice_(device)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue