fb.h (833B)
1 /* $Id$ */ 2 #ifndef fb_header 3 #define fb_header 4 #include <linux/fb.h> 5 6 typedef struct { 7 int num; 8 int id; 9 int delay; 10 int width; 11 int height; 12 int rowstride; 13 int len; 14 unsigned char *data; 15 } FB_IMAGE; 16 17 FB_IMAGE *fb_image_new(int width, int height); 18 void fb_image_pset(FB_IMAGE * image, int x, int y, int r, int g, int b); 19 void fb_image_fill(FB_IMAGE * image, int r, int g, int b); 20 int fb_image_draw(FB_IMAGE * image, int x, int y, int sx, int sy, int width, 21 int height); 22 void fb_image_free(FB_IMAGE * image); 23 void fb_image_copy(FB_IMAGE * dest, FB_IMAGE * src); 24 25 FB_IMAGE **fb_frame_new(int w, int h, int num); 26 void fb_frame_free(FB_IMAGE ** frame); 27 28 int fb_open(void); 29 void fb_close(void); 30 int fb_width(void); 31 int fb_height(void); 32 int fb_clear(int x, int y, int w, int h, int r, int g, int b); 33 34 #endif