summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/arrow-down-right.svg
blob: 81d9822ba8c8768a29bd2a6f4a00bfdcbf00b28e (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline></svg>
hl ppc"> #include "thumbnailer.h" #include <libcamera/geometry.h> class CameraDevice; class PostProcessorJpeg : public PostProcessor { public: PostProcessorJpeg(CameraDevice *const device); int configure(const libcamera::StreamConfiguration &incfg, const libcamera::StreamConfiguration &outcfg) override; void process(Camera3RequestDescriptor::StreamBuffer *streamBuffer) override; private: void generateThumbnail(const libcamera::FrameBuffer &source, const libcamera::Size &targetSize, unsigned int quality, std::vector<unsigned char> *thumbnail); CameraDevice *const cameraDevice_; std::unique_ptr<Encoder> encoder_; libcamera::Size streamSize_; EncoderLibJpeg thumbnailEncoder_; Thumbnailer thumbnailer_; };