From 153b468930a9df22debb28889312f8a5c511ee04 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Fri, 20 May 2022 20:01:06 +0100 Subject: cam: sdl_sink: Add MJPG support to SDL sink So we have at least two supported capturing pixel formats (although many possible output pixel formats thanks to SDL conversion). MJPG support only built in if SDL2_image is available, provides decompression. Signed-off-by: Eric Curtin Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Tested-by: Jacopo Mondi Signed-off-by: Laurent Pinchart --- src/cam/sdl_texture_mjpg.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/cam/sdl_texture_mjpg.h (limited to 'src/cam/sdl_texture_mjpg.h') diff --git a/src/cam/sdl_texture_mjpg.h b/src/cam/sdl_texture_mjpg.h new file mode 100644 index 00000000..b103f801 --- /dev/null +++ b/src/cam/sdl_texture_mjpg.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2022, Ideas on Board Oy + * + * sdl_texture_mjpg.h - SDL Texture MJPG + */ + +#pragma once + +#include "sdl_texture.h" + +class SDLTextureMJPG : public SDLTexture +{ +public: + SDLTextureMJPG(const SDL_Rect &rect); + void update(const libcamera::Span &data) override; +}; -- cgit v1.2.1