diff options
Diffstat (limited to 'src/image.h')
| -rw-r--r-- | src/image.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/image.h b/src/image.h index b4e8a58..15b5daa 100644 --- a/src/image.h +++ b/src/image.h @@ -10,6 +10,11 @@ class Pixels; // TODO: template struct Image { + // Image(Image &other) { std::cerr << __func__ << ": don't copy me please" << std::endl; } + Image() = default; + Image(Image &other) = delete; + Image(Image &&other) = delete; + Image &operator=(Image &&other) = default; int width{0}; int height{0}; // uint8_t data[img_height][img_width] = {{0}}; @@ -30,8 +35,12 @@ struct Image // unsigned int stride{0}; libcamera::PixelFormat pixelFormat{0}; Counters counters{}; + bool hasInputData{false}; void rotate(); - std::shared_ptr<Pixels> pixels() const; + Pixels pixels() const; void copyFromData(const void* src, size_t size); + +private: + Image &operator=(Image &other) = delete; }; |
