summaryrefslogtreecommitdiff
path: root/src/android/jpeg/post_processor_jpeg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/jpeg/post_processor_jpeg.h')
-rw-r--r--src/android/jpeg/post_processor_jpeg.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/android/jpeg/post_processor_jpeg.h b/src/android/jpeg/post_processor_jpeg.h
index 3706cec2..5afa831c 100644
--- a/src/android/jpeg/post_processor_jpeg.h
+++ b/src/android/jpeg/post_processor_jpeg.h
@@ -8,12 +8,13 @@
#define __ANDROID_POST_PROCESSOR_JPEG_H__
#include "../post_processor.h"
+#include "encoder_libjpeg.h"
+#include "thumbnailer.h"
#include <libcamera/geometry.h>
#include "libcamera/internal/buffer.h"
-class Encoder;
class CameraDevice;
class PostProcessorJpeg : public PostProcessor
@@ -28,9 +29,14 @@ public:
CameraMetadata *metadata) override;
private:
+ void generateThumbnail(const libcamera::FrameBuffer &source,
+ std::vector<unsigned char> *thumbnail);
+
CameraDevice *const cameraDevice_;
std::unique_ptr<Encoder> encoder_;
libcamera::Size streamSize_;
+ EncoderLibJpeg thumbnailEncoder_;
+ Thumbnailer thumbnailer_;
};
#endif /* __ANDROID_POST_PROCESSOR_JPEG_H__ */