summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture_mjpg.h
diff options
context:
space:
mode:
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_;
};