mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 17:45:06 +03:00
android: jpeg: Configure thumbnailer based on request metadata
Configure the thumbnailer based on the thumbnail parameters given by the android request metadata. Only the thumbnail encoder needs to be configured, and since it is only used at post-processing time, move the configuration out of the post-processor constructor and into the processing step. Also set the following android result metadata tags: - ANDROID_JPEG_THUMBNAIL_SIZE - ANDROID_JPEG_THUMBNAIL_QUALITY Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
abfabdd6e7
commit
1264628d3c
5 changed files with 44 additions and 43 deletions
|
@ -31,6 +31,7 @@ public:
|
|||
|
||||
private:
|
||||
void generateThumbnail(const libcamera::FrameBuffer &source,
|
||||
const libcamera::Size &targetSize,
|
||||
std::vector<unsigned char> *thumbnail);
|
||||
|
||||
CameraDevice *const cameraDevice_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue