diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2021-01-23 14:08:35 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2021-01-27 12:07:21 +0900 |
commit | ab72e6641c56e876f91edee57a8969982a3ab9b7 (patch) | |
tree | dac370e8b2f56bf97578864302cc3b71b5415a44 /src/android/jpeg/encoder.h | |
parent | a6de3f0203c5d338a2a86ff049d55907a12e04c5 (diff) |
android: jpeg: Set thumbnail and JPEG quality based on request
Set the thumbnail quality and the JPEG quality based on the android
request metadata.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/jpeg/encoder.h')
-rw-r--r-- | src/android/jpeg/encoder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/jpeg/encoder.h b/src/android/jpeg/encoder.h index 027233dc..8d449369 100644 --- a/src/android/jpeg/encoder.h +++ b/src/android/jpeg/encoder.h @@ -19,7 +19,8 @@ public: virtual int configure(const libcamera::StreamConfiguration &cfg) = 0; virtual int encode(const libcamera::FrameBuffer &source, libcamera::Span<uint8_t> destination, - libcamera::Span<const uint8_t> exifData) = 0; + libcamera::Span<const uint8_t> exifData, + unsigned int quality) = 0; }; #endif /* __ANDROID_JPEG_ENCODER_H__ */ |