Mercurial > mplayer.hg
comparison TVout/fbset/fbset.h @ 1:3b5f5d1c5041
Initial revision
author | arpi_esp |
---|---|
date | Sat, 24 Feb 2001 20:28:24 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:c1bb2c071d63 | 1:3b5f5d1c5041 |
---|---|
1 /* | |
2 * Linux Frame Buffer Device Configuration | |
3 * | |
4 * © Copyright 1995-1998 by Geert Uytterhoeven | |
5 * (Geert.Uytterhoeven@cs.kuleuven.ac.be) | |
6 * | |
7 * -------------------------------------------------------------------------- | |
8 * | |
9 * This file is subject to the terms and conditions of the GNU General Public | |
10 * License. See the file COPYING in the main directory of the Linux | |
11 * distribution for more details. | |
12 */ | |
13 | |
14 | |
15 #include <stdio.h> | |
16 #include <sys/types.h> | |
17 | |
18 #ifdef __GLIBC__ | |
19 #include <asm/types.h> | |
20 #endif | |
21 | |
22 #define VERSION "Linux Frame Buffer Device Configuration " \ | |
23 "Version 2.1 (23/06/1999)\n" \ | |
24 "(C) Copyright 1995-1999 by Geert Uytterhoeven\n" | |
25 | |
26 #define LOW (0) | |
27 #define HIGH (1) | |
28 | |
29 #define FALSE (0) | |
30 #define TRUE (1) | |
31 | |
32 struct color { | |
33 unsigned int length; | |
34 unsigned int offset; | |
35 }; | |
36 | |
37 struct VideoMode { | |
38 struct VideoMode *next; | |
39 const char *name; | |
40 /* geometry */ | |
41 __u32 xres; | |
42 __u32 yres; | |
43 __u32 vxres; | |
44 __u32 vyres; | |
45 __u32 depth; | |
46 __u32 nonstd; | |
47 /* acceleration */ | |
48 __u32 accel_flags; | |
49 /* timings */ | |
50 __u32 pixclock; | |
51 __u32 left; | |
52 __u32 right; | |
53 __u32 upper; | |
54 __u32 lower; | |
55 __u32 hslen; | |
56 __u32 vslen; | |
57 /* flags */ | |
58 unsigned hsync : 1; | |
59 unsigned vsync : 1; | |
60 unsigned csync : 1; | |
61 unsigned gsync : 1; | |
62 unsigned extsync : 1; | |
63 unsigned bcast : 1; | |
64 unsigned laced : 1; | |
65 unsigned dblscan : 1; | |
66 unsigned grayscale : 1; | |
67 /* scanrates */ | |
68 double drate; | |
69 double hrate; | |
70 double vrate; | |
71 /* RGB entries */ | |
72 struct color red, green, blue, transp; | |
73 }; | |
74 | |
75 extern FILE *yyin; | |
76 extern int line; | |
77 extern const char *Opt_modedb; | |
78 | |
79 extern int yyparse(void); | |
80 extern void Die(const char *fmt, ...) __attribute__ ((noreturn)); | |
81 extern void AddVideoMode(const struct VideoMode *vmode); | |
82 extern void makeRGBA(struct VideoMode *vmode, const char* opt); |