summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/sdl_texture.h')
-rw-r--r--src/cam/sdl_texture.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cam/sdl_texture.h b/src/cam/sdl_texture.h
index f523fa5e..e4d3fb2b 100644
--- a/src/cam/sdl_texture.h
+++ b/src/cam/sdl_texture.h
@@ -7,6 +7,8 @@
#pragma once
+#include <vector>
+
#include <SDL2/SDL.h>
#include "image.h"
@@ -17,7 +19,7 @@ public:
SDLTexture(const SDL_Rect &rect, uint32_t pixelFormat, const int pitch);
virtual ~SDLTexture();
int create(SDL_Renderer *renderer);
- virtual void update(libcamera::Span<const uint8_t> data) = 0;
+ virtual void update(const std::vector<libcamera::Span<const uint8_t>> &data) = 0;
SDL_Texture *get() const { return ptr_; }
protected: