Mercurial > mplayer.hg
annotate cfg-mplayer.h @ 7626:09ccf6147d76
Small error, the buffer size got set incorrectly.
(Now BUFFER_SIZE * 3 instead of BUFFER_SIZE * 2)
patch by Tobias Diedrich <td@sim.uni-hannover.de>
author | arpi |
---|---|
date | Sun, 06 Oct 2002 17:30:38 +0000 |
parents | ce6a938aa6d3 |
children | b10d6345f2a6 |
rev | line source |
---|---|
147 | 1 /* |
2 * config for cfgparser | |
3 */ | |
4 | |
2790 | 5 #include "cfg-common.h" |
6 | |
4891 | 7 extern int use_stdin; |
1536
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
8 |
7069 | 9 #if defined(HAVE_FBDEV)||defined(HAVE_VESA) |
10 extern char *monitor_hfreq_str; | |
11 extern char *monitor_vfreq_str; | |
12 extern char *monitor_dotclock_str; | |
13 #endif | |
14 | |
378 | 15 #ifdef HAVE_FBDEV |
16 extern char *fb_dev_name; | |
17 extern char *fb_mode_cfgfile; | |
18 extern char *fb_mode_name; | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3272
diff
changeset
|
19 #else |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3272
diff
changeset
|
20 #ifdef HAVE_DIRECTFB |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3272
diff
changeset
|
21 extern char *fb_dev_name; |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3272
diff
changeset
|
22 #endif |
378 | 23 #endif |
526 | 24 #ifdef HAVE_PNG |
25 extern int z_compression; | |
26 #endif | |
5648 | 27 #ifdef HAVE_JPEG |
28 extern int jpeg_baseline; | |
29 extern int jpeg_progressive_mode; | |
30 extern int jpeg_optimize; | |
31 extern int jpeg_smooth; | |
32 extern int jpeg_quality; | |
33 extern char * jpeg_outdir; | |
34 #endif | |
636 | 35 #ifdef HAVE_SDL |
1187 | 36 //extern char *sdl_driver; |
636 | 37 extern int sdl_noxv; |
38 extern int sdl_forcexv; | |
1187 | 39 //extern char *sdl_adriver; |
636 | 40 #endif |
732
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
725
diff
changeset
|
41 #ifdef USE_FAKE_MONO |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
725
diff
changeset
|
42 extern int fakemono; // defined in dec_audio.c |
e14114170e01
applied 'fakemono' patch by Bryan Chan scorpio@acm.org
arpi_esp
parents:
725
diff
changeset
|
43 #endif |
636 | 44 |
1149
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1124
diff
changeset
|
45 #ifdef HAVE_LIRC |
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1124
diff
changeset
|
46 extern char *lirc_configfile; |
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1124
diff
changeset
|
47 #endif |
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1124
diff
changeset
|
48 |
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1124
diff
changeset
|
49 extern int vo_doublebuffering; |
4667 | 50 extern int vo_vsync; |
1267 | 51 extern int vo_fsmode; |
585 | 52 extern int vo_dbpp; |
6779 | 53 extern int vo_directrendering; |
54 extern int vd_use_slices; | |
55 extern float vo_panscan; | |
56 /* only used by startup (setting these values from configfile) */ | |
4229 | 57 extern int vo_gamma_brightness; |
58 extern int vo_gamma_saturation; | |
59 extern int vo_gamma_contrast; | |
60 extern int vo_gamma_hue; | |
1422 | 61 |
7451
8669e56d2d98
some mpcodecs option declaration moved to cfg-*, as aren;t used by
arpi
parents:
7359
diff
changeset
|
62 extern int opt_screen_size_x; |
8669e56d2d98
some mpcodecs option declaration moved to cfg-*, as aren;t used by
arpi
parents:
7359
diff
changeset
|
63 extern int opt_screen_size_y; |
8669e56d2d98
some mpcodecs option declaration moved to cfg-*, as aren;t used by
arpi
parents:
7359
diff
changeset
|
64 extern int fullscreen; |
8669e56d2d98
some mpcodecs option declaration moved to cfg-*, as aren;t used by
arpi
parents:
7359
diff
changeset
|
65 extern int vidmode; |
8669e56d2d98
some mpcodecs option declaration moved to cfg-*, as aren;t used by
arpi
parents:
7359
diff
changeset
|
66 |
1422 | 67 #ifdef USE_OSD |
641
d161307f447a
The -osdlevel switch for setting default OSD level (useful in your .config for example if you don't like watching OSD timer by default)
lgb
parents:
636
diff
changeset
|
68 extern int osd_level; |
1422 | 69 #endif |
378 | 70 |
1112
b1cf1087ec33
Added support for writing wave files and specifying filename to write to.
atmosfear
parents:
1038
diff
changeset
|
71 extern char *ao_outputfilename; |
b1cf1087ec33
Added support for writing wave files and specifying filename to write to.
atmosfear
parents:
1038
diff
changeset
|
72 extern int ao_pcm_waveheader; |
b1cf1087ec33
Added support for writing wave files and specifying filename to write to.
atmosfear
parents:
1038
diff
changeset
|
73 |
922
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
799
diff
changeset
|
74 #ifdef HAVE_X11 |
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
799
diff
changeset
|
75 extern char *mDisplayName; |
3655 | 76 extern int WinID; |
6202 | 77 extern int ice_layer; |
6303 | 78 extern int stop_xscreensaver; |
922
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
799
diff
changeset
|
79 #endif |
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
799
diff
changeset
|
80 |
1518 | 81 #ifdef HAVE_AA |
1536
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
82 extern int vo_aa_parseoption(struct config * conf, char *opt, char * param); |
4256
bbaa26821fdf
Added reverting support for -aa* -zr* -pp and -npp options
albeu
parents:
4249
diff
changeset
|
83 extern void vo_aa_revertoption(config_t* opt,char* param); |
1518 | 84 #endif |
85 | |
4213
f1e1b02314ef
-zr* added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4158
diff
changeset
|
86 #ifdef HAVE_ZR |
f1e1b02314ef
-zr* added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4158
diff
changeset
|
87 extern int vo_zr_parseoption(struct config * conf, char *opt, char * param); |
4256
bbaa26821fdf
Added reverting support for -aa* -zr* -pp and -npp options
albeu
parents:
4249
diff
changeset
|
88 extern void vo_zr_revertoption(config_t* opt,char* pram); |
4213
f1e1b02314ef
-zr* added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4158
diff
changeset
|
89 #endif |
f1e1b02314ef
-zr* added - patch by Rik Snel <rsnel@cube.dyndns.org>
arpi
parents:
4158
diff
changeset
|
90 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
91 #ifdef STREAMING_LIVE_DOT_COM |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
92 extern int isSDPFile; |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
93 #endif |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
94 |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1709
diff
changeset
|
95 #ifdef HAVE_NEW_GUI |
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1709
diff
changeset
|
96 extern char * skinName; |
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1709
diff
changeset
|
97 #endif |
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1709
diff
changeset
|
98 |
2188 | 99 #ifdef HAVE_ODIVX_POSTPROCESS |
100 extern int use_old_pp; | |
101 #endif | |
102 | |
4017 | 103 #ifdef HAVE_XINERAMA |
104 extern int xinerama_screen; | |
105 #endif | |
106 | |
5055 | 107 #ifdef HAVE_RTC |
108 extern int nortc; | |
109 #endif | |
110 | |
2053 | 111 /* from libvo/aspect.c */ |
112 extern float monitor_aspect; | |
113 | |
7614 | 114 #include "libaf/af.h" |
115 extern af_cfg_t af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c | |
116 struct config audio_filter_conf[]={ | |
117 {"list", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, | |
118 {"force", &af_cfg.force, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, | |
119 {NULL, NULL, 0, 0, 0, 0, NULL} | |
120 }; | |
121 | |
3279
d6ea11bed983
Commandline interface to ao_plugin updated according to mplayers complex parameter format and plugin pl_format finished (alpha code needs testing)
anders
parents:
3275
diff
changeset
|
122 /* Options related to audio out plugins */ |
d6ea11bed983
Commandline interface to ao_plugin updated according to mplayers complex parameter format and plugin pl_format finished (alpha code needs testing)
anders
parents:
3275
diff
changeset
|
123 struct config ao_plugin_conf[]={ |
4157 | 124 {"list", &ao_plugin_cfg.plugin_list, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
125 {"delay", &ao_plugin_cfg.pl_delay_len, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, | |
126 {"format", &ao_plugin_cfg.pl_format_type, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, | |
127 {"fout", &ao_plugin_cfg.pl_resample_fout, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, | |
4859 | 128 {"volume", &ao_plugin_cfg.pl_volume_volume, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL}, |
5306 | 129 {"mul", &ao_plugin_cfg.pl_extrastereo_mul, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL}, |
5063 | 130 {"softclip", &ao_plugin_cfg.pl_volume_softclip, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
4157 | 131 {NULL, NULL, 0, 0, 0, 0, NULL} |
3279
d6ea11bed983
Commandline interface to ao_plugin updated according to mplayers complex parameter format and plugin pl_format finished (alpha code needs testing)
anders
parents:
3275
diff
changeset
|
132 }; |
d6ea11bed983
Commandline interface to ao_plugin updated according to mplayers complex parameter format and plugin pl_format finished (alpha code needs testing)
anders
parents:
3275
diff
changeset
|
133 |
5648 | 134 #ifdef HAVE_JPEG |
135 struct config jpeg_conf[]={ | |
136 {"progressiv", &jpeg_progressive_mode, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
137 {"noprogressiv", &jpeg_progressive_mode, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
138 {"baseline", &jpeg_baseline, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
139 {"nobaseline", &jpeg_baseline, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
140 {"optimize", &jpeg_optimize, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, | |
141 {"smooth", &jpeg_smooth, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, | |
142 {"quality", &jpeg_quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, | |
143 {"outdir", &jpeg_outdir, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
144 {NULL, NULL, 0, 0, 0, 0, NULL} | |
145 }; | |
146 #endif | |
147 | |
3272 | 148 extern int sws_flags; |
3771 | 149 extern int readPPOpt(void *conf, char *arg); |
4256
bbaa26821fdf
Added reverting support for -aa* -zr* -pp and -npp options
albeu
parents:
4249
diff
changeset
|
150 extern int readNPPOpt(void *conf, char *arg); |
bbaa26821fdf
Added reverting support for -aa* -zr* -pp and -npp options
albeu
parents:
4249
diff
changeset
|
151 extern void revertPPOpt(void *conf, char* opt); |
3771 | 152 |
3272 | 153 |
1536
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
154 /* |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
155 * CONF_TYPE_FUNC_FULL : |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
156 * allows own implemtations for passing the params |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
157 * |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
158 * the function receives parameter name and argument (if it does not start with - ) |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
159 * useful with a conf.name like 'aa*' to parse several parameters to a function |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
160 * return 0 =ok, but we didn't need the param (could be the filename) |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
161 * return 1 =ok, we accepted the param |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
162 * negative values: see cfgparser.h, ERR_XXX |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
163 * |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
164 * by Folke |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
165 */ |
e89233dab4da
New feature for option processing: CONF_TYPE_FUNC_FULL
folke
parents:
1518
diff
changeset
|
166 |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
167 static config_t mplayer_opts[]={ |
458
49b0474b2e26
I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents:
457
diff
changeset
|
168 /* name, pointer, type, flags, min, max */ |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
169 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL}, /* this don't need anymore to be the first!!! */ |
2616 | 170 |
5974 | 171 //---------------------- libao/libvo options ------------------------ |
458
49b0474b2e26
I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents:
457
diff
changeset
|
172 {"o", "Option -o has been renamed to -vo (video-out), use -vo !\n", |
4157 | 173 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
7562
92188b57a062
video out driver list support (like -vc, example: -vo xmga,xv,x11,)
arpi
parents:
7539
diff
changeset
|
174 {"vo", &video_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
92188b57a062
video out driver list support (like -vc, example: -vo xmga,xv,x11,)
arpi
parents:
7539
diff
changeset
|
175 {"ao", &audio_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, |
5974 | 176 |
4157 | 177 {"aop", ao_plugin_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
7614 | 178 {"af", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |
4157 | 179 {"dsp", "Use -ao oss:dsp_path!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
180 {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
4859 | 181 {"master", "Option -master has been removed, use -aop list=volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
5974 | 182 // override audio buffer size (used only by -ao oss, anyway obsolete...) |
183 {"abs", &ao_data.buffersize, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, | |
184 | |
185 // -ao pcm options: | |
186 {"aofile", &ao_outputfilename, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
187 {"waveheader", &ao_pcm_waveheader, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
188 {"nowaveheader", &ao_pcm_waveheader, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
189 | |
190 {"alsa", "Option -alsa has been removed, new audio code doesn't need it! Remove it from your config file!\n", | |
191 CONF_TYPE_PRINT, 0, 0, 0, NULL}, | |
192 {"noalsa", "Option -noalsa has been removed, new audio code doesn't need it! Remove it from your config file!\n", | |
193 CONF_TYPE_PRINT, 0, 0, 0, NULL}, | |
194 | |
922
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
799
diff
changeset
|
195 #ifdef HAVE_X11 |
4157 | 196 {"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
922
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
799
diff
changeset
|
197 #endif |
5974 | 198 |
199 // -vo png only: | |
200 #ifdef HAVE_PNG | |
201 {"z", &z_compression, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL}, | |
202 #endif | |
203 // -vo jpeg only: | |
204 #ifdef HAVE_JPEG | |
205 {"jpeg", jpeg_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL}, | |
206 #endif | |
207 // -vo sdl only: | |
208 #ifdef HAVE_SDL | |
209 {"sdl", "Use -vo sdl:driver instead of -vo sdl -sdl driver\n", | |
210 CONF_TYPE_PRINT, 0, 0, 0, NULL}, | |
211 {"noxv", &sdl_noxv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
212 {"forcexv", &sdl_forcexv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
213 // -ao sdl only: | |
214 {"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver\n", | |
215 CONF_TYPE_PRINT, 0, 0, 0, NULL}, | |
216 #endif | |
2616 | 217 |
7359
7b929a5d753e
GTF update: Fixes "known parametrs" even when fbdev unused
arpi
parents:
7069
diff
changeset
|
218 #if defined(HAVE_FBDEV)||defined(HAVE_VESA) |
7b929a5d753e
GTF update: Fixes "known parametrs" even when fbdev unused
arpi
parents:
7069
diff
changeset
|
219 {"monitor_hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
7b929a5d753e
GTF update: Fixes "known parametrs" even when fbdev unused
arpi
parents:
7069
diff
changeset
|
220 {"monitor_vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
7b929a5d753e
GTF update: Fixes "known parametrs" even when fbdev unused
arpi
parents:
7069
diff
changeset
|
221 {"monitor_dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
7b929a5d753e
GTF update: Fixes "known parametrs" even when fbdev unused
arpi
parents:
7069
diff
changeset
|
222 #endif |
7b929a5d753e
GTF update: Fixes "known parametrs" even when fbdev unused
arpi
parents:
7069
diff
changeset
|
223 |
225 | 224 #ifdef HAVE_FBDEV |
4157 | 225 {"fb", &fb_dev_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
226 {"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
227 {"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0, NULL}, | |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3272
diff
changeset
|
228 #else |
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3272
diff
changeset
|
229 #ifdef HAVE_DIRECTFB |
4157 | 230 {"fb", &fb_dev_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
3275
38344371432f
vo DirectFB support by Jiri Svoboda <Jiri.Svoboda@seznam.cz>
arpi
parents:
3272
diff
changeset
|
231 #endif |
225 | 232 #endif |
5974 | 233 |
234 // force window width/height or resolution (with -vm) | |
235 {"x", &opt_screen_size_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | |
236 {"y", &opt_screen_size_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | |
237 // set screen dimensions (when not detectable or virtual!=visible) | |
238 {"screenw", &vo_screenwidth, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | |
239 {"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | |
240 // set aspect ratio of monitor - usefull for 16:9 TVout | |
241 {"monitoraspect", &monitor_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, | |
242 // video mode switching: (x11,xv,dga) | |
243 {"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
244 {"novm", &vidmode, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
245 // start in fullscreen mode: | |
246 {"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
247 {"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
248 // set fullscreen switch method (workaround for buggy WMs) | |
6065 | 249 {"fsmode", "option 'fsmode' is obsolete, avoid using it! if you really want it, try -fsmode-dontuse, but don't report bugs with this option used!", CONF_TYPE_PRINT, CONF_RANGE, 0, 31, NULL}, |
250 {"fsmode-dontuse", &vo_fsmode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL}, | |
5974 | 251 // set bpp (x11+vm, dga, fbdev, vesa, svga?) |
252 {"bpp", &vo_dbpp, CONF_TYPE_INT, CONF_RANGE, 0, 32, NULL}, | |
253 // double buffering: (mga/xmga, xv, vidix, vesa, fbdev) | |
254 {"double", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
255 {"nodouble", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
256 // wait for v-sync (vesa) | |
257 {"vsync", &vo_vsync, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
258 {"novsync", &vo_vsync, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
6304
ee65527096c2
pan&scan support with -vo xv by ?? <mplayer@svennevid.net>
arpi
parents:
6303
diff
changeset
|
259 {"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL}, |
5974 | 260 |
7539
56ea9db91251
-nograbpointer, based on old patch by Christian Ohm <chr.ohm@gmx.net>
arpi
parents:
7495
diff
changeset
|
261 {"grabpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
56ea9db91251
-nograbpointer, based on old patch by Christian Ohm <chr.ohm@gmx.net>
arpi
parents:
7495
diff
changeset
|
262 {"nograbpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
56ea9db91251
-nograbpointer, based on old patch by Christian Ohm <chr.ohm@gmx.net>
arpi
parents:
7495
diff
changeset
|
263 |
5974 | 264 #ifdef HAVE_X11 |
265 // x11,xv,xmga,xvidix | |
266 {"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL}, | |
267 {"rootwin", &WinID, CONF_TYPE_FLAG, 0, -1, 0, NULL}, | |
6202 | 268 {"icelayer", &ice_layer, CONF_TYPE_INT, CONF_RANGE, 0, 15, NULL}, |
6303 | 269 {"stop_xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
270 {"nostop_xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
5974 | 271 #endif |
272 | |
273 #ifdef HAVE_XINERAMA | |
274 {"xineramascreen", &xinerama_screen, CONF_TYPE_INT, CONF_RANGE, 0, 32, NULL}, | |
275 #endif | |
276 | |
6779 | 277 {"brightness",&vo_gamma_brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, |
278 {"saturation",&vo_gamma_saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, | |
279 {"contrast",&vo_gamma_contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, | |
280 {"hue",&vo_gamma_hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL}, | |
5974 | 281 |
282 // direct rendering (decoding to video out buffer) | |
283 {"dr", &vo_directrendering, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
284 {"nodr", &vo_directrendering, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
285 {"vaa_dr", "Use -dr, -vaa_dr was obsoleted\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, | |
286 {"vaa_nodr", "Use -nodr, -vaa_nodr was obsoleted\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, | |
287 | |
288 // draw by slices or whole frame (usefull with libmpeg2/libavcodec) | |
289 {"slices", &vd_use_slices, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
290 {"noslices", &vd_use_slices, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
291 | |
292 #ifdef HAVE_AA | |
293 // -vo aa | |
294 {"aa*", vo_aa_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0 , &vo_aa_revertoption}, | |
295 #endif | |
296 | |
297 #ifdef HAVE_ZR | |
298 // -vo zr | |
299 {"zr*", vo_zr_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0, &vo_zr_revertoption }, | |
300 #endif | |
301 | |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
302 #ifdef STREAMING_LIVE_DOT_COM |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
303 // -sdp option, specifying that the source is a SDP file |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
304 {"sdp", &isSDPFile, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
305 #else |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
306 {"sdp", "MPlayer was compiled WITHOUT the \"LIVE.COM Streaming Media\" libraries!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
307 #endif |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6779
diff
changeset
|
308 |
5974 | 309 //---------------------- mplayer-only options ------------------------ |
310 | |
311 {"osdlevel", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 2 , NULL}, | |
312 | |
313 // these should be moved to -common, and suppot in mencoder too | |
4157 | 314 {"vobsub", &vobsub_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
315 {"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL}, | |
5669
391931fa79a6
enabled new OSD code in -vop expand, subtitles rendering support to mencoder
arpi
parents:
5648
diff
changeset
|
316 |
4157 | 317 {"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL}, |
1211 | 318 |
5974 | 319 // set a-v distance, should be moved to -common and support in mencoder |
320 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL}, | |
1211 | 321 |
7605
c3bbe602aff3
new option -speed, to set playback speed rate (examples: -speed 1:3 or -speed 5)
arpi
parents:
7604
diff
changeset
|
322 {"speed", &playback_speed, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 100.0, NULL}, |
c3bbe602aff3
new option -speed, to set playback speed rate (examples: -speed 1:3 or -speed 5)
arpi
parents:
7604
diff
changeset
|
323 |
4157 | 324 {"framedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
325 {"hardframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 2, NULL}, | |
326 {"noframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
1124
0e95f30ffd4c
-frames and -benchmark options to make chl & gabucino happy
arpi_esp
parents:
1112
diff
changeset
|
327 |
4157 | 328 {"autoq", &auto_quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, |
2616 | 329 |
4157 | 330 {"benchmark", &benchmark, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
5974 | 331 |
332 // dump some stream out instead of playing the file | |
333 // this really should be in mencoder instead of mplayer... -> TODO | |
4157 | 334 {"dumpfile", &stream_dump_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
335 {"dumpaudio", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
336 {"dumpvideo", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 2, NULL}, | |
337 {"dumpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 3, NULL}, | |
338 {"dumpmpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 4, NULL}, | |
339 {"dumpstream", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 5, NULL}, | |
6209 | 340 {"dumpsrtsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 6, NULL}, |
7460 | 341 {"dumpmicrodvdsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 7, NULL}, |
2178 | 342 |
1149
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1124
diff
changeset
|
343 #ifdef HAVE_LIRC |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
344 {"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, |
1149
6a0f937b52e6
- new config option -lircconfig (config file for lirc)
acki2
parents:
1124
diff
changeset
|
345 #endif |
1518 | 346 |
7019 | 347 {"gui", &use_gui, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_NOCMD, 0, 1, NULL}, |
348 // {"nogui", &use_gui, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, | |
1518 | 349 |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1709
diff
changeset
|
350 #ifdef HAVE_NEW_GUI |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
351 {"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, |
1866
32b1bb50a0e8
some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents:
1709
diff
changeset
|
352 #endif |
2616 | 353 |
5974 | 354 {"noloop", &loop_times, CONF_TYPE_FLAG, 0, 0, -1, NULL}, |
355 {"loop", &loop_times, CONF_TYPE_INT, CONF_RANGE, -1, 10000, NULL}, | |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
356 {"playlist", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
5974 | 357 |
358 // a-v sync stuff: | |
7576
c135f7646036
new opt: -autosync, controls ao->get_delay() smoothing (default: disabled)
arpi
parents:
7562
diff
changeset
|
359 {"noautosync", &autosync, CONF_TYPE_FLAG, 0, 0, -1, NULL}, |
c135f7646036
new opt: -autosync, controls ao->get_delay() smoothing (default: disabled)
arpi
parents:
7562
diff
changeset
|
360 {"autosync", &autosync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL}, |
7495 | 361 // {"dapsync", &dapsync, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
362 // {"nodapsync", &dapsync, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | |
363 | |
4157 | 364 {"softsleep", &softsleep, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
5974 | 365 #ifdef HAVE_RTC |
366 {"nortc", &nortc, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | |
367 #endif | |
2889
0d8553a47d1a
RTC support, softsleep and optional new timing code by Dap
arpi
parents:
2790
diff
changeset
|
368 |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
369 {"slave", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL}, |
4891 | 370 {"use-stdin", &use_stdin, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
3831
9926017e5efd
-rootwin option (x11/xv only, x11 doesn't work for me)
arpi
parents:
3771
diff
changeset
|
371 |
2790 | 372 #define MAIN_CONF |
2616 | 373 #include "cfg-common.h" |
2790 | 374 #undef MAIN_CONF |
565 | 375 |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
376 {"quiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
4446
d2808c58e633
added -noquiet option to complement -quiet (request/patch by Alexander Werth)
rfelker
parents:
4355
diff
changeset
|
377 {"noquiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
4158
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
378 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 0, 100, NULL}, |
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
379 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL}, |
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
380 {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, |
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
381 {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, |
479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
arpi
parents:
4157
diff
changeset
|
382 {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, |
4157 | 383 {NULL, NULL, 0, 0, 0, 0, NULL} |
147 | 384 }; |