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 44 45 46 47 48 49
|
#ifndef _STRUCTS_H
# define _STRUCTS_H
typedef struct ml_flags
{
int verbose; /* verbose flag */
int quiet; /* quiet flag */
int guess; /* guess flag */
int widescreen; /* widescreen flag */
int warn; /* initial warning flag */
int gotmem; /* flag set when memory first read */
int doublescan; /* doublescan flag */
int interlaced; /* interlaced flag */
} ml_flags;
typedef struct ml_params
{
double fp; /* front porch */
double bp; /* back porch */
double sw; /* sync width */
double sw_min; /* minimum sync width */
double sw_max; /* maximum sync width */
} ml_params;
typedef struct ml_sess
{
ml_params h; /* horizontal params */
ml_params v; /* vertical params */
ml_flags flags; /* flag structure */
double max_dot; /* maximum dot clock */
int aspect_x; /* horizontal part of the aspect ratio */
int aspect_y; /* vertical part of the aspect ratio */
int output; /* output type (1 = XFree86, 2 = Framebuffer, 3 = MatroxFB) */
unsigned int Memory; /* amount of memory on the Video adapter (in bytes) */
int width; /* screen width (in pixels) */
int heigth; /* screen heigth (in pixels) */
int refresh; /* refreshrate (in Hz) */
int depth; /* colordepth (in bits, for framebuffer output) */
char *File; /* config file */
} ml_sess;
extern ml_sess ml;
#endif
|