diff options
author | Christian C <cc@localhost> | 2025-03-22 22:27:40 -0700 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-22 22:27:40 -0700 |
commit | 16422831ed49c573c1b8a43ba907bceb00fd5eea (patch) | |
tree | 1c2d86d5eecf6d1b7b4951f0b20f8c86e6939ac2 /include/lib/data | |
parent | 123464e36f2a151d820e08db7b4b426ca2b3657a (diff) |
Named Types
Diffstat (limited to 'include/lib/data')
-rw-r--r-- | include/lib/data/image_types.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/lib/data/image_types.h b/include/lib/data/image_types.h index 0360d89..76b1472 100644 --- a/include/lib/data/image_types.h +++ b/include/lib/data/image_types.h @@ -1,19 +1,22 @@ #ifndef INC_LIB_DATA_IMAGE_TYPES_H #define INC_LIB_DATA_IMAGE_TYPES_H +#include <stdint.h> +#include <stddef.h> + #define ImageData_t uint8_t -#define MaskData_t uint16_t +#define ImageMaskData_t uint16_t -struct ImageData { +struct Image { size_t width; size_t height; ImageData_t** image; }; -struct ImageData { +struct ImageMask { size_t width; size_t height; - MaskData_t** image; + ImageMaskData_t** mask; }; #endif |