summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture_mjpg.h
diff options
context:
space:
mode:
authorEric Curtin <ecurtin@redhat.com>2022-07-19 10:17:46 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-28 14:13:50 +0300
commitdc1f4a91dfefa9f86202ab148e05fb901b6e3e73 (patch)
tree652deb1d7018a47be60fe084c6ec0e0baf806106 /src/cam/sdl_texture_mjpg.h
parentc13f86704b129636bb6d84f8b8ca37826ded3238 (diff)
cam: sdl_sink: Use libjpeg over SDL2_image
We were using the libjpeg functionality of SDL2_image only, instead just use libjpeg directly to reduce our dependancy count, it is a more commonly available library. Signed-off-by: Eric Curtin <ecurtin@redhat.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/cam/sdl_texture_mjpg.h')
-rw-r--r--src/cam/sdl_texture_mjpg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cam/sdl_texture_mjpg.h b/src/cam/sdl_texture_mjpg.h
index b103f801..328c45a9 100644
--- a/src/cam/sdl_texture_mjpg.h
+++ b/src/cam/sdl_texture_mjpg.h
@@ -13,5 +13,11 @@ class SDLTextureMJPG : public SDLTexture
{
public:
SDLTextureMJPG(const SDL_Rect &rect);
+
void update(const libcamera::Span<uint8_t> &data) override;
+
+private:
+ int decompress(const libcamera::Span<uint8_t> &data);
+
+ std::unique_ptr<unsigned char[]> rgb_;
};