forked from alukichev/bannerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fb.h
43 lines (35 loc) · 916 Bytes
/
fb.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* A framebuffer animation daemon
*
* Copyright (C) 2012 Alexander Lukichev
*
* Alexander Lukichev <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*/
#ifndef FB_H
#define FB_H
#include <stdint.h>
struct screen_info {
int fd;
int width;
int height;
int bpp; /* bit per pixel */
void *fb;
int stride;
int fb_size;
};
struct image_info {
int width;
int height;
int is_bmp;
uint32_t *pixel_buffer;
};
int fb_init(struct screen_info *sd);
void fb_close(struct screen_info *sd, int restore_mode);
int fb_write_bitmap(struct screen_info *sd, int x, int y,
struct image_info *bitmap);
int fb_omap_update_screen(struct screen_info * sd, int x, int y, int w, int h);
#endif /* FB_H */