From 201d98f63131242bb8871ed0c4a3ae9ebd4ef030 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 12 Jan 2025 17:57:45 +0100 Subject: start refactoring. non-working commit --- src/image.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/image.h (limited to 'src/image.h') diff --git a/src/image.h b/src/image.h new file mode 100644 index 0000000..2fff020 --- /dev/null +++ b/src/image.h @@ -0,0 +1,21 @@ +#pragma once + +#include "constants.h" +#include "typedefs.h" + +class Pixels; + +struct Image +{ + int width{0}; + int height{0}; + uint16_t data[img_height][img_width] = {{0}}; + uint16_t rotated_cw[img_width][img_height] = {{0}}; + size_t dataSize{0}; + unsigned int stride{0}; + libcamera::PixelFormat pixelFormat{0}; + Counters counters{}; + + void rotate(); + std::shared_ptr pixels() const; +}; -- cgit v1.2.3-70-g09d2