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>
This commit is contained in:
parent
c13f86704b
commit
dc1f4a91df
5 changed files with 77 additions and 13 deletions
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue