7
10
extern int key_fifo_size;
8
11
extern unsigned doubleclick_time;
11
13
extern char *fb_mode_cfgfile;
12
14
extern char *fb_mode_name;
15
15
extern char *dfb_params;
18
extern int fakemono; // defined in dec_audio.c
22
17
extern char *lirc_configfile;
25
19
extern float vo_panscanrange;
26
20
/* only used at startup (setting these values from configfile) */
34
28
extern char *ao_outputfilename;
35
29
extern int ao_pcm_waveheader;
38
31
extern int fs_layer;
39
32
extern int stop_xscreensaver;
43
34
extern int menu_startup;
44
35
extern int menu_keepdir;
45
36
extern char *menu_chroot;
47
37
extern char *menu_fribidi_charset;
48
38
extern int menu_flip_hebrew;
49
39
extern int menu_fribidi_flip_commas;
51
#endif /* HAVE_MENU */
54
extern int vo_zr_parseoption(m_option_t* conf, char *opt, char * param);
55
extern void vo_zr_revertoption(m_option_t* opt,char* pram);
41
extern char *unrar_executable;
43
int vo_zr_parseoption(const m_option_t* conf, char *opt, char * param);
44
void vo_zr_revertoption(const m_option_t* opt,char* pram);
59
46
extern m_option_t dxr2_opts[];
63
48
extern char * skinName;
65
49
extern int guiWinID;
69
52
/* from libvo/aspect.c */
71
54
extern float monitor_pixel_aspect;
73
56
extern int sws_flags;
74
extern int readPPOpt(void *conf, char *arg);
75
extern void revertPPOpt(void *conf, char* opt);
57
int readPPOpt(void *conf, char *arg);
58
void revertPPOpt(void *conf, char* opt);
76
59
extern char* pp_help;
78
m_option_t vd_conf[]={
61
const m_option_t vd_conf[]={
79
62
{"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
80
63
{NULL, NULL, 0, 0, 0, 0, NULL}
84
m_option_t tvscan_conf[]={
67
const m_option_t tvscan_conf[]={
85
68
{"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL},
86
69
{"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL},
87
70
{"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL},
125
108
{"nosoftvol", &soft_vol, CONF_TYPE_FLAG, 0, 1, 0, NULL},
126
109
{"softvol-max", &soft_vol_max, CONF_TYPE_FLOAT, CONF_RANGE, 10, 10000, NULL},
127
110
{"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
111
{"volume", &start_volume, CONF_TYPE_FLOAT, CONF_RANGE, -1, 10000, NULL},
128
112
{"master", "Option -master has been removed, use -af volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
129
113
// override audio buffer size (used only by -ao oss, anyway obsolete...)
130
114
{"abs", &ao_data.buffersize, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
140
124
CONF_TYPE_PRINT, 0, 0, 0, NULL},
141
125
{"edlout", &edl_output_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
144
128
{"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},
149
133
{"z", "-z has been removed. Use -vo png:z=<0-9> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
151
135
// -vo jpeg only:
153
137
{"jpeg", "-jpeg has been removed. Use -vo jpeg:<options> instead.\n",
154
138
CONF_TYPE_PRINT, 0, 0, 0, NULL},
162
146
{"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver.\n",
163
147
CONF_TYPE_PRINT, 0, 0, 0, NULL},
165
#if defined(HAVE_FBDEV)||defined(HAVE_VESA)
149
#if defined(CONFIG_FBDEV) || defined(CONFIG_VESA)
166
150
{"monitor-hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
167
151
{"monitor-vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
168
152
{"monitor-dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
172
156
{"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
173
157
{"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0, NULL},
159
#ifdef CONFIG_DIRECTFB
176
160
#if DIRECTFBVERSION > 912
177
161
{"dfbopts", "-dfbopts has been removed. Use -vf directfb:dfbopts=... instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
186
170
{"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},
187
171
// Geometry string
188
172
{"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL},
189
// set aspect ratio of monitor - useful for 16:9 TVout
173
// set aspect ratio of monitor - useful for 16:9 TV-out
190
174
{"monitoraspect", &force_monitor_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 9.0, NULL},
191
175
{"monitorpixelaspect", &monitor_pixel_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 9.0, NULL},
192
176
// video mode switching: (x11,xv,dga)
216
200
{"adapter", &vo_adapter_num, CONF_TYPE_INT, CONF_RANGE, 0, 5, NULL},
217
201
{"refreshrate",&vo_refresh_rate,CONF_TYPE_INT,CONF_RANGE, 0,100, NULL},
218
{"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL},
202
{"wid", &WinID, CONF_TYPE_INT64, 0, 0, 0, NULL},
220
204
// x11,xv,xmga,xvidix
221
205
{"icelayer", "-icelayer has been removed. Use -fstype layer:<number> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
222
206
{"stop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
224
208
{"stop_xscreensaver", "Use -stop-xscreensaver instead, options with _ have been obsoleted.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
225
209
{"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
211
{"heartbeat-cmd", &heartbeat_cmd, CONF_TYPE_STRING, 0, 0, 0, NULL},
227
212
{"mouseinput", &vo_nomouse_input, CONF_TYPE_FLAG, 0, 1, 0, NULL},
228
213
{"nomouseinput", &vo_nomouse_input, CONF_TYPE_FLAG,0, 0, 1, NULL},
242
227
{"vaa_dr", "-vaa_dr has been removed, use -dr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
243
228
{"vaa_nodr", "-vaa_nodr has been removed, use -nodr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
247
232
{"aa*", "-aa* has been removed. Use -vo aa:suboption instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
252
237
{"zr*", vo_zr_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0, &vo_zr_revertoption },
256
241
{"dxr2", &dxr2_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
262
247
{"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
263
248
{"nouse-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
249
#ifdef CONFIG_CRASH_DEBUG
265
250
{"crash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
266
251
{"nocrash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
268
253
{"osdlevel", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
269
254
{"osd-duration", &osd_duration, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
271
256
{"menu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
272
257
{"nomenu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
273
258
{"menu-root", &menu_root, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
275
260
{"menu-startup", &menu_startup, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
276
261
{"menu-keepdir", &menu_keepdir, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
277
262
{"menu-chroot", &menu_chroot, CONF_TYPE_STRING, 0, 0, 0, NULL},
263
#ifdef CONFIG_FRIBIDI
279
264
{"menu-fribidi-charset", &menu_fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
280
265
{"menu-flip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
281
266
{"menu-noflip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
282
267
{"menu-flip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
283
268
{"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
284
#endif /* USE_FRIBIDI */
269
#endif /* CONFIG_FRIBIDI */
286
271
{"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT,0, 0, 0, NULL},
287
#endif /* HAVE_MENU */
272
#endif /* CONFIG_MENU */
289
274
// these should be moved to -common, and supported in MEncoder
290
275
{"vobsub", &vobsub_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
291
276
{"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
277
#ifdef CONFIG_UNRAR_EXEC
278
{"unrarexec", &unrar_executable, CONF_TYPE_STRING, 0, 0, 0, NULL},
293
281
{"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
313
301
{"dumpjacosub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 8, NULL},
314
302
{"dumpsami", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 9, NULL},
317
305
{"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
320
308
{"gui", "The -gui option will only work as the first command line argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
321
309
{"nogui", "The -nogui option will only work as the first command line argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
324
312
{"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
325
313
{"enqueue", &enqueue, CONF_TYPE_FLAG, 0, 0, 1, NULL},
326
314
{"noenqueue", &enqueue, CONF_TYPE_FLAG, 0, 1, 0, NULL},
332
320
{"playlist", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL},
334
322
// a-v sync stuff:
335
{"correct-pts", &correct_pts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
336
{"no-correct-pts", &correct_pts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
323
{"correct-pts", &user_correct_pts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
324
{"nocorrect-pts", &user_correct_pts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
337
325
{"noautosync", &autosync, CONF_TYPE_FLAG, 0, 0, -1, NULL},
338
326
{"autosync", &autosync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL},
339
327
// {"dapsync", &dapsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
361
349
{"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
362
350
{"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
363
351
{"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL},
365
353
{"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
367
355
{"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
371
#include "cfg-common.h"
356
#endif /* CONFIG_TV */
358
#include "cfg-common-opts.h"
374
360
{"list-properties", &list_properties, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
375
361
{"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL},
376
362
{"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
380
366
{"vd", vd_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
381
367
{NULL, NULL, 0, 0, 0, 0, NULL}
370
#endif /* MPLAYER_CFG_MPLAYER_H */