#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; };