android: jpeg: post_processor_jpeg: Embed thumbnail into Exif metadata
Embed a Jpeg-encoded thumbnail into Exif metadata using the Thumbnailer class that got introduced. Introduce a helper function in Exif class for setting the thumbnail data. Signed-off-by: Umang Jain <email@uajain.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> [Kieran: Add todo comment, and Compression enum] Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
f0421988dc
commit
b053384ffa
4 changed files with 77 additions and 2 deletions
|
@ -21,11 +21,18 @@ public:
|
|||
Exif();
|
||||
~Exif();
|
||||
|
||||
enum Compression {
|
||||
None = 1,
|
||||
JPEG = 6,
|
||||
};
|
||||
|
||||
void setMake(const std::string &make);
|
||||
void setModel(const std::string &model);
|
||||
|
||||
void setOrientation(int orientation);
|
||||
void setSize(const libcamera::Size &size);
|
||||
void setThumbnail(libcamera::Span<const unsigned char> thumbnail,
|
||||
Compression compression);
|
||||
void setTimestamp(time_t timestamp);
|
||||
|
||||
libcamera::Span<const uint8_t> data() const { return { exifData_, size_ }; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue