diff options
author | Umang Jain <email@uajain.com> | 2020-10-23 11:01:50 +0530 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-10-23 22:53:17 +0300 |
commit | c430d39d203488cf93ab4f12ff9eb8b3c6380212 (patch) | |
tree | aba274f0b7af500ed40e201160987354df3e55c6 /src/android/jpeg/encoder_libjpeg.cpp | |
parent | f9e7f55f3b2cdee93a51cf7f39a2e72b4c453e00 (diff) |
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>
Diffstat (limited to 'src/android/jpeg/encoder_libjpeg.cpp')
-rw-r--r-- | src/android/jpeg/encoder_libjpeg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/jpeg/encoder_libjpeg.cpp b/src/android/jpeg/encoder_libjpeg.cpp index 4bea10cf..cfa53321 100644 --- a/src/android/jpeg/encoder_libjpeg.cpp +++ b/src/android/jpeg/encoder_libjpeg.cpp @@ -180,7 +180,7 @@ void EncoderLibJpeg::compressNV(const MappedBuffer *frame) } int EncoderLibJpeg::encode(const FrameBuffer &source, Span<uint8_t> dest, - const Span<const uint8_t> &exifData) + Span<const uint8_t> exifData) { MappedFrameBuffer frame(&source, PROT_READ); if (!frame.isValid()) { |