2010-01-30 23:24:23 +00:00
/*
* This file is part of MPlayer .
*
* MPlayer is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 of the License , or
* ( at your option ) any later version .
*
* MPlayer is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License along
* with MPlayer ; if not , write to the Free Software Foundation , Inc . ,
* 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA .
*/
2008-02-22 09:09:46 +00:00
# ifndef MPLAYER_CFG_MPLAYER_H
# define MPLAYER_CFG_MPLAYER_H
2008-01-01 21:35:58 +00:00
2001-03-18 23:32:31 +00:00
/*
* config for cfgparser
*/
2008-03-31 03:19:29 +00:00
# include <stddef.h>
2001-11-09 23:46:06 +00:00
# include "cfg-common.h"
2010-05-30 22:14:13 +00:00
# include "libmpdemux/demux_ts.h"
2010-02-18 10:19:42 +00:00
# include "libvo/vo_zr.h"
2008-03-31 03:19:29 +00:00
# include "options.h"
2001-11-09 23:46:06 +00:00
2001-04-12 20:37:25 +00:00
extern char * fb_mode_cfgfile ;
extern char * fb_mode_name ;
2002-11-10 13:57:42 +00:00
extern char * dfb_params ;
2001-04-25 20:44:30 +00:00
2001-06-17 20:38:02 +00:00
extern char * lirc_configfile ;
2004-05-03 10:09:18 +00:00
/* only used at startup (setting these values from configfile) */
2002-10-23 16:52:54 +00:00
extern char * vo_geometry ;
2001-07-30 02:00:54 +00:00
2001-06-12 14:24:26 +00:00
extern char * ao_outputfilename ;
extern int ao_pcm_waveheader ;
2003-02-07 19:38:39 +00:00
extern int fs_layer ;
2002-06-04 20:12:34 +00:00
extern int stop_xscreensaver ;
2001-05-31 22:32:58 +00:00
2004-09-15 13:37:49 +00:00
extern int menu_startup ;
2007-05-07 16:46:24 +00:00
extern int menu_keepdir ;
2007-05-29 18:49:38 +00:00
extern char * menu_chroot ;
2007-05-07 15:59:53 +00:00
extern char * menu_fribidi_charset ;
extern int menu_flip_hebrew ;
extern int menu_fribidi_flip_commas ;
2004-09-15 13:37:49 +00:00
2007-12-14 08:16:39 +00:00
extern char * unrar_executable ;
2010-04-04 16:08:15 +00:00
extern const m_option_t dxr2_opts [ ] ;
2002-10-23 17:21:01 +00:00
2001-12-02 20:03:26 +00:00
extern int sws_flags ;
2003-01-03 12:40:10 +00:00
extern char * pp_help ;
2001-12-02 20:03:26 +00:00
2007-12-02 16:45:34 +00:00
const m_option_t vd_conf [ ] = {
2010-05-03 23:34:38 +00:00
{ " 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 } ,
{ NULL , NULL , 0 , 0 , 0 , 0 , NULL }
2005-02-23 01:37:03 +00:00
} ;
2008-07-30 12:01:30 +00:00
# ifdef CONFIG_TV
2007-12-02 16:45:34 +00:00
const m_option_t tvscan_conf [ ] = {
2010-05-03 23:34:38 +00:00
{ " autostart " , & stream_tv_defaults . scan , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " threshold " , & stream_tv_defaults . scan_threshold , CONF_TYPE_INT , CONF_RANGE , 1 , 100 , NULL } ,
{ " period " , & stream_tv_defaults . scan_period , CONF_TYPE_FLOAT , CONF_RANGE , 0.1 , 2.0 , NULL } ,
{ NULL , NULL , 0 , 0 , 0 , 0 , NULL }
2007-08-23 16:09:30 +00:00
} ;
# endif
2001-08-15 19:26:22 +00:00
/*
* CONF_TYPE_FUNC_FULL :
2004-05-03 10:09:18 +00:00
* allows own implementations for passing the params
2009-07-06 23:26:13 +00:00
*
2001-08-15 19:26:22 +00:00
* the function receives parameter name and argument ( if it does not start with - )
* useful with a conf . name like ' aa * ' to parse several parameters to a function
* return 0 = ok , but we didn ' t need the param ( could be the filename )
* return 1 = ok , we accepted the param
* negative values : see cfgparser . h , ERR_XXX
*
* by Folke
*/
2007-12-02 16:45:34 +00:00
const m_option_t mplayer_opts [ ] = {
2010-05-03 23:34:38 +00:00
/* name, pointer, type, flags, min, max */
2001-11-02 00:32:35 +00:00
2002-05-04 21:26:45 +00:00
//---------------------- libao/libvo options ------------------------
2010-05-03 23:34:38 +00:00
{ " o " , " Option -o has been renamed to -vo (video-out), use -vo. \n " ,
CONF_TYPE_PRINT , CONF_NOCFG , 0 , 0 , NULL } ,
2010-05-07 19:02:47 +00:00
OPT_STRINGLIST ( " vo " , video_driver_list , 0 ) ,
OPT_STRINGLIST ( " ao " , audio_driver_list , 0 ) ,
OPT_FLAG_ON ( " fixed-vo " , fixed_vo , CONF_GLOBAL ) ,
OPT_FLAG_OFF ( " nofixed-vo " , fixed_vo , CONF_GLOBAL ) ,
OPT_FLAG_ON ( " ontop " , vo_ontop , 0 ) ,
OPT_FLAG_OFF ( " noontop " , vo_ontop , 0 ) ,
2010-05-03 23:34:38 +00:00
{ " rootwin " , & vo_rootwin , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " border " , & vo_border , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " noborder " , & vo_border , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " aop " , " -aop has been removed, use -af instead. \n " , CONF_TYPE_PRINT , CONF_NOCFG , 0 , 0 , NULL } ,
{ " dsp " , " -dsp has been removed. Use -ao oss:dsp_path instead. \n " , CONF_TYPE_PRINT , CONF_NOCFG , 0 , 0 , NULL } ,
{ " mixer " , & mixer_device , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " mixer-channel " , & mixer_channel , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " softvol " , & soft_vol , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nosoftvol " , & soft_vol , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " softvol-max " , & soft_vol_max , CONF_TYPE_FLOAT , CONF_RANGE , 10 , 10000 , NULL } ,
{ " volstep " , & volstep , CONF_TYPE_INT , CONF_RANGE , 0 , 100 , NULL } ,
{ " volume " , & start_volume , CONF_TYPE_FLOAT , CONF_RANGE , - 1 , 10000 , NULL } ,
{ " master " , " Option -master has been removed, use -af volume instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
// override audio buffer size (used only by -ao oss, anyway obsolete...)
{ " abs " , & ao_data . buffersize , CONF_TYPE_INT , CONF_MIN , 0 , 0 , NULL } ,
// -ao pcm options:
{ " aofile " , " -aofile has been removed. Use -ao pcm:file=<filename> instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
{ " waveheader " , " -waveheader has been removed. Use -ao pcm:waveheader instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 1 , NULL } ,
{ " nowaveheader " , " -nowaveheader has been removed. Use -ao pcm:nowaveheader instead. \n " , CONF_TYPE_PRINT , 0 , 1 , 0 , NULL } ,
{ " alsa " , " -alsa has been removed. Remove it from your config file. \n " ,
2002-01-14 23:54:31 +00:00
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2010-05-03 23:34:38 +00:00
{ " noalsa " , " -noalsa has been removed. Remove it from your config file. \n " ,
2002-01-14 23:54:31 +00:00
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2010-05-03 23:34:38 +00:00
{ " edlout " , & edl_output_filename , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2001-06-23 19:58:32 +00:00
2008-08-04 06:16:23 +00:00
# ifdef CONFIG_X11
2010-05-03 23:34:38 +00:00
{ " display " , & mDisplayName , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2002-05-04 21:26:45 +00:00
# endif
2001-11-02 00:32:35 +00:00
2010-05-03 23:34:38 +00:00
// -vo png only:
2008-08-05 08:47:51 +00:00
# ifdef CONFIG_PNG
2010-05-03 23:34:38 +00:00
{ " z " , " -z has been removed. Use -vo png:z=<0-9> instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2001-12-02 20:03:26 +00:00
# endif
2010-05-03 23:34:38 +00:00
// -vo jpeg only:
2008-08-05 08:47:51 +00:00
# ifdef CONFIG_JPEG
2010-05-03 23:34:38 +00:00
{ " jpeg " , " -jpeg has been removed. Use -vo jpeg:<options> instead. \n " ,
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-04-16 11:21:59 +00:00
# endif
2010-05-03 23:34:38 +00:00
// -vo sdl only:
{ " sdl " , " Use -vo sdl:driver=<driver> instead of -vo sdl -sdl driver. \n " ,
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
{ " noxv " , " -noxv has been removed. Use -vo sdl:nohwaccel instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
{ " forcexv " , " -forcexv has been removed. Use -vo sdl:forcexv instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
// -ao sdl only:
{ " sdla " , " Use -ao sdl:driver instead of -ao sdl -sdla driver. \n " ,
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-05-04 21:26:45 +00:00
2008-08-02 17:38:11 +00:00
# if defined(CONFIG_FBDEV) || defined(CONFIG_VESA)
2010-05-03 23:34:38 +00:00
{ " monitor-hfreq " , & monitor_hfreq_str , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " monitor-vfreq " , & monitor_vfreq_str , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " monitor-dotclock " , & monitor_dotclock_str , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2009-07-06 23:26:13 +00:00
# endif
2002-09-10 20:40:49 +00:00
2008-08-02 17:38:11 +00:00
# ifdef CONFIG_FBDEV
2010-05-03 23:34:38 +00:00
{ " fbmode " , & fb_mode_name , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " fbmodeconfig " , & fb_mode_cfgfile , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2002-11-10 13:57:42 +00:00
# endif
2008-08-02 17:38:11 +00:00
# ifdef CONFIG_DIRECTFB
2002-11-10 13:57:42 +00:00
# if DIRECTFBVERSION > 912
2010-05-03 23:34:38 +00:00
{ " dfbopts " , " -dfbopts has been removed. Use -vf directfb:dfbopts=... instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-11-10 13:57:42 +00:00
# endif
2002-05-04 21:26:45 +00:00
# endif
2010-05-03 23:34:38 +00:00
// force window width/height or resolution (with -vm)
2010-05-07 19:02:47 +00:00
OPT_INTRANGE ( " x " , screen_size_x , 0 , 0 , 4096 ) ,
OPT_INTRANGE ( " y " , screen_size_y , 0 , 0 , 4096 ) ,
2010-05-03 23:34:38 +00:00
// set screen dimensions (when not detectable or virtual!=visible)
2010-05-07 19:02:47 +00:00
OPT_INTRANGE ( " screenw " , vo_screenwidth , CONF_OLD , 0 , 4096 ) ,
OPT_INTRANGE ( " screenh " , vo_screenheight , CONF_OLD , 0 , 4096 ) ,
2010-05-03 23:34:38 +00:00
// Geometry string
{ " geometry " , & vo_geometry , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2010-05-07 19:02:47 +00:00
OPT_FLAG_ON ( " force-window-position " , force_window_position , 0 ) ,
OPT_FLAG_OFF ( " noforce-window-position " , force_window_position , 0 ) ,
2010-05-03 23:34:38 +00:00
// vo name (X classname) and window title strings
{ " name " , & vo_winname , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " title " , & vo_wintitle , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
// set aspect ratio of monitor - useful for 16:9 TV-out
2010-05-07 19:02:47 +00:00
OPT_FLOATRANGE ( " monitoraspect " , force_monitor_aspect , 0 , 0.0 , 9.0 ) ,
OPT_FLOATRANGE ( " monitorpixelaspect " , monitor_pixel_aspect , 0 , 0.2 , 9.0 ) ,
2010-05-03 23:34:38 +00:00
// video mode switching: (x11,xv,dga)
2010-05-07 19:02:47 +00:00
OPT_FLAG_ON ( " vm " , vidmode , 0 ) ,
OPT_FLAG_OFF ( " novm " , vidmode , 0 ) ,
2010-05-03 23:34:38 +00:00
// start in fullscreen mode:
2010-05-07 19:02:47 +00:00
OPT_FLAG_ON ( " fs " , fullscreen , 0 ) ,
OPT_FLAG_OFF ( " nofs " , fullscreen , 0 ) ,
2010-05-03 23:34:38 +00:00
// set fullscreen switch method (workaround for buggy WMs)
{ " fsmode " , " -fsmode is obsolete, avoid it and use -fstype instead. \n If you really want it, try -fsmode-dontuse, but don't report bugs! \n " , CONF_TYPE_PRINT , CONF_RANGE , 0 , 31 , NULL } ,
{ " fsmode-dontuse " , & vo_fsmode , CONF_TYPE_INT , CONF_RANGE , 0 , 31 , NULL } ,
// set bpp (x11+vm, dga, fbdev, vesa, svga?)
2010-05-07 19:02:47 +00:00
OPT_INTRANGE ( " bpp " , vo_dbpp , 0 , 0 , 32 ) ,
2010-05-03 23:34:38 +00:00
{ " colorkey " , & vo_colorkey , CONF_TYPE_INT , 0 , 0 , 0 , NULL } ,
{ " nocolorkey " , & vo_colorkey , CONF_TYPE_FLAG , 0 , 0 , 0x1000000 , NULL } ,
{ " double " , & vo_doublebuffering , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nodouble " , & vo_doublebuffering , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
// wait for v-sync (vesa)
{ " vsync " , & vo_vsync , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " novsync " , & vo_vsync , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " panscan " , & vo_panscan , CONF_TYPE_FLOAT , CONF_RANGE , - 1.0 , 1.0 , NULL } ,
2010-05-07 19:02:47 +00:00
OPT_FLOATRANGE ( " panscanrange " , vo_panscanrange , 0 , - 19.0 , 99.0 ) ,
2010-05-03 23:34:38 +00:00
{ " grabpointer " , & vo_grabpointer , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nograbpointer " , & vo_grabpointer , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2009-07-06 23:26:13 +00:00
2004-03-13 16:48:52 +00:00
{ " adapter " , & vo_adapter_num , CONF_TYPE_INT , CONF_RANGE , 0 , 5 , NULL } ,
{ " refreshrate " , & vo_refresh_rate , CONF_TYPE_INT , CONF_RANGE , 0 , 100 , NULL } ,
2010-05-03 23:34:38 +00:00
{ " wid " , & WinID , CONF_TYPE_INT64 , 0 , 0 , 0 , NULL } ,
2008-08-04 06:16:23 +00:00
# ifdef CONFIG_X11
2010-05-03 23:34:38 +00:00
// x11,xv,xmga,xvidix
{ " icelayer " , " -icelayer has been removed. Use -fstype layer:<number> instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
{ " stop-xscreensaver " , & stop_xscreensaver , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nostop-xscreensaver " , & stop_xscreensaver , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " stop_xscreensaver " , " Use -stop-xscreensaver instead, options with _ have been obsoleted. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
{ " fstype " , & vo_fstype_list , CONF_TYPE_STRING_LIST , 0 , 0 , 0 , NULL } ,
2004-07-23 13:00:16 +00:00
# endif
2010-05-03 23:34:38 +00:00
{ " heartbeat-cmd " , & heartbeat_cmd , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " mouseinput " , & vo_nomouse_input , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " nomouseinput " , & vo_nomouse_input , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2004-07-23 13:00:16 +00:00
2010-05-03 23:34:38 +00:00
{ " xineramascreen " , & xinerama_screen , CONF_TYPE_INT , CONF_RANGE , - 2 , 32 , NULL } ,
2002-05-04 21:26:45 +00:00
2010-05-07 19:02:47 +00:00
OPT_INTRANGE ( " brightness " , vo_gamma_brightness , 0 , - 100 , 100 ) ,
OPT_INTRANGE ( " saturation " , vo_gamma_saturation , 0 , - 100 , 100 ) ,
OPT_INTRANGE ( " contrast " , vo_gamma_contrast , 0 , - 100 , 100 ) ,
OPT_INTRANGE ( " hue " , vo_gamma_hue , 0 , - 100 , 100 ) ,
2010-05-03 23:34:38 +00:00
{ " keepaspect " , & vo_keepaspect , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nokeepaspect " , & vo_keepaspect , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-05-04 21:26:45 +00:00
2010-05-03 23:34:38 +00:00
// direct rendering (decoding to video out buffer)
{ " dr " , & vo_directrendering , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nodr " , & vo_directrendering , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " vaa_dr " , " -vaa_dr has been removed, use -dr. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
{ " vaa_nodr " , " -vaa_nodr has been removed, use -nodr. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-05-04 21:26:45 +00:00
2008-08-02 17:38:11 +00:00
# ifdef CONFIG_AA
2010-05-03 23:34:38 +00:00
// -vo aa
{ " aa* " , " -aa* has been removed. Use -vo aa:suboption instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2001-08-14 19:00:00 +00:00
# endif
2008-08-03 15:21:40 +00:00
# ifdef CONFIG_ZR
2010-05-03 23:34:38 +00:00
// -vo zr
{ " zr* " , vo_zr_parseoption , CONF_TYPE_FUNC_FULL , 0 , 0 , 0 , & vo_zr_revertoption } ,
2002-01-17 01:28:20 +00:00
# endif
2008-08-03 15:21:40 +00:00
# ifdef CONFIG_DXR2
2010-05-03 23:34:38 +00:00
{ " dxr2 " , & dxr2_opts , CONF_TYPE_SUBCONFIG , 0 , 0 , 0 , NULL } ,
2002-10-23 17:21:01 +00:00
# endif
2002-08-05 00:39:07 +00:00
2002-05-04 21:26:45 +00:00
//---------------------- mplayer-only options ------------------------
2010-05-03 23:34:38 +00:00
{ " use-filedir-conf " , & use_filedir_conf , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " nouse-filedir-conf " , & use_filedir_conf , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
{ " use-filename-title " , & use_filename_title , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " nouse-filename-title " , & use_filename_title , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2008-08-07 12:20:50 +00:00
# ifdef CONFIG_CRASH_DEBUG
2010-05-03 23:34:38 +00:00
{ " crash-debug " , & crash_debug , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " nocrash-debug " , & crash_debug , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2004-10-28 23:25:18 +00:00
# endif
2010-05-07 19:02:47 +00:00
OPT_INTRANGE ( " osdlevel " , osd_level , 0 , 0 , 3 ) ,
OPT_INTRANGE ( " osd-duration " , osd_duration , 0 , 0 , 3600000 ) ,
2008-07-30 18:07:19 +00:00
# ifdef CONFIG_MENU
2010-05-03 23:34:38 +00:00
{ " menu " , & use_menu , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " nomenu " , & use_menu , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
{ " menu-root " , & menu_root , CONF_TYPE_STRING , CONF_GLOBAL , 0 , 0 , NULL } ,
{ " menu-cfg " , & menu_cfg , CONF_TYPE_STRING , CONF_GLOBAL , 0 , 0 , NULL } ,
{ " menu-startup " , & menu_startup , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " menu-keepdir " , & menu_keepdir , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " menu-chroot " , & menu_chroot , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2008-08-07 10:36:07 +00:00
# ifdef CONFIG_FRIBIDI
2010-05-03 23:34:38 +00:00
{ " menu-fribidi-charset " , & menu_fribidi_charset , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " menu-flip-hebrew " , & menu_flip_hebrew , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " menu-noflip-hebrew " , & menu_flip_hebrew , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " menu-flip-hebrew-commas " , & menu_fribidi_flip_commas , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " menu-noflip-hebrew-commas " , & menu_fribidi_flip_commas , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2008-08-07 10:36:07 +00:00
# endif /* CONFIG_FRIBIDI */
2002-11-14 23:49:05 +00:00
# else
2010-05-03 23:34:38 +00:00
{ " menu " , " OSD menu support was not compiled in. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2008-07-30 18:07:19 +00:00
# endif /* CONFIG_MENU */
2002-05-04 21:26:45 +00:00
2010-05-03 23:34:38 +00:00
// these should be moved to -common, and supported in MEncoder
{ " vobsub " , & vobsub_name , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " vobsubid " , & vobsub_id , CONF_TYPE_INT , CONF_RANGE , 0 , 31 , NULL } ,
2008-07-30 12:01:30 +00:00
# ifdef CONFIG_UNRAR_EXEC
2010-05-03 23:34:38 +00:00
{ " unrarexec " , & unrar_executable , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2007-12-14 08:16:39 +00:00
# endif
2002-05-04 21:26:45 +00:00
2010-05-03 23:34:38 +00:00
{ " sstep " , & step_sec , CONF_TYPE_INT , CONF_MIN , 0 , 0 , NULL } ,
2002-05-04 21:26:45 +00:00
2010-05-03 23:34:38 +00:00
{ " framedrop " , & frame_dropping , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " hardframedrop " , & frame_dropping , CONF_TYPE_FLAG , 0 , 0 , 2 , NULL } ,
{ " noframedrop " , & frame_dropping , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-05-04 21:26:45 +00:00
2010-05-03 23:34:38 +00:00
{ " autoq " , & auto_quality , CONF_TYPE_INT , CONF_RANGE , 0 , 100 , NULL } ,
2002-05-04 21:26:45 +00:00
2010-05-03 23:34:38 +00:00
{ " benchmark " , & benchmark , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2002-05-04 21:26:45 +00:00
2010-05-03 23:34:38 +00:00
// dump some stream out instead of playing the file
// this really should be in MEncoder instead of MPlayer... -> TODO
{ " dumpfile " , & stream_dump_name , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " dumpaudio " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " dumpvideo " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 2 , NULL } ,
{ " dumpsub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 3 , NULL } ,
{ " dumpmpsub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 4 , NULL } ,
{ " dumpstream " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 5 , NULL } ,
{ " dumpsrtsub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 6 , NULL } ,
{ " dumpmicrodvdsub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 7 , NULL } ,
{ " dumpjacosub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 8 , NULL } ,
{ " dumpsami " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 9 , NULL } ,
2002-05-04 21:26:45 +00:00
2008-08-07 08:58:07 +00:00
# ifdef CONFIG_LIRC
2010-05-03 23:34:38 +00:00
{ " lircconf " , & lirc_configfile , CONF_TYPE_STRING , CONF_GLOBAL , 0 , 0 , NULL } ,
2001-11-02 00:32:35 +00:00
# endif
2009-07-07 17:35:54 +00:00
// these should be removed when gmplayer is forgotten
{ " gui " , " Internal GUI was removed. Use some other frontend instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
{ " nogui " , " Internal GUI was removed, -nogui is no longer valid. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2001-11-02 00:32:35 +00:00
2010-05-07 19:02:47 +00:00
OPT_FLAG_CONSTANTS ( " noloop " , loop_times , 0 , 0 , - 1 ) ,
OPT_INTRANGE ( " loop " , loop_times , 0 , - 1 , 10000 ) ,
2010-05-03 23:34:38 +00:00
{ " playlist " , NULL , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2002-05-04 21:26:45 +00:00
2010-05-07 19:02:47 +00:00
OPT_FLAG_ON ( " ordered-chapters " , ordered_chapters , 0 ) ,
OPT_FLAG_OFF ( " noordered-chapters " , ordered_chapters , 0 ) ,
2009-04-07 23:37:27 +00:00
2010-05-03 23:34:38 +00:00
// a-v sync stuff:
2010-05-07 19:02:47 +00:00
OPT_FLAG_ON ( " correct-pts " , user_correct_pts , 0 ) ,
OPT_FLAG_OFF ( " nocorrect-pts " , user_correct_pts , 0 ) ,
OPT_INTRANGE ( " pts-association-mode " , user_pts_assoc_mode , 0 , 0 , 2 ) ,
2010-05-03 23:34:38 +00:00
{ " noautosync " , & autosync , CONF_TYPE_FLAG , 0 , 0 , - 1 , NULL } ,
{ " autosync " , & autosync , CONF_TYPE_INT , CONF_RANGE , 0 , 10000 , NULL } ,
2002-09-23 22:12:29 +00:00
2010-05-03 23:34:38 +00:00
{ " softsleep " , & softsleep , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2002-03-12 18:02:02 +00:00
# ifdef HAVE_RTC
2010-05-03 23:34:38 +00:00
{ " nortc " , & nortc , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " rtc " , & nortc , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " rtc-device " , & rtc_device , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2002-03-12 18:02:02 +00:00
# endif
2010-05-03 23:34:38 +00:00
{ " term-osd " , & term_osd , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " noterm-osd " , & term_osd , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
{ " term-osd-esc " , & term_osd_esc , CONF_TYPE_STRING , 0 , 0 , 1 , NULL } ,
{ " playing-msg " , & playing_msg , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " slave " , & slave_mode , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " idle " , & player_idle_mode , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " noidle " , & player_idle_mode , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
{ " use-stdin " , " -use-stdin has been renamed to -noconsolecontrols, use that instead. " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2010-05-07 19:02:47 +00:00
OPT_INTRANGE ( " key-fifo-size " , key_fifo_size , CONF_GLOBAL , 2 , 65000 ) ,
2010-05-03 23:34:38 +00:00
{ " noconsolecontrols " , & noconsolecontrols , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " consolecontrols " , & noconsolecontrols , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
{ " mouse-movements " , & enable_mouse_movements , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " nomouse-movements " , & enable_mouse_movements , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2010-05-07 19:02:47 +00:00
OPT_INTRANGE ( " doubleclick-time " , doubleclick_time , 0 , 0 , 1000 ) ,
2008-07-30 12:01:30 +00:00
# ifdef CONFIG_TV
2010-05-07 19:02:47 +00:00
{ " tvscan " , ( void * ) tvscan_conf , CONF_TYPE_SUBCONFIG , 0 , 0 , 0 , NULL } ,
2007-08-23 16:09:30 +00:00
# else
2010-05-03 23:34:38 +00:00
{ " tvscan " , " MPlayer was compiled without TV interface support. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2008-07-30 12:01:30 +00:00
# endif /* CONFIG_TV */
2002-05-04 21:26:45 +00:00
2008-04-11 09:48:36 +00:00
# include "cfg-common-opts.h"
2010-05-03 23:34:38 +00:00
{ " list-properties " , & list_properties , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
{ " identify " , & mp_msg_levels [ MSGT_IDENTIFY ] , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , MSGL_V , NULL } ,
2010-05-07 19:02:47 +00:00
{ " -help " , ( void * ) help_text , CONF_TYPE_PRINT , CONF_NOCFG | CONF_GLOBAL , 0 , 0 , NULL } ,
{ " help " , ( void * ) help_text , CONF_TYPE_PRINT , CONF_NOCFG | CONF_GLOBAL , 0 , 0 , NULL } ,
{ " h " , ( void * ) help_text , CONF_TYPE_PRINT , CONF_NOCFG | CONF_GLOBAL , 0 , 0 , NULL } ,
2005-02-23 01:37:03 +00:00
2010-05-07 19:02:47 +00:00
{ " vd " , ( void * ) vd_conf , CONF_TYPE_SUBCONFIG , 0 , 0 , 0 , NULL } ,
2010-05-03 23:34:38 +00:00
{ NULL , NULL , 0 , 0 , 0 , 0 , NULL }
2001-03-18 23:32:31 +00:00
} ;
2008-01-01 21:35:58 +00:00
2008-02-22 09:09:46 +00:00
# endif /* MPLAYER_CFG_MPLAYER_H */