aboutsummaryrefslogtreecommitdiff
path: root/include/lib/png.h
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-22 22:27:40 -0700
committerChristian C <cc@localhost>2025-03-22 22:27:40 -0700
commit16422831ed49c573c1b8a43ba907bceb00fd5eea (patch)
tree1c2d86d5eecf6d1b7b4951f0b20f8c86e6939ac2 /include/lib/png.h
parent123464e36f2a151d820e08db7b4b426ca2b3657a (diff)
Named Types
Diffstat (limited to 'include/lib/png.h')
-rw-r--r--include/lib/png.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/lib/png.h b/include/lib/png.h
index e7943c2..ddc1db3 100644
--- a/include/lib/png.h
+++ b/include/lib/png.h
@@ -4,10 +4,14 @@
#include <stdint.h>
#include <sys/types.h>
+#define PixelChannel_t uint8_t
+#define PixelSize_t uint8_t
+#define PixelDepth_t uint8_t
+
struct pixel_t {
- uint8_t red;
- uint8_t green;
- uint8_t blue;
+ PixelChannel_t red;
+ PixelChannel_t green;
+ PixelChannel_t blue;
};
struct bitmap_t {