android: jpeg: encoder: Use pass-by-value for Exif parameter

Following the reasoning of pass-by-value for libcamera::Span
parameters from 90c193f2a700("android: Modify Encoder interface") i.e.
they are easy to copy/move/construct, align the Exif parameter passing
to the encoder interface in this consistent way.

Signed-off-by: Umang Jain <email@uajain.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Umang Jain 2020-10-23 11:01:50 +05:30 committed by Laurent Pinchart
parent f9e7f55f3b
commit c430d39d20
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ public:
int configure(const libcamera::StreamConfiguration &cfg) override;
int encode(const libcamera::FrameBuffer &source,
libcamera::Span<uint8_t> destination,
const libcamera::Span<const uint8_t> &exifData) override;
libcamera::Span<const uint8_t> exifData) override;
private:
void compressRGB(const libcamera::MappedBuffer *frame);