aboutsummaryrefslogtreecommitdiff
path: root/lib/ff/ff.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ff/ff.h')
-rw-r--r--lib/ff/ff.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/ff/ff.h b/lib/ff/ff.h
new file mode 100644
index 0000000..756bd16
--- /dev/null
+++ b/lib/ff/ff.h
@@ -0,0 +1,25 @@
+#ifndef FARBFELD_H
+#define FARBFELD_H
+
+#include "../sys/sizes.h"
+#include "../fb/fb.h"
+
+typedef struct {
+ u16 r;
+ u16 g;
+ u16 b;
+ u16 a;
+} image_pixel_t;
+
+typedef struct {
+ u32 width;
+ u32 height;
+ image_pixel_t *data;
+} image_t;
+
+
+image_t *new_image_from_fd(int fd);
+void free_image(image_t*);
+canvas_pixel_t image_pixel_to_canvas_pixel(image_pixel_t p);
+
+#endif