summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture_yuv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/sdl_texture_yuv.h')
-rw-r--r--src/cam/sdl_texture_yuv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cam/sdl_texture_yuv.h b/src/cam/sdl_texture_yuv.h
index 633ab510..310e4e50 100644
--- a/src/cam/sdl_texture_yuv.h
+++ b/src/cam/sdl_texture_yuv.h
@@ -9,12 +9,14 @@
#include "sdl_texture.h"
+#if SDL_VERSION_ATLEAST(2, 0, 16)
class SDLTextureNV12 : public SDLTexture
{
public:
SDLTextureNV12(const SDL_Rect &rect, unsigned int stride);
void update(const std::vector<libcamera::Span<const uint8_t>> &data) override;
};
+#endif
class SDLTextureYUYV : public SDLTexture
{