147
|
1 /*
|
|
2 * config for cfgparser
|
|
3 */
|
|
4
|
|
5 struct config conf[]={
|
|
6 /* name, pointer, type, flags, min, max */
|
162
|
7 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */
|
153
|
8 {"o", "Option -o has been renamed to -vo (video-out), use -vo !\n",
|
|
9 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
147
|
10 {"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0},
|
|
11 {"dsp", &dsp, CONF_TYPE_STRING, 0, 0, 0},
|
|
12 {"encode", &encode_name, CONF_TYPE_STRING, 0, 0, 0},
|
|
13 {"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1},
|
|
14 {"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0},
|
153
|
15 {"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0},
|
|
16 {"ss", &seek_to_sec, CONF_TYPE_INT, CONF_MIN, 0, 0},
|
147
|
17 {"sound", &has_audio, CONF_TYPE_FLAG, 0, 0, 1},
|
|
18 {"nosound", &has_audio, CONF_TYPE_FLAG, 0, 1, 0},
|
153
|
19 {"abs", &audio_buffer_size, CONF_TYPE_INT, CONF_MIN, 0, 0},
|
|
20 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0},
|
147
|
21 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1},
|
|
22 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0},
|
|
23 {"alsa", &alsa, CONF_TYPE_FLAG, 0, 0, 1},
|
|
24 {"noalsa", &alsa, CONF_TYPE_FLAG, 0, 1, 0},
|
|
25 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1},
|
|
26 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0},
|
153
|
27 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
|
|
28 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
|
147
|
29 {"auds", &avi_header.audio_codec, CONF_TYPE_STRING, 0, 0, 0},
|
|
30 {"vids", &avi_header.video_codec, CONF_TYPE_STRING, 0, 0, 0},
|
153
|
31 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10},
|
|
32 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
|
|
33 {"afm", &audio_format, CONF_TYPE_INT, CONF_RANGE, 1, 6},
|
|
34 {"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99},
|
|
35 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
|
|
36 CONF_TYPE_PRINT, 0, 0, 0},
|
|
37 {"pp", &divx_quality, CONF_TYPE_INT, CONF_RANGE, 0, 63},
|
|
38 {"br", &encode_bitrate, CONF_TYPE_INT, CONF_RANGE, 10000, 10000000},
|
|
39 {"x", &screen_size_x, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
|
|
40 {"y", &screen_size_y, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
|
|
41 {"xy", &screen_size_xy, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
|
147
|
42 {"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1},
|
|
43 {"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0},
|
|
44 {"idx", &no_index, CONF_TYPE_FLAG, 0, 1, 0},
|
|
45 {"noidx", &no_index, CONF_TYPE_FLAG, 0, 0, 1},
|
153
|
46 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100},
|
|
47 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0},
|
|
48 {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
49 {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
50 {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
147
|
51 {NULL, NULL, 0, 0, 0, 0}
|
|
52 };
|