configure: remove unused maemo check
[mplayer/greg.git] / cfg-mplayer.h
blobe2a52ee637a0028873d40342e065bfeea241d02f
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_CFG_MPLAYER_H
20 #define MPLAYER_CFG_MPLAYER_H
23 * config for cfgparser
26 #include <stddef.h>
28 #include "cfg-common.h"
29 #include "options.h"
31 extern char *fb_mode_cfgfile;
32 extern char *fb_mode_name;
34 extern char *lirc_configfile;
36 /* only used at startup (setting these values from configfile) */
37 extern char *vo_geometry;
38 extern int stop_xscreensaver;
40 extern int menu_startup;
41 extern int menu_keepdir;
42 extern char *menu_chroot;
43 extern char *menu_fribidi_charset;
44 extern int menu_flip_hebrew;
45 extern int menu_fribidi_flip_commas;
47 extern char *unrar_executable;
49 const m_option_t vd_conf[]={
50 {"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},
51 {NULL, NULL, 0, 0, 0, 0, NULL}
54 #ifdef CONFIG_TV
55 const m_option_t tvscan_conf[]={
56 {"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL},
57 {"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL},
58 {"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL},
59 {NULL, NULL, 0, 0, 0, 0, NULL}
61 #endif
63 const m_option_t mplayer_opts[]={
64 /* name, pointer, type, flags, min, max */
66 //---------------------- libao/libvo options ------------------------
67 {"o", "Option -o has been renamed to -vo (video-out), use -vo.\n",
68 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
69 OPT_STRINGLIST("vo", video_driver_list, 0),
70 OPT_STRINGLIST("ao", audio_driver_list, 0),
71 OPT_MAKE_FLAGS("fixed-vo", fixed_vo, CONF_GLOBAL),
72 OPT_MAKE_FLAGS("ontop", vo_ontop, 0),
73 {"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
74 {"border", &vo_border, CONF_TYPE_FLAG, 0, 0, 1, NULL},
75 {"noborder", &vo_border, CONF_TYPE_FLAG, 0, 1, 0, NULL},
77 {"aop", "-aop has been removed, use -af instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
78 {"dsp", "-dsp has been removed. Use -ao oss:dsp_path instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
79 {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
80 {"mixer-channel", &mixer_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
81 {"softvol", &soft_vol, CONF_TYPE_FLAG, 0, 0, 1, NULL},
82 {"nosoftvol", &soft_vol, CONF_TYPE_FLAG, 0, 1, 0, NULL},
83 {"softvol-max", &soft_vol_max, CONF_TYPE_FLOAT, CONF_RANGE, 10, 10000, NULL},
84 {"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
85 {"volume", &start_volume, CONF_TYPE_FLOAT, CONF_RANGE, -1, 10000, NULL},
86 OPT_MAKE_FLAGS("gapless-audio", gapless_audio, 0),
87 {"master", "Option -master has been removed, use -af volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
88 // override audio buffer size (used only by -ao oss/win32, obsolete)
89 OPT_INT("abs", ao_buffersize, 0),
91 // -ao pcm options:
92 {"aofile", "-aofile has been removed. Use -ao pcm:file=<filename> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
93 {"waveheader", "-waveheader has been removed. Use -ao pcm:waveheader instead.\n", CONF_TYPE_PRINT, 0, 0, 1, NULL},
94 {"nowaveheader", "-nowaveheader has been removed. Use -ao pcm:nowaveheader instead.\n", CONF_TYPE_PRINT, 0, 1, 0, NULL},
96 {"alsa", "-alsa has been removed. Remove it from your config file.\n",
97 CONF_TYPE_PRINT, 0, 0, 0, NULL},
98 {"noalsa", "-noalsa has been removed. Remove it from your config file.\n",
99 CONF_TYPE_PRINT, 0, 0, 0, NULL},
100 {"edlout", &edl_output_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
102 #ifdef CONFIG_X11
103 {"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},
104 #endif
106 // -vo png only:
107 #ifdef CONFIG_PNG
108 {"z", "-z has been removed. Use -vo png:z=<0-9> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
109 #endif
110 // -vo jpeg only:
111 #ifdef CONFIG_JPEG
112 {"jpeg", "-jpeg has been removed. Use -vo jpeg:<options> instead.\n",
113 CONF_TYPE_PRINT, 0, 0, 0, NULL},
114 #endif
115 // -vo sdl only:
116 {"sdl", "Use -vo sdl:driver=<driver> instead of -vo sdl -sdl driver.\n",
117 CONF_TYPE_PRINT, 0, 0, 0, NULL},
118 {"noxv", "-noxv has been removed. Use -vo sdl:nohwaccel instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
119 {"forcexv", "-forcexv has been removed. Use -vo sdl:forcexv instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
120 // -ao sdl only:
121 {"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver.\n",
122 CONF_TYPE_PRINT, 0, 0, 0, NULL},
124 #if defined(CONFIG_FBDEV) || defined(CONFIG_VESA)
125 {"monitor-hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
126 {"monitor-vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
127 {"monitor-dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
128 #endif
130 #ifdef CONFIG_FBDEV
131 {"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
132 {"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0, NULL},
133 #endif
135 // force window width/height or resolution (with -vm)
136 OPT_INTRANGE("x", screen_size_x, 0, 0, 4096),
137 OPT_INTRANGE("y", screen_size_y, 0, 0, 4096),
138 // set screen dimensions (when not detectable or virtual!=visible)
139 OPT_INTRANGE("screenw", vo_screenwidth, CONF_NOSAVE, 0, 4096),
140 OPT_INTRANGE("screenh", vo_screenheight, CONF_NOSAVE, 0, 4096),
141 // Geometry string
142 {"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL},
143 OPT_MAKE_FLAGS("force-window-position", force_window_position, 0),
144 // vo name (X classname) and window title strings
145 OPT_STRING("name", vo_winname, 0),
146 OPT_STRING("title", vo_wintitle, 0),
147 // set aspect ratio of monitor - useful for 16:9 TV-out
148 OPT_FLOATRANGE("monitoraspect", force_monitor_aspect, 0, 0.0, 9.0),
149 OPT_FLOATRANGE("monitorpixelaspect", monitor_pixel_aspect, 0, 0.2, 9.0),
150 // video mode switching: (x11,xv,dga)
151 OPT_MAKE_FLAGS("vm", vidmode, 0),
152 // start in fullscreen mode:
153 OPT_MAKE_FLAGS("fs", fullscreen, CONF_NOSAVE),
154 // set fullscreen switch method (workaround for buggy WMs)
155 {"fsmode", "-fsmode is obsolete, avoid it and use -fstype instead.\nIf you really want it, try -fsmode-dontuse, but don't report bugs!\n", CONF_TYPE_PRINT, CONF_RANGE, 0, 31, NULL},
156 {"fsmode-dontuse", &vo_fsmode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
157 // set bpp (x11+vm, dga, fbdev, vesa, svga?)
158 OPT_INTRANGE("bpp", vo_dbpp, 0, 0, 32),
159 {"colorkey", &vo_colorkey, CONF_TYPE_INT, 0, 0, 0, NULL},
160 {"nocolorkey", &vo_colorkey, CONF_TYPE_FLAG, 0, 0, 0x1000000, NULL},
161 {"double", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 0, 1, NULL},
162 {"nodouble", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 1, 0, NULL},
163 // wait for v-sync (vesa)
164 {"vsync", &vo_vsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
165 {"novsync", &vo_vsync, CONF_TYPE_FLAG, 0, 1, 0, NULL},
166 {"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL},
167 OPT_FLOATRANGE("panscanrange", vo_panscanrange, 0, -19.0, 99.0),
169 {"grabpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
170 {"nograbpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 1, 0, NULL},
172 {"adapter", &vo_adapter_num, CONF_TYPE_INT, CONF_RANGE, 0, 5, NULL},
173 {"refreshrate",&vo_refresh_rate,CONF_TYPE_INT,CONF_RANGE, 0,100, NULL},
174 {"wid", &WinID, CONF_TYPE_INT64, 0, 0, 0, NULL},
175 #ifdef CONFIG_X11
176 {"icelayer", "-icelayer has been removed. Use -fstype layer:<number> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
177 {"stop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
178 {"nostop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 1, 0, NULL},
179 {"stop_xscreensaver", "Use -stop-xscreensaver instead, options with _ have been obsoleted.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
180 {"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
181 #endif
182 {"heartbeat-cmd", &heartbeat_cmd, CONF_TYPE_STRING, 0, 0, 0, NULL},
183 {"mouseinput", &vo_nomouse_input, CONF_TYPE_FLAG, 0, 1, 0, NULL},
184 {"nomouseinput", &vo_nomouse_input, CONF_TYPE_FLAG,0, 0, 1, NULL},
186 {"xineramascreen", &xinerama_screen, CONF_TYPE_INT, CONF_RANGE, -2, 32, NULL},
188 OPT_INTRANGE("brightness", vo_gamma_brightness, 0, -100, 100),
189 OPT_INTRANGE("saturation", vo_gamma_saturation, 0, -100, 100),
190 OPT_INTRANGE("contrast", vo_gamma_contrast, 0, -100, 100),
191 OPT_INTRANGE("hue", vo_gamma_hue, 0, -100, 100),
192 {"keepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
193 {"nokeepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},
195 // direct rendering (decoding to video out buffer)
196 {"dr", &vo_directrendering, CONF_TYPE_FLAG, 0, 0, 1, NULL},
197 {"nodr", &vo_directrendering, CONF_TYPE_FLAG, 0, 1, 0, NULL},
198 {"vaa_dr", "-vaa_dr has been removed, use -dr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
199 {"vaa_nodr", "-vaa_nodr has been removed, use -nodr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
201 #ifdef CONFIG_AA
202 // -vo aa
203 {"aa*", "-aa* has been removed. Use -vo aa:suboption instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
204 #endif
207 //---------------------- mplayer-only options ------------------------
209 {"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
210 {"nouse-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
211 {"use-filename-title", &use_filename_title, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
212 {"nouse-filename-title", &use_filename_title, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
213 #ifdef CONFIG_CRASH_DEBUG
214 {"crash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
215 {"nocrash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
216 #endif
217 OPT_INTRANGE("osdlevel", osd_level, 0, 0, 3),
218 OPT_INTRANGE("osd-duration", osd_duration, 0, 0, 3600000),
219 #ifdef CONFIG_MENU
220 {"menu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
221 {"nomenu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
222 {"menu-root", &menu_root, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
223 {"menu-cfg", &menu_cfg, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
224 {"menu-startup", &menu_startup, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
225 {"menu-keepdir", &menu_keepdir, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
226 {"menu-chroot", &menu_chroot, CONF_TYPE_STRING, 0, 0, 0, NULL},
227 #ifdef CONFIG_FRIBIDI
228 {"menu-fribidi-charset", &menu_fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
229 {"menu-flip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
230 {"menu-noflip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
231 {"menu-flip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
232 {"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
233 #endif /* CONFIG_FRIBIDI */
234 #else
235 {"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT,0, 0, 0, NULL},
236 #endif /* CONFIG_MENU */
238 {"vobsub", &vobsub_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
239 {"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
240 #ifdef CONFIG_UNRAR_EXEC
241 {"unrarexec", &unrar_executable, CONF_TYPE_STRING, 0, 0, 0, NULL},
242 #endif
244 {"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
246 {"framedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 1, NULL},
247 {"hardframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 2, NULL},
248 {"noframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 1, 0, NULL},
250 OPT_INTRANGE("autoq", auto_quality, 0, 0, 100),
252 OPT_FLAG_ON("benchmark", benchmark, 0),
254 // dump some stream out instead of playing the file
255 OPT_STRING("dumpfile", stream_dump_name, 0),
256 {"dumpaudio", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 1, NULL},
257 {"dumpvideo", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 2, NULL},
258 {"dumpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 3, NULL},
259 {"dumpmpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 4, NULL},
260 {"dumpstream", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 5, NULL},
261 {"dumpsrtsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 6, NULL},
262 {"dumpmicrodvdsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 7, NULL},
263 {"dumpjacosub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 8, NULL},
264 {"dumpsami", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 9, NULL},
266 OPT_MAKE_FLAGS("capture", capture_dump, 0),
268 #ifdef CONFIG_LIRC
269 {"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
270 #endif
272 {"leak-report", "", CONF_TYPE_PRINT, 0, 0, 0, (void*)1},
273 // these should be removed when gmplayer is forgotten
274 {"gui", "Internal GUI was removed. Use some other frontend instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
275 {"nogui", "Internal GUI was removed, -nogui is no longer valid.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
277 OPT_FLAG_CONSTANTS("noloop", loop_times, 0, 0, -1),
278 OPT_INTRANGE("loop", loop_times, 0, -1, 10000),
279 {"playlist", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL},
281 OPT_MAKE_FLAGS("ordered-chapters", ordered_chapters, 0),
282 OPT_INTRANGE("chapter-merge-threshold", chapter_merge_threshold, 0, 0, 10000),
284 // a-v sync stuff:
285 OPT_MAKE_FLAGS("correct-pts", user_correct_pts, 0),
286 OPT_CHOICE("pts-association-mode", user_pts_assoc_mode, 0,
287 ({"auto", 0}, {"decoder", 1}, {"sort", 2})),
288 OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync, 0),
289 OPT_CHOICE("hr-seek", hr_seek, 0,
290 ({"off", -1}, {"absolute", 0}, {"always", 1}, {"on", 1})),
291 OPT_FLAG_CONSTANTS("noautosync", autosync, 0, 0, -1),
292 OPT_INTRANGE("autosync", autosync, 0, 0, 10000),
294 OPT_FLAG_ON("softsleep", softsleep, 0),
295 #ifdef HAVE_RTC
296 OPT_MAKE_FLAGS("rtc", rtc, 0),
297 OPT_STRING("rtc-device", rtc_device, 0),
298 #endif
300 OPT_MAKE_FLAGS("term-osd", term_osd, 0),
301 OPT_STRING("term-osd-esc", term_osd_esc, 0),
302 OPT_STRING("playing-msg", playing_msg, 0),
304 {"slave", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL},
305 OPT_MAKE_FLAGS("idle", player_idle_mode, CONF_GLOBAL),
306 {"use-stdin", "-use-stdin has been renamed to -noconsolecontrols, use that instead.", CONF_TYPE_PRINT, 0, 0, 0, NULL},
307 OPT_INTRANGE("key-fifo-size", key_fifo_size, CONF_GLOBAL, 2, 65000),
308 OPT_MAKE_FLAGS("consolecontrols", consolecontrols, CONF_GLOBAL),
309 {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
310 {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
311 OPT_INTRANGE("doubleclick-time", doubleclick_time, 0, 0, 1000),
312 #ifdef CONFIG_TV
313 {"tvscan", (void *) tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
314 #else
315 {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
316 #endif /* CONFIG_TV */
318 OPT_FLAG_ON("list-properties", list_properties, CONF_GLOBAL),
319 {"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL},
320 {"-help", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
321 {"help", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
322 {"h", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
324 {"vd", (void *) vd_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
325 {NULL, NULL, 0, 0, 0, 0, NULL}
328 #endif /* MPLAYER_CFG_MPLAYER_H */