annotate cfg-mplayer.h @ 147:0a0d7dd8fb51

new command line/config file parser
author szabii
date Sun, 18 Mar 2001 23:32:31 +0000
parents
children 16a32ec6419d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
1 /*
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
2 * config for cfgparser
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
3 */
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
4
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
5 struct config conf[]={
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
6 /* name, pointer, type, flags, min, max */
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
7 {"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
8 {"dsp", &dsp, CONF_TYPE_STRING, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
9 {"encode", &encode_name, CONF_TYPE_STRING, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
10 {"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
11 {"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
12 {"sb", &seek_to_byte, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
13 {"ss", &seek_to_sec, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
14 {"sound", &has_audio, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
15 {"nosound", &has_audio, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
16 {"abs", &audio_buffer_size, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
17 {"delay", &audio_delay, CONF_TYPE_FLOAT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
18 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
19 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
20 {"alsa", &alsa, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
21 {"noalsa", &alsa, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
22 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
23 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
24 {"aid", &audio_id, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
25 {"vid", &video_id, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
26 {"auds", &avi_header.audio_codec, CONF_TYPE_STRING, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
27 {"vids", &avi_header.video_codec, CONF_TYPE_STRING, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
28 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
29 {"fps", &force_fps, CONF_TYPE_FLOAT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
30 {"afm", &audio_format, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
31 {"vcd", &vcd_track, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
32 {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
33 {"br", &encode_bitrate, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
34 {"x", &screen_size_x, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
35 {"y", &screen_size_y, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
36 {"xy", &screen_size_xy, CONF_TYPE_INT, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
37 {"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
38 {"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
39 {"idx", &no_index, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
40 {"noidx", &no_index, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
41 {"v", &verbose, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
42 {"nov", &verbose, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
43 {NULL, NULL, 0, 0, 0, 0}
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
44 };