aboutsummaryrefslogtreecommitdiff
path: root/lib/ff/ff.h
blob: 756bd1676c28f7e8b2b98cee9cf5fa136d3a2008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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