Mercurial > mplayer.hg
annotate cfg-common.h @ 3920:eea76f70665d
Sync with r1.20. Just for release
author | nick |
---|---|
date | Mon, 31 Dec 2001 16:07:04 +0000 |
parents | a14b3a600b81 |
children | 04b2227ab75a |
rev | line source |
---|---|
2790 | 1 #ifdef MAIN_CONF /* this will be included in conf[] */ |
2616 | 2 // ------------------------- stream options -------------------- |
3 | |
4 #ifdef USE_STREAM_CACHE | |
5 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 4, 65536}, | |
6 #else | |
3460 | 7 {"cache", "MPlayer was compiled WITHOUT cache2 support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, |
2616 | 8 #endif |
3260 | 9 #ifdef HAVE_VCD |
2616 | 10 {"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99}, |
3260 | 11 #else |
12 {"vcd", "VCD support is NOT available on this system!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | |
13 #endif | |
2616 | 14 #ifdef USE_DVDREAD |
15 {"dvd", &dvd_title, CONF_TYPE_INT, CONF_RANGE, 1, 99}, | |
16 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99}, | |
17 {"chapter", &dvd_chapter, CONF_TYPE_INT, CONF_RANGE, 1, 99}, | |
18 #else | |
19 {"dvd", "MPlayer was compiled WITHOUT libdvdread support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | |
20 #endif | |
21 | |
22 #ifdef HAVE_LIBCSS | |
23 {"dvdauth", &dvd_auth_device, CONF_TYPE_STRING, 0, 0, 0}, | |
24 {"dvdkey", &dvdimportkey, CONF_TYPE_STRING, 0, 0, 0}, | |
25 // {"dvd", "Option -dvd will be \"full disk\" mode, old meaning has been renamed to -dvdauth.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, | |
26 #else | |
27 // {"dvd", "DVD support was not compiled in. See file DOCS/DVD.\n", | |
28 // CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0}, | |
29 #ifdef USE_DVDREAD | |
30 {"dvdkey", "MPlayer was compiled with libdvdread support, this option not available.\n", | |
31 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0}, | |
32 {"dvdauth", "MPlayer was compiled with libdvdread support! Use option -dvd !\n", | |
33 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0}, | |
34 #else | |
35 {"dvdkey", "DVD support was not compiled in. See file DOCS/DVD.\n", | |
36 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0}, | |
37 {"dvdauth", "DVD support was not compiled in. See file DOCS/DVD.\n", | |
38 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0}, | |
39 #endif | |
40 #endif | |
41 | |
42 // ------------------------- demuxer options -------------------- | |
43 | |
44 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1}, | |
45 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0}, | |
46 | |
47 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1}, | |
48 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0}, | |
49 | |
50 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0}, | |
51 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1}, | |
52 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2}, | |
53 | |
54 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 255}, | |
55 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 255}, | |
56 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31}, | |
57 | |
58 // ------------------------- a-v sync options -------------------- | |
59 | |
2643 | 60 {"frames", &play_n_frames, CONF_TYPE_INT, CONF_MIN, 0, 0}, |
61 | |
2616 | 62 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10}, |
63 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0}, | |
64 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000}, | |
65 | |
66 // ------------------------- codec/pp options -------------------- | |
67 | |
68 #ifdef USE_FAKE_MONO | |
69 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2}, | |
70 #endif | |
71 | |
3765 | 72 {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 16}, // keep ranges in sync |
73 {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 14}, // with codec-cfg.c | |
2616 | 74 {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0}, |
75 {"vc", &video_codec, CONF_TYPE_STRING, 0, 0, 0}, | |
76 | |
77 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n", | |
78 CONF_TYPE_PRINT, 0, 0, 0}, | |
79 {"pp", &divx_quality, CONF_TYPE_INT, CONF_MIN, 0, 63}, | |
3771 | 80 {"npp", readPPOpt, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, |
2616 | 81 #ifdef HAVE_ODIVX_POSTPROCESS |
82 {"oldpp", &use_old_pp, CONF_TYPE_FLAG, 0, 0, 1}, | |
83 #else | |
3460 | 84 {"oldpp", "MPlayer was compiled without opendivx library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, |
2616 | 85 #endif |
3272 | 86 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2}, |
2616 | 87 |
2790 | 88 #ifdef USE_TV |
89 {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | |
2822 | 90 #else |
3460 | 91 {"tv", "MPlayer was compiled without TV Interface support\n", CONF_TYPE_PRINT, 0, 0, 0}, |
2790 | 92 #endif |
3502 | 93 {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, |
2790 | 94 |
95 #else | |
96 | |
97 #include "config.h" | |
98 | |
99 #include "libmpdemux/tv.h" | |
100 | |
2831 | 101 #ifdef USE_TV |
2790 | 102 struct config tvopts_conf[]={ |
103 {"on", &tv_param_on, CONF_TYPE_FLAG, 0, 0, 1}, | |
104 {"driver", &tv_param_driver, CONF_TYPE_STRING, 0, 0, 0}, | |
105 {"device", &tv_param_device, CONF_TYPE_STRING, 0, 0, 0}, | |
2838 | 106 {"freq", &tv_param_freq, CONF_TYPE_STRING, 0, 0, 0}, |
2790 | 107 {"channel", &tv_param_channel, CONF_TYPE_STRING, 0, 0, 0}, |
2941
60c1b7c0ea21
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents:
2838
diff
changeset
|
108 {"chanlist", &tv_param_chanlist, CONF_TYPE_STRING, 0, 0, 0}, |
2790 | 109 {"norm", &tv_param_norm, CONF_TYPE_STRING, 0, 0, 0}, |
110 {"width", &tv_param_width, CONF_TYPE_INT, 0, 0, 4096}, | |
111 {"height", &tv_param_height, CONF_TYPE_INT, 0, 0, 4096}, | |
2802 | 112 {"input", &tv_param_input, CONF_TYPE_INT, 0, 0, 20}, |
2816 | 113 {"outfmt", &tv_param_outfmt, CONF_TYPE_STRING, 0, 0, 0}, |
3285 | 114 {"fps", &tv_param_fps, CONF_TYPE_FLOAT, 0, 0, 100.0}, |
2790 | 115 {NULL, NULL, 0, 0, 0, 0} |
116 }; | |
117 #endif | |
118 | |
3502 | 119 /* VIVO demuxer options: */ |
3503 | 120 extern int vivo_param_version; |
3502 | 121 extern char *vivo_param_acodec; |
122 extern int vivo_param_abitrate; | |
123 extern int vivo_param_samplerate; | |
124 extern int vivo_param_bytesperblock; | |
125 extern int vivo_param_width; | |
126 extern int vivo_param_height; | |
127 extern int vivo_param_vformat; | |
128 | |
129 struct config vivoopts_conf[]={ | |
3503 | 130 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0}, |
3502 | 131 /* audio options */ |
132 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0}, | |
133 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0}, | |
134 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0}, | |
135 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0}, | |
136 /* video options */ | |
137 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0}, | |
138 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0}, | |
139 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0}, | |
140 {NULL, NULL, 0, 0, 0, 0} | |
141 }; | |
142 | |
2790 | 143 #endif |