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>
23 lines
442 B
C++
23 lines
442 B
C++
/* 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<uint8_t> &data) override;
|
|
|
|
private:
|
|
int decompress(const libcamera::Span<uint8_t> &data);
|
|
|
|
std::unique_ptr<unsigned char[]> rgb_;
|
|
};
|