Mercurial > mplayer.hg
annotate cfg-common.h @ 4042:d651a7b5d213
STREAMTYPE_PLAYLIST introduced. similar to STREAMTYPE_STREAM but used for playlists. patch by Alban Bedel <albeu@free.fr>
author | arpi |
---|---|
date | Tue, 08 Jan 2002 01:19:54 +0000 |
parents | 04b2227ab75a |
children | 9ff9f6ce6799 |
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}, | |
3975
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3771
diff
changeset
|
25 {"csslib", &css_so, CONF_TYPE_STRING, 0, 0, 0}, |
2616 | 26 #else |
3975
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3771
diff
changeset
|
27 {"dvdauth", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3771
diff
changeset
|
28 {"dvdkey", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, |
04b2227ab75a
Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so
lgb
parents:
3771
diff
changeset
|
29 {"csslib", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, |
2616 | 30 #endif |
31 | |
32 // ------------------------- demuxer options -------------------- | |
33 | |
34 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1}, | |
35 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0}, | |
36 | |
37 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1}, | |
38 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0}, | |
39 | |
40 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0}, | |
41 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1}, | |
42 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2}, | |
43 | |
44 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 255}, | |
45 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 255}, | |
46 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31}, | |
47 | |
48 // ------------------------- a-v sync options -------------------- | |
49 | |
2643 | 50 {"frames", &play_n_frames, CONF_TYPE_INT, CONF_MIN, 0, 0}, |
51 | |
2616 | 52 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10}, |
53 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0}, | |
54 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000}, | |
55 | |
56 // ------------------------- codec/pp options -------------------- | |
57 | |
58 #ifdef USE_FAKE_MONO | |
59 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2}, | |
60 #endif | |
61 | |
3765 | 62 {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 16}, // keep ranges in sync |
63 {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 14}, // with codec-cfg.c | |
2616 | 64 {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0}, |
65 {"vc", &video_codec, CONF_TYPE_STRING, 0, 0, 0}, | |
66 | |
67 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n", | |
68 CONF_TYPE_PRINT, 0, 0, 0}, | |
69 {"pp", &divx_quality, CONF_TYPE_INT, CONF_MIN, 0, 63}, | |
3771 | 70 {"npp", readPPOpt, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, |
2616 | 71 #ifdef HAVE_ODIVX_POSTPROCESS |
72 {"oldpp", &use_old_pp, CONF_TYPE_FLAG, 0, 0, 1}, | |
73 #else | |
3460 | 74 {"oldpp", "MPlayer was compiled without opendivx library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0}, |
2616 | 75 #endif |
3272 | 76 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2}, |
2616 | 77 |
2790 | 78 #ifdef USE_TV |
79 {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, | |
2822 | 80 #else |
3460 | 81 {"tv", "MPlayer was compiled without TV Interface support\n", CONF_TYPE_PRINT, 0, 0, 0}, |
2790 | 82 #endif |
3502 | 83 {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0}, |
2790 | 84 |
85 #else | |
86 | |
87 #include "config.h" | |
88 | |
89 #include "libmpdemux/tv.h" | |
90 | |
2831 | 91 #ifdef USE_TV |
2790 | 92 struct config tvopts_conf[]={ |
93 {"on", &tv_param_on, CONF_TYPE_FLAG, 0, 0, 1}, | |
94 {"driver", &tv_param_driver, CONF_TYPE_STRING, 0, 0, 0}, | |
95 {"device", &tv_param_device, CONF_TYPE_STRING, 0, 0, 0}, | |
2838 | 96 {"freq", &tv_param_freq, CONF_TYPE_STRING, 0, 0, 0}, |
2790 | 97 {"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
|
98 {"chanlist", &tv_param_chanlist, CONF_TYPE_STRING, 0, 0, 0}, |
2790 | 99 {"norm", &tv_param_norm, CONF_TYPE_STRING, 0, 0, 0}, |
100 {"width", &tv_param_width, CONF_TYPE_INT, 0, 0, 4096}, | |
101 {"height", &tv_param_height, CONF_TYPE_INT, 0, 0, 4096}, | |
2802 | 102 {"input", &tv_param_input, CONF_TYPE_INT, 0, 0, 20}, |
2816 | 103 {"outfmt", &tv_param_outfmt, CONF_TYPE_STRING, 0, 0, 0}, |
3285 | 104 {"fps", &tv_param_fps, CONF_TYPE_FLOAT, 0, 0, 100.0}, |
2790 | 105 {NULL, NULL, 0, 0, 0, 0} |
106 }; | |
107 #endif | |
108 | |
3502 | 109 /* VIVO demuxer options: */ |
3503 | 110 extern int vivo_param_version; |
3502 | 111 extern char *vivo_param_acodec; |
112 extern int vivo_param_abitrate; | |
113 extern int vivo_param_samplerate; | |
114 extern int vivo_param_bytesperblock; | |
115 extern int vivo_param_width; | |
116 extern int vivo_param_height; | |
117 extern int vivo_param_vformat; | |
118 | |
119 struct config vivoopts_conf[]={ | |
3503 | 120 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0}, |
3502 | 121 /* audio options */ |
122 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0}, | |
123 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0}, | |
124 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0}, | |
125 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0}, | |
126 /* video options */ | |
127 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0}, | |
128 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0}, | |
129 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0}, | |
130 {NULL, NULL, 0, 0, 0, 0} | |
131 }; | |
132 | |
2790 | 133 #endif |