libfaad2: Restore trailing whitespace in local diff file
[mplayer/glamo.git] / cfg-common.h
blob1e9871f99b5297c560c67da776ab7183a3b0a327
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_COMMON_H
20 #define MPLAYER_CFG_COMMON_H
22 #include <sys/types.h>
23 #include "config.h"
24 #include "m_config.h"
25 #include "m_option.h"
27 #include "libmpdemux/demux_ts.h"
29 extern char *mp_msg_charset;
30 extern int mp_msg_color;
31 extern int mp_msg_module;
33 /* defined in codec-cfg.c */
34 extern char * codecs_file;
36 /* defined in dec_video.c */
37 extern int field_dominance;
39 /* from dec_audio, currently used for ac3surround decoder only */
40 extern int audio_output_channels;
41 extern int fakemono;
43 /* defined in network.c */
44 extern char *network_username;
45 extern char *network_password;
46 extern int network_bandwidth;
47 extern char *network_useragent;
48 extern char *network_referrer;
49 extern int network_cookies_enabled;
50 extern char *cookies_file;
52 extern int network_prefer_ipv4;
53 extern int network_ipv4_only_proxy;
54 extern int reuse_socket;
56 extern int dvd_speed; /* stream/stream_dvd.c */
58 /* defined in libmpdemux: */
59 extern int hr_mp3_seek;
60 extern const m_option_t demux_rawaudio_opts[];
61 extern const m_option_t demux_rawvideo_opts[];
62 extern const m_option_t cdda_opts[];
64 extern char* sub_stream;
65 extern int demuxer_type, audio_demuxer_type, sub_demuxer_type;
66 extern int ts_prog;
67 extern int ts_keep_broken;
68 extern off_t ts_probe;
69 extern int audio_substream_id;
70 extern off_t ps_probe;
72 extern int sws_flags;
73 extern char* pp_help;
76 #include "stream/tv.h"
77 #include "stream/stream_radio.h"
81 #ifdef CONFIG_RADIO
82 const m_option_t radioopts_conf[]={
83 {"device", &stream_radio_defaults.device, CONF_TYPE_STRING, 0, 0 ,0, NULL},
84 {"driver", &stream_radio_defaults.driver, CONF_TYPE_STRING, 0, 0 ,0, NULL},
85 #ifdef RADIO_BSDBT848_HDR
86 {"freq_min", &stream_radio_defaults.freq_min, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
87 {"freq_max", &stream_radio_defaults.freq_max, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
88 #endif
89 {"channels", &stream_radio_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0 ,0, NULL},
90 {"volume", &stream_radio_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0 ,100, NULL},
91 {"adevice", &stream_radio_defaults.adevice, CONF_TYPE_STRING, 0, 0 ,0, NULL},
92 {"arate", &stream_radio_defaults.arate, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
93 {"achannels", &stream_radio_defaults.achannels, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
94 {NULL, NULL, 0, 0, 0, 0, NULL}
96 #endif /* CONFIG_RADIO */
98 #ifdef CONFIG_TV
99 const m_option_t tvopts_conf[]={
100 {"on", "-tv on has been removed, use tv:// instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
101 {"immediatemode", &stream_tv_defaults.immediate, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},
102 {"noaudio", &stream_tv_defaults.noaudio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
103 {"audiorate", &stream_tv_defaults.audiorate, CONF_TYPE_INT, 0, 0, 0, NULL},
104 {"driver", &stream_tv_defaults.driver, CONF_TYPE_STRING, 0, 0, 0, NULL},
105 {"device", &stream_tv_defaults.device, CONF_TYPE_STRING, 0, 0, 0, NULL},
106 {"freq", &stream_tv_defaults.freq, CONF_TYPE_STRING, 0, 0, 0, NULL},
107 {"channel", &stream_tv_defaults.channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
108 {"chanlist", &stream_tv_defaults.chanlist, CONF_TYPE_STRING, 0, 0, 0, NULL},
109 {"norm", &stream_tv_defaults.norm, CONF_TYPE_STRING, 0, 0, 0, NULL},
110 {"automute", &stream_tv_defaults.automute, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
111 #if defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
112 {"normid", &stream_tv_defaults.normid, CONF_TYPE_INT, 0, 0, 0, NULL},
113 #endif
114 {"width", &stream_tv_defaults.width, CONF_TYPE_INT, 0, 0, 4096, NULL},
115 {"height", &stream_tv_defaults.height, CONF_TYPE_INT, 0, 0, 4096, NULL},
116 {"input", &stream_tv_defaults.input, CONF_TYPE_INT, 0, 0, 20, NULL},
117 {"outfmt", &stream_tv_defaults.outfmt, CONF_TYPE_IMGFMT, 0, 0, 0, NULL},
118 {"fps", &stream_tv_defaults.fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
119 {"channels", &stream_tv_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
120 {"brightness", &stream_tv_defaults.brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
121 {"contrast", &stream_tv_defaults.contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
122 {"hue", &stream_tv_defaults.hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
123 {"saturation", &stream_tv_defaults.saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
124 {"gain", &stream_tv_defaults.gain, CONF_TYPE_INT, CONF_RANGE, -1, 100, NULL},
125 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
126 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
127 {"amode", &stream_tv_defaults.amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
128 {"volume", &stream_tv_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
129 #endif
130 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2)
131 {"bass", &stream_tv_defaults.bass, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
132 {"treble", &stream_tv_defaults.treble, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
133 {"balance", &stream_tv_defaults.balance, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
134 {"forcechan", &stream_tv_defaults.forcechan, CONF_TYPE_INT, CONF_RANGE, 1, 2, NULL},
135 {"forceaudio", &stream_tv_defaults.force_audio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
136 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
137 {"mjpeg", &stream_tv_defaults.mjpeg, CONF_TYPE_FLAG, 0, 0, 1, NULL},
138 {"decimation", &stream_tv_defaults.decimation, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL},
139 {"quality", &stream_tv_defaults.quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
140 #ifdef CONFIG_ALSA
141 {"alsa", &stream_tv_defaults.alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL},
142 #endif /* CONFIG_ALSA */
143 #endif /* defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) */
144 {"adevice", &stream_tv_defaults.adevice, CONF_TYPE_STRING, 0, 0, 0, NULL},
145 {"tdevice", &stream_tv_defaults.teletext.device, CONF_TYPE_STRING, 0, 0, 0, NULL},
146 {"tpage", &stream_tv_defaults.teletext.page, CONF_TYPE_INT, CONF_RANGE, 100, 899, NULL},
147 {"tformat", &stream_tv_defaults.teletext.format, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
148 {"tlang", &stream_tv_defaults.teletext.lang, CONF_TYPE_INT, CONF_RANGE, -1, 0x7f, NULL},
149 {"audioid", &stream_tv_defaults.audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL},
150 #ifdef CONFIG_TV_DSHOW
151 {"hidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
152 {"nohidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL},
153 {"hidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
154 {"nohidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL},
155 {"system_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 1, NULL},
156 {"nosystem_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 0, NULL},
157 {"normalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 1, NULL},
158 {"nonormalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 0, NULL},
159 #endif
160 {NULL, NULL, 0, 0, 0, 0, NULL}
162 #endif /* CONFIG_TV */
164 extern int pvr_param_aspect_ratio;
165 extern int pvr_param_sample_rate;
166 extern int pvr_param_audio_layer;
167 extern int pvr_param_audio_bitrate;
168 extern char *pvr_param_audio_mode;
169 extern int pvr_param_bitrate;
170 extern char *pvr_param_bitrate_mode;
171 extern int pvr_param_bitrate_peak;
172 extern char *pvr_param_stream_type;
174 #ifdef CONFIG_PVR
175 const m_option_t pvropts_conf[]={
176 {"aspect", &pvr_param_aspect_ratio, CONF_TYPE_INT, 0, 1, 4, NULL},
177 {"arate", &pvr_param_sample_rate, CONF_TYPE_INT, 0, 32000, 48000, NULL},
178 {"alayer", &pvr_param_audio_layer, CONF_TYPE_INT, 0, 1, 2, NULL},
179 {"abitrate", &pvr_param_audio_bitrate, CONF_TYPE_INT, 0, 32, 448, NULL},
180 {"amode", &pvr_param_audio_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
181 {"vbitrate", &pvr_param_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
182 {"vmode", &pvr_param_bitrate_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
183 {"vpeak", &pvr_param_bitrate_peak, CONF_TYPE_INT, 0, 0, 0, NULL},
184 {"fmt", &pvr_param_stream_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
185 {NULL, NULL, 0, 0, 0, 0, NULL}
187 #endif /* CONFIG_PVR */
189 extern const m_option_t dvbin_opts_conf[];
190 extern const m_option_t lavfdopts_conf[];
192 extern int rtsp_transport_tcp;
193 extern int rtsp_transport_http;
194 extern int rtsp_transport_sctp;
195 extern int rtsp_port;
196 extern char *rtsp_destination;
199 extern int audio_stream_cache;
201 extern int sws_chr_vshift;
202 extern int sws_chr_hshift;
203 extern float sws_chr_gblur;
204 extern float sws_lum_gblur;
205 extern float sws_chr_sharpen;
206 extern float sws_lum_sharpen;
208 const m_option_t scaler_filter_conf[]={
209 {"lgb", &sws_lum_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
210 {"cgb", &sws_chr_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
211 {"cvs", &sws_chr_vshift, CONF_TYPE_INT, 0, 0, 0, NULL},
212 {"chs", &sws_chr_hshift, CONF_TYPE_INT, 0, 0, 0, NULL},
213 {"ls", &sws_lum_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
214 {"cs", &sws_chr_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
215 {NULL, NULL, 0, 0, 0, 0, NULL}
218 /* VIVO demuxer options: */
219 extern int vivo_param_version;
220 extern char *vivo_param_acodec;
221 extern int vivo_param_abitrate;
222 extern int vivo_param_samplerate;
223 extern int vivo_param_bytesperblock;
224 extern int vivo_param_width;
225 extern int vivo_param_height;
226 extern int vivo_param_vformat;
227 extern char *dvd_device, *cdrom_device;
229 const m_option_t vivoopts_conf[]={
230 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0, NULL},
231 /* audio options */
232 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0, NULL},
233 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
234 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0, NULL},
235 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0, NULL},
236 /* video options */
237 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0, NULL},
238 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0, NULL},
239 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0, NULL},
240 {NULL, NULL, 0, 0, 0, 0, NULL}
243 extern int mf_w;
244 extern int mf_h;
245 extern double mf_fps;
246 extern char * mf_type;
247 extern m_obj_list_t vf_obj_list;
249 const m_option_t mfopts_conf[]={
250 {"on", "-mf on has been removed, use mf:// instead.\n", CONF_TYPE_PRINT, 0, 0, 1, NULL},
251 {"w", &mf_w, CONF_TYPE_INT, 0, 0, 0, NULL},
252 {"h", &mf_h, CONF_TYPE_INT, 0, 0, 0, NULL},
253 {"fps", &mf_fps, CONF_TYPE_DOUBLE, 0, 0, 0, NULL},
254 {"type", &mf_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
255 {NULL, NULL, 0, 0, 0, 0, NULL}
258 #include "libaf/af.h"
259 extern af_cfg_t af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
260 const m_option_t audio_filter_conf[]={
261 {"list", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
262 {"force", &af_cfg.force, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
263 {NULL, NULL, 0, 0, 0, 0, NULL}
266 extern int mp_msg_levels[MSGT_MAX];
267 extern int mp_msg_level_all;
269 const m_option_t msgl_config[]={
270 { "all", &mp_msg_level_all, CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL},
272 { "global", &mp_msg_levels[MSGT_GLOBAL], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
273 { "cplayer", &mp_msg_levels[MSGT_CPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
274 { "vo", &mp_msg_levels[MSGT_VO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
275 { "ao", &mp_msg_levels[MSGT_AO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
276 { "demuxer", &mp_msg_levels[MSGT_DEMUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
277 { "ds", &mp_msg_levels[MSGT_DS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
278 { "demux", &mp_msg_levels[MSGT_DEMUX], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
279 { "header", &mp_msg_levels[MSGT_HEADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
280 { "avsync", &mp_msg_levels[MSGT_AVSYNC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
281 { "autoq", &mp_msg_levels[MSGT_AUTOQ], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
282 { "cfgparser", &mp_msg_levels[MSGT_CFGPARSER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
283 { "decaudio", &mp_msg_levels[MSGT_DECAUDIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
284 { "decvideo", &mp_msg_levels[MSGT_DECVIDEO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
285 { "seek", &mp_msg_levels[MSGT_SEEK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
286 { "win32", &mp_msg_levels[MSGT_WIN32], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
287 { "open", &mp_msg_levels[MSGT_OPEN], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
288 { "dvd", &mp_msg_levels[MSGT_DVD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
289 { "parsees", &mp_msg_levels[MSGT_PARSEES], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
290 { "lirc", &mp_msg_levels[MSGT_LIRC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
291 { "stream", &mp_msg_levels[MSGT_STREAM], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
292 { "cache", &mp_msg_levels[MSGT_CACHE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
293 { "mencoder", &mp_msg_levels[MSGT_MENCODER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
294 { "xacodec", &mp_msg_levels[MSGT_XACODEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
295 { "tv", &mp_msg_levels[MSGT_TV], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
296 { "radio", &mp_msg_levels[MSGT_RADIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
297 { "osdep", &mp_msg_levels[MSGT_OSDEP], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
298 { "spudec", &mp_msg_levels[MSGT_SPUDEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
299 { "playtree", &mp_msg_levels[MSGT_PLAYTREE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
300 { "input", &mp_msg_levels[MSGT_INPUT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
301 { "vfilter", &mp_msg_levels[MSGT_VFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
302 { "osd", &mp_msg_levels[MSGT_OSD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
303 { "network", &mp_msg_levels[MSGT_NETWORK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
304 { "cpudetect", &mp_msg_levels[MSGT_CPUDETECT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
305 { "codeccfg", &mp_msg_levels[MSGT_CODECCFG], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
306 { "sws", &mp_msg_levels[MSGT_SWS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
307 { "vobsub", &mp_msg_levels[MSGT_VOBSUB], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
308 { "subreader", &mp_msg_levels[MSGT_SUBREADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
309 { "afilter", &mp_msg_levels[MSGT_AFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
310 { "netst", &mp_msg_levels[MSGT_NETST], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
311 { "muxer", &mp_msg_levels[MSGT_MUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
312 { "osd-menu", &mp_msg_levels[MSGT_OSD_MENU], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
313 { "identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
314 { "ass", &mp_msg_levels[MSGT_ASS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
315 { "statusline", &mp_msg_levels[MSGT_STATUSLINE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
316 { "fixme", &mp_msg_levels[MSGT_FIXME], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
317 {"help", "Available msg modules:\n"
318 " global - common player errors/information\n"
319 " cplayer - console player (mplayer.c)\n"
320 " vo - libvo\n"
321 " ao - libao\n"
322 " demuxer - demuxer.c (general stuff)\n"
323 " ds - demux stream (add/read packet etc)\n"
324 " demux - fileformat-specific stuff (demux_*.c)\n"
325 " header - fileformat-specific header (*header.c)\n"
326 " avsync - mplayer.c timer stuff\n"
327 " autoq - mplayer.c auto-quality stuff\n"
328 " cfgparser - cfgparser.c\n"
329 " decaudio - av decoder\n"
330 " decvideo\n"
331 " seek - seeking code\n"
332 " win32 - win32 dll stuff\n"
333 " open - open.c (stream opening)\n"
334 " dvd - open.c (DVD init/read/seek)\n"
335 " parsees - parse_es.c (mpeg stream parser)\n"
336 " lirc - lirc_mp.c and input lirc driver\n"
337 " stream - stream.c\n"
338 " cache - cache2.c\n"
339 " mencoder\n"
340 " xacodec - XAnim codecs\n"
341 " tv - TV input subsystem\n"
342 " osdep - OS-dependent parts\n"
343 " spudec - spudec.c\n"
344 " playtree - Playtree handling (playtree.c, playtreeparser.c)\n"
345 " input\n"
346 " vfilter\n"
347 " osd\n"
348 " network\n"
349 " cpudetect\n"
350 " codeccfg\n"
351 " sws\n"
352 " vobsub\n"
353 " subreader\n"
354 " osd-menu - OSD menu messages\n"
355 " afilter - Audio filter messages\n"
356 " netst - Netstream\n"
357 " muxer - muxer layer\n"
358 " identify - identify output\n"
359 " ass - libass messages\n"
360 " statusline - playback/encoding status line\n"
361 " fixme - messages not yet fixed to map to module\n"
362 "\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
363 {NULL, NULL, 0, 0, 0, 0, NULL}
367 extern const m_option_t noconfig_opts[];
369 extern const m_option_t lavc_decode_opts_conf[];
370 extern const m_option_t xvid_dec_opts[];
372 const m_option_t common_opts[] = {
373 // ------------------------- common options --------------------
374 {"quiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
375 {"noquiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
376 {"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_PRE_PARSE, 0, -10, NULL},
377 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL},
378 {"msglevel", (void *) msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
379 {"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
380 {"nomsgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
381 {"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
382 {"nomsgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
383 #ifdef CONFIG_ICONV
384 {"msgcharset", &mp_msg_charset, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
385 #endif
386 #ifdef CONFIG_PRIORITY
387 {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
388 #endif
389 {"codecpath", &codec_path, CONF_TYPE_STRING, 0, 0, 0, NULL},
390 {"noconfig", (void *) noconfig_opts, CONF_TYPE_SUBCONFIG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 0, NULL},
392 // ------------------------- stream options --------------------
394 #ifdef CONFIG_STREAM_CACHE
395 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL},
396 {"nocache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL},
397 {"cache-min", &stream_cache_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
398 {"cache-seek-min", &stream_cache_seek_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
399 #else
400 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
401 #endif /* CONFIG_STREAM_CACHE */
402 {"vcd", "-vcd N has been removed, use vcd://N instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL},
403 {"cuefile", "-cuefile has been removed, use cue://filename:N where N is the track number.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
404 {"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
405 #ifdef CONFIG_DVDREAD
406 {"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
407 {"dvd-speed", &dvd_speed, CONF_TYPE_INT, 0, 0, 0, NULL},
408 {"dvd", "-dvd N has been removed, use dvd://N instead.\n" , CONF_TYPE_PRINT, 0, 0, 0, NULL},
409 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
410 #else
411 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
412 {"dvd-speed", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
413 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
414 #endif /* CONFIG_DVDREAD */
415 OPT_INTPAIR("chapter", chapterrange, 0),
416 OPT_INTRANGE("edition", edition_id, 0, -1, 8190),
417 #ifdef CONFIG_LIBBLURAY
418 {"bluray-device", &bluray_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
419 {"bluray-angle", &bluray_angle, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
420 {"bluray-chapter", &bluray_chapter, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
421 #else
422 {"bluray-device", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
423 {"bluray-angle", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
424 {"bluray-chapter", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
425 #endif /* CONFIG_LIBBLURAY */
427 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
428 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
429 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
431 #ifdef CONFIG_NETWORKING
432 {"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
433 {"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
434 {"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
435 {"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL},
436 {"referrer", &network_referrer, CONF_TYPE_STRING, 0, 0, 0, NULL},
437 {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
438 {"nocookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
439 {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
440 {"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
441 {"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL},
442 {"reuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
443 {"noreuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
444 #ifdef HAVE_AF_INET6
445 {"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
446 #else
447 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
448 #endif /* HAVE_AF_INET6 */
450 #else
451 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
452 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
453 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
454 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
455 #endif /* CONFIG_NETWORKING */
457 #ifdef CONFIG_LIVE555
458 {"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
459 {"rtsp-stream-over-http", &rtsp_transport_http, CONF_TYPE_FLAG, 0, 0, 1, NULL},
460 #else
461 {"rtsp-stream-over-http", "-rtsp-stream-over-http requires the \"LIVE555 Streaming Media\" library.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
462 #endif /* CONFIG_LIVE555 */
463 #if defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555)
464 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
465 {"rtsp-stream-over-tcp", &rtsp_transport_tcp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
466 #else
467 {"rtsp-stream-over-tcp", "-rtsp-stream-over-tcp requires the \"LIVE555 Streaming Media\" or \"libnemesi\" libraries.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
468 #endif /* defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555) */
469 #ifdef CONFIG_LIBNEMESI
470 {"rtsp-stream-over-sctp", &rtsp_transport_sctp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
471 #else
472 {"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
473 #endif /* CONFIG_LIBNEMESI */
474 #ifdef CONFIG_NETWORKING
475 {"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
476 {"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
477 #else
478 {"rtsp-port", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
479 {"rtsp-destination", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
480 #endif /* CONFIG_NETWORKING */
482 // ------------------------- demuxer options --------------------
484 // number of frames to play/convert
485 {"frames", &play_n_frames_mf, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
487 // seek to byte/seconds position
488 {"sb", &seek_to_byte, CONF_TYPE_POSITION, CONF_MIN, 0, 0, NULL},
489 {"ss", &seek_to_sec, CONF_TYPE_TIME, 0, 0, 0, NULL},
491 // stop at given position
492 {"endpos", &end_at, CONF_TYPE_TIME_SIZE, 0, 0, 0, NULL},
494 {"edl", &edl_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
496 // AVI specific: force non-interleaved mode
497 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},
498 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0, NULL},
500 // AVI and Ogg only: (re)build index at startup
501 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0, NULL},
502 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL},
503 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL},
504 {"saveidx", &index_file_save, CONF_TYPE_STRING, 0, 0, 0, NULL},
505 {"loadidx", &index_file_load, CONF_TYPE_STRING, 0, 0, 0, NULL},
507 // select audio/video/subtitle stream
508 OPT_INTRANGE("aid", audio_id, 0, -2, 8190),
509 {"ausid", &audio_substream_id, CONF_TYPE_INT, 0, 0, 0, NULL},
510 OPT_INTRANGE("vid", video_id, 0, -2, 8190),
511 OPT_INTRANGE("sid", sub_id, 0, -2, 8190),
512 OPT_FLAG_CONSTANTS("nosub", sub_id, 0, -1, -2),
513 OPT_FLAG_CONSTANTS("novideo", video_id, 0, -1, -2),
514 OPT_FLAG_CONSTANTS("sound", audio_id, 0, -2, -1),
515 OPT_FLAG_CONSTANTS("nosound", audio_id, 0, -1, -2),
516 OPT_STRING("alang", audio_lang, 0),
517 OPT_STRING("slang", sub_lang, 0),
519 { "hr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 0, 1, NULL },
520 { "nohr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 1, 0, NULL},
522 { "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
523 { "rawvideo", &demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
525 #ifdef CONFIG_CDDA
526 { "cdda", &cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
527 #endif
529 // demuxer.c - select audio/sub file/demuxer
530 { "audiofile", &audio_stream, CONF_TYPE_STRING, 0, 0, 0, NULL },
531 { "audiofile-cache", &audio_stream_cache, CONF_TYPE_INT, CONF_RANGE, 50, 65536, NULL},
532 { "subfile", &sub_stream, CONF_TYPE_STRING, 0, 0, 0, NULL },
533 { "demuxer", &demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
534 { "audio-demuxer", &audio_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
535 { "sub-demuxer", &sub_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
536 { "extbased", &extension_parsing, CONF_TYPE_FLAG, 0, 0, 1, NULL },
537 { "noextbased", &extension_parsing, CONF_TYPE_FLAG, 0, 1, 0, NULL },
539 {"mf", (void *) mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL},
540 #ifdef CONFIG_RADIO
541 {"radio", radioopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
542 #else
543 {"radio", "MPlayer was compiled without Radio interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
544 #endif /* CONFIG_RADIO */
545 #ifdef CONFIG_TV
546 {"tv", (void *) tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
547 #else
548 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
549 #endif /* CONFIG_TV */
550 #ifdef CONFIG_PVR
551 {"pvr", (void *) pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
552 #else
553 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
554 #endif /* CONFIG_PVR */
555 {"vivo", (void *) vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
556 #ifdef CONFIG_DVBIN
557 {"dvbin", (void *) dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
558 #endif
560 // ------------------------- a-v sync options --------------------
562 // AVI specific: A-V sync mode (bps vs. interleaving)
563 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},
564 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0, NULL},
566 // set A-V sync correction speed (0=disables it):
567 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
569 // force video/audio rate:
570 {"fps", &force_fps, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL},
571 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
572 {"channels", &audio_output_channels, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL},
573 {"format", &audio_output_format, CONF_TYPE_AFMT, 0, 0, 0, NULL},
574 OPT_FLOATRANGE("speed", playback_speed, 0, 0.01, 100.0),
576 // set a-v distance
577 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
579 // ignore header-specified delay (dwStart)
580 {"ignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 0, 1, NULL},
581 {"noignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 1, 0, NULL},
583 OPT_FLOATRANGE("a52drc", drc_level, 0, 0, 2),
585 // ------------------------- codec/vfilter options --------------------
587 // MP3-only: select stereo/left/right
588 #ifdef CONFIG_FAKE_MONO
589 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
590 #endif
592 {"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
593 {"af-adv", (void *) audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
595 {"vop", "-vop has been removed, use -vf instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL},
596 OPT_SETTINGSLIST("vf*", vf_settings, 0, &vf_obj_list),
597 // select audio/video codec (by name) or codec family (by number):
598 {"afm", &audio_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
599 {"vfm", &video_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
600 {"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
601 {"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
603 // postprocessing:
604 #ifdef CONFIG_FFMPEG
605 {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},
606 {"pphelp", &pp_help, CONF_TYPE_PRINT_INDIRECT, CONF_NOCFG, 0, 0, NULL},
607 #endif
609 // scaling:
610 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL},
611 {"ssf", (void *) scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
612 OPT_FLAG_ON("zoom", softzoom, 0),
613 OPT_FLAG_OFF("nozoom", softzoom, 0),
614 OPT_FLOATRANGE("aspect", movie_aspect, 0, 0.2, 3.0),
615 OPT_FLAG_CONSTANTS("noaspect", movie_aspect, 0, 0, 0),
616 OPT_FLOATRANGE("xy", screen_size_xy, 0, 0.001, 4096),
618 OPT_FLAG_CONSTANTS("flip", flip, 0, -1, 1),
619 OPT_FLAG_CONSTANTS("noflip", flip, 0, -1, 0),
620 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL
622 {"tsprog", &ts_prog, CONF_TYPE_INT, CONF_RANGE, 0, 65534, NULL},
623 {"tsprobe", &ts_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
624 {"psprobe", &ps_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
625 {"tskeepbroken", &ts_keep_broken, CONF_TYPE_FLAG, 0, 0, 1, NULL},
627 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
628 OPT_FLAG_ON("slices", vd_use_slices, 0),
629 OPT_FLAG_OFF("noslices", vd_use_slices, 0),
630 {"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
632 #ifdef CONFIG_FFMPEG
633 {"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
634 {"lavfdopts", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
635 #endif
636 #ifdef CONFIG_XVID4
637 {"xvidopts", xvid_dec_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
638 #endif
639 {"codecs-file", &codecs_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
640 // ------------------------- subtitles options --------------------
642 {"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
643 #ifdef CONFIG_FRIBIDI
644 {"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
645 {"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
646 {"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
647 {"flip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
648 {"noflip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
649 #else
650 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
651 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
652 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
653 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
654 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
655 #endif /* CONFIG_FRIBIDI */
656 #ifdef CONFIG_ICONV
657 {"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
658 #endif
659 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
660 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
661 {"autosub", &sub_auto, CONF_TYPE_FLAG, 0, 0, 1, NULL},
662 {"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0, NULL},
663 {"unicode", &sub_unicode, CONF_TYPE_FLAG, 0, 0, 1, NULL},
664 {"nounicode", &sub_unicode, CONF_TYPE_FLAG, 0, 1, 0, NULL},
665 {"utf8", &sub_utf8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
666 {"noutf8", &sub_utf8, CONF_TYPE_FLAG, 0, 1, 0, NULL},
667 {"forcedsubsonly", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL},
668 // specify IFO file for VOBSUB subtitle
669 {"ifo", &spudec_ifo, CONF_TYPE_STRING, 0, 0, 0, NULL},
670 // enable Closed Captioning display
671 {"subcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
672 {"nosubcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
673 {"overlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 2, NULL},
674 {"nooverlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 0, NULL},
675 {"sub-bg-color", &sub_bg_color, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
676 {"sub-bg-alpha", &sub_bg_alpha, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
677 {"sub-no-text-pp", &sub_no_text_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
678 {"sub-fuzziness", &sub_match_fuzziness, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
679 {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
680 {"subfont", &sub_font_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
681 {"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0, NULL},
682 {"subpos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
683 {"subalign", &sub_alignment, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
684 {"subwidth", &sub_width_p, CONF_TYPE_INT, CONF_RANGE, 10, 100, NULL},
685 {"spualign", &spu_alignment, CONF_TYPE_INT, CONF_RANGE, -1, 2, NULL},
686 {"spuaa", &spu_aamode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
687 {"spugauss", &spu_gaussvar, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 3.0, NULL},
688 #ifdef CONFIG_FREETYPE
689 {"subfont-encoding", &subtitle_font_encoding, CONF_TYPE_STRING, 0, 0, 0, NULL},
690 {"subfont-text-scale", &text_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
691 {"subfont-osd-scale", &osd_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
692 {"subfont-blur", &subtitle_font_radius, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
693 {"subfont-outline", &subtitle_font_thickness, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
694 {"subfont-autoscale", &subtitle_autoscale, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
695 #endif
696 #ifdef CONFIG_ASS
697 OPT_FLAG_ON("ass", ass_enabled, 0),
698 OPT_FLAG_OFF("noass", ass_enabled, 0),
699 {"ass-font-scale", &ass_font_scale, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
700 {"ass-line-spacing", &ass_line_spacing, CONF_TYPE_FLOAT, CONF_RANGE, -1000, 1000, NULL},
701 {"ass-top-margin", &ass_top_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
702 {"ass-bottom-margin", &ass_bottom_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
703 {"ass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 0, 1, NULL},
704 {"noass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 1, 0, NULL},
705 {"embeddedfonts", &use_embedded_fonts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
706 {"noembeddedfonts", &use_embedded_fonts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
707 {"ass-force-style", &ass_force_style_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
708 {"ass-color", &ass_color, CONF_TYPE_STRING, 0, 0, 0, NULL},
709 {"ass-border-color", &ass_border_color, CONF_TYPE_STRING, 0, 0, 0, NULL},
710 {"ass-styles", &ass_styles_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
711 {"ass-hinting", &ass_hinting, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
712 #endif
713 #ifdef CONFIG_FONTCONFIG
714 {"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, -1, 1, NULL},
715 {"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, -1, NULL},
716 #else
717 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
718 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
719 #endif /* CONFIG_FONTCONFIG */
720 {NULL, NULL, 0, 0, 0, 0, NULL}
723 #endif /* MPLAYER_CFG_COMMON_H */