diff options
author | Christian C <cc@localhost> | 2025-03-23 15:34:48 -0700 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-23 15:34:48 -0700 |
commit | 22c32ae8649e8540198942b33d4bab72c4ea7238 (patch) | |
tree | 946e173c4ab362ec88f21854e8613a21c330a6e1 /include/lib/png.h | |
parent | 981e8bfd12f79cb469bb54a915230eda6dafab41 (diff) |
Userspace types
Diffstat (limited to 'include/lib/png.h')
-rw-r--r-- | include/lib/png.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/lib/png.h b/include/lib/png.h index ddc1db3..c21fede 100644 --- a/include/lib/png.h +++ b/include/lib/png.h @@ -8,19 +8,19 @@ #define PixelSize_t uint8_t #define PixelDepth_t uint8_t -struct pixel_t { +typedef struct pixel_t { PixelChannel_t red; PixelChannel_t green; PixelChannel_t blue; -}; +} Pixel; -struct bitmap_t { - struct pixel_t* image_buffer; +typedef struct bitmap_t { + Pixel* image_buffer; size_t width; size_t height; -}; +} Bitmap; // Save bitmap to file -void save_png(struct bitmap_t* bitmap, char* fname); +void save_png(Bitmap* bitmap, char* fname); #endif |