ffs: update setting channel layout for SwrContext
[fbff.git] / draw.h
blob4a3e014d3f8899cdf1b5bb0aa7dd220c83228bf5
1 /* fbpad's framebuffer interface */
2 #define FBDEV "/dev/fb0"
4 /* fb_mode() interpretation */
5 #define FBM_BPP(m) (((m) >> 16) & 0x0f) /* bytes per pixel (4 bits) */
6 #define FBM_CLR(m) ((m) & 0x0fff) /* bits per color (12 bits) */
7 #define FBM_ORD(m) (((m) >> 20) & 0x07) /* color order (3 bits) */
9 /* main functions */
10 int fb_init(char *dev);
11 void fb_free(void);
12 unsigned fb_mode(void);
13 void *fb_mem(int r);
14 int fb_rows(void);
15 int fb_cols(void);
16 void fb_cmap(void);
17 unsigned fb_val(int r, int g, int b);