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.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cam/sdl_texture_yuv.h b/src/cam/sdl_texture_yuv.h
new file mode 100644
index 00000000..223453a0
--- /dev/null
+++ b/src/cam/sdl_texture_yuv.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2022, Ideas on Board Oy
+ *
+ * sdl_texture_yuv.h - SDL Texture YUYV
+ */
+
+#pragma once
+
+#include "sdl_texture.h"
+
+class SDLTextureYUYV : public SDLTexture
+{
+public:
+ SDLTextureYUYV(const SDL_Rect &rect, unsigned int stride);
+ void update(libcamera::Span<const uint8_t> data) override;
+};