diff options
Diffstat (limited to 'src/image.h')
| -rw-r--r-- | src/image.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/image.h b/src/image.h index e4cf9eb..a59e209 100644 --- a/src/image.h +++ b/src/image.h @@ -19,13 +19,20 @@ struct Image Image &operator=(Image &&other) = default; // uint8_t data[img_height][img_width] = {{0}}; +#ifdef RADXA_ZERO_3E + using row_t = std::array<uint8_t, radxa_raw_img_stride>; + // using row_t = std::array<uint8_t, img_width>; + using data_t = std::array<row_t, img_height>; +#else using row_t = std::array<uint8_t, img_width>; using data_t = std::array<row_t, img_height>; +#endif // RADXA_ZERO_3E using rotated_row_t = std::array<uint8_t, img_height>; using column_t = rotated_row_t; using rotated_data_t = std::array<column_t, img_width>; // data_t d; alignas(128) data_t data; + // alignas(128) std::array<uint8_t, 417792> rawData; int width{0}; int height{0}; // data_t *data; |
