diff options
| author | Nikita Kostovsky <luntik2012@gmail.com> | 2025-01-12 17:57:45 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <luntik2012@gmail.com> | 2025-01-12 17:57:45 +0100 |
| commit | 201d98f63131242bb8871ed0c4a3ae9ebd4ef030 (patch) | |
| tree | 763a52710b3c8021c62b93535692b53de90265e5 /src/image.h | |
| parent | 4782e81c32392c78025aae1acb4b2ed1d1395908 (diff) | |
start refactoring. non-working commit
Diffstat (limited to 'src/image.h')
| -rw-r--r-- | src/image.h | 21 |
1 files changed, 21 insertions, 0 deletions
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> pixels() const; +}; |
