summaryrefslogtreecommitdiff
path: root/src/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image.h b/src/image.h
index a3c4476..e4cf9eb 100644
--- a/src/image.h
+++ b/src/image.h
@@ -17,8 +17,6 @@ struct Image
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}};
using row_t = std::array<uint8_t, img_width>;
@@ -27,7 +25,9 @@ struct Image
using column_t = rotated_row_t;
using rotated_data_t = std::array<column_t, img_width>;
// data_t d;
- data_t data;
+ alignas(128) data_t data;
+ int width{0};
+ int height{0};
// data_t *data;
// uint8_t *data = {nullptr};
// uint8_t &dataAt(size_t row, size_t col);