diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-08-06 17:35:56 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-08-08 17:25:02 +0300 |
commit | d4a42894b158f5f248ca94a8331bb8a40e051e3c (patch) | |
tree | 06e89995760e05e5030c3623f7709f7b6a5ae99b /src/cam/sdl_texture_mjpg.h | |
parent | 3e0b3a10779debd7f55f594e4b2c18f1acdb2d55 (diff) |
cam: sdl_sink: Support multi-planar formats
In order to prepare for NV12 support, implement support for multi-planar
formats in the SDL sink. This mainly consists in passing a vector of
plane data to the SDLTexture::update() function instead of a single
value.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/cam/sdl_texture_mjpg.h')
-rw-r--r-- | src/cam/sdl_texture_mjpg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/sdl_texture_mjpg.h b/src/cam/sdl_texture_mjpg.h index 5141ed73..814ca79a 100644 --- a/src/cam/sdl_texture_mjpg.h +++ b/src/cam/sdl_texture_mjpg.h @@ -14,7 +14,7 @@ class SDLTextureMJPG : public SDLTexture public: SDLTextureMJPG(const SDL_Rect &rect); - void update(libcamera::Span<const uint8_t> data) override; + void update(const std::vector<libcamera::Span<const uint8_t>> &data) override; private: int decompress(libcamera::Span<const uint8_t> data); |