2008-02-22 10:09:46 +01:00
# ifndef MPLAYER_CFG_MPLAYER_H
# define MPLAYER_CFG_MPLAYER_H
2008-01-01 22:35:58 +01:00
2001-03-19 00:32:31 +01:00
/*
* config for cfgparser
*/
2001-11-10 00:46:06 +01:00
# include "cfg-common.h"
2007-03-29 19:16:11 +02:00
extern int key_fifo_size ;
extern unsigned doubleclick_time ;
2001-08-15 21:26:22 +02:00
2001-04-12 22:37:25 +02:00
extern char * fb_mode_cfgfile ;
extern char * fb_mode_name ;
2002-11-10 14:57:42 +01:00
extern char * dfb_params ;
2001-04-25 22:44:30 +02:00
2001-06-17 22:38:02 +02:00
extern char * lirc_configfile ;
2005-09-27 10:32:37 +02:00
extern float vo_panscanrange ;
2004-05-03 12:09:18 +02:00
/* only used at startup (setting these values from configfile) */
2002-10-23 18:52:54 +02:00
extern char * vo_geometry ;
2001-07-30 04:00:54 +02:00
2002-09-20 20:54:22 +02:00
extern int opt_screen_size_x ;
extern int opt_screen_size_y ;
extern int fullscreen ;
extern int vidmode ;
2001-06-12 16:24:26 +02:00
extern char * ao_outputfilename ;
extern int ao_pcm_waveheader ;
2003-02-07 20:38:39 +01:00
extern int fs_layer ;
2002-06-04 22:12:34 +02:00
extern int stop_xscreensaver ;
2001-06-01 00:32:58 +02:00
2004-09-15 15:37:49 +02:00
extern int menu_startup ;
2007-05-07 18:46:24 +02:00
extern int menu_keepdir ;
2007-05-29 20:49:38 +02:00
extern char * menu_chroot ;
2007-05-07 17:59:53 +02:00
extern char * menu_fribidi_charset ;
extern int menu_flip_hebrew ;
extern int menu_fribidi_flip_commas ;
2004-09-15 15:37:49 +02:00
2007-12-14 09:16:39 +01:00
extern char * unrar_executable ;
2008-12-04 00:01:03 +01:00
int vo_zr_parseoption ( const m_option_t * conf , char * opt , char * param ) ;
void vo_zr_revertoption ( const m_option_t * opt , char * pram ) ;
2002-01-17 02:28:20 +01:00
2003-08-13 18:29:32 +02:00
extern m_option_t dxr2_opts [ ] ;
2002-10-23 19:21:01 +02:00
2001-09-07 23:04:14 +02:00
extern char * skinName ;
2003-02-07 19:06:16 +01:00
extern int guiWinID ;
2001-09-07 23:04:14 +02:00
2002-01-06 22:07:20 +01:00
2001-10-03 16:41:53 +02:00
/* from libvo/aspect.c */
2007-07-29 00:42:20 +02:00
extern float force_monitor_aspect ;
2006-04-15 22:50:33 +02:00
extern float monitor_pixel_aspect ;
2001-10-03 16:41:53 +02:00
2001-12-02 21:03:26 +01:00
extern int sws_flags ;
2008-12-04 00:01:03 +01:00
int readPPOpt ( void * conf , char * arg ) ;
void revertPPOpt ( void * conf , char * opt ) ;
2003-01-03 13:40:10 +01:00
extern char * pp_help ;
2001-12-02 21:03:26 +01:00
2007-12-02 17:45:34 +01:00
const m_option_t vd_conf [ ] = {
2005-02-23 02:43:15 +01: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 } ,
2005-02-23 02:37:03 +01:00
{ NULL , NULL , 0 , 0 , 0 , 0 , NULL }
} ;
2008-07-30 14:01:30 +02:00
# ifdef CONFIG_TV
2007-12-02 17:45:34 +01:00
const m_option_t tvscan_conf [ ] = {
2007-08-23 18:09:30 +02: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 }
} ;
# endif
2001-08-15 21:26:22 +02:00
/*
* CONF_TYPE_FUNC_FULL :
2004-05-03 12:09:18 +02:00
* allows own implementations for passing the params
2001-08-15 21:26:22 +02: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 17:45:34 +01:00
const m_option_t mplayer_opts [ ] = {
2001-04-16 01:22:01 +02:00
/* name, pointer, type, flags, min, max */
2001-11-02 01:32:35 +01:00
2002-05-04 23:26:45 +02:00
//---------------------- libao/libvo options ------------------------
2004-05-03 12:09:18 +02:00
{ " o " , " Option -o has been renamed to -vo (video-out), use -vo. \n " ,
2002-01-15 00:54:31 +01:00
CONF_TYPE_PRINT , CONF_NOCFG , 0 , 0 , NULL } ,
2002-09-29 23:53:05 +02:00
{ " vo " , & video_driver_list , CONF_TYPE_STRING_LIST , 0 , 0 , 0 , NULL } ,
{ " ao " , & audio_driver_list , CONF_TYPE_STRING_LIST , 0 , 0 , 0 , NULL } ,
2003-09-17 11:14:49 +02:00
{ " fixed-vo " , & fixed_vo , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " nofixed-vo " , & fixed_vo , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2003-11-30 17:36:10 +01:00
{ " ontop " , & vo_ontop , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " noontop " , & vo_ontop , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2004-08-09 01:19:49 +02:00
{ " rootwin " , & vo_rootwin , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2005-11-10 23:25:54 +01:00
{ " border " , & vo_border , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " noborder " , & vo_border , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
2006-11-14 12:14:03 +01:00
{ " 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 } ,
2002-01-15 00:54:31 +01:00
{ " mixer " , & mixer_device , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2004-01-24 12:53:52 +01:00
{ " mixer-channel " , & mixer_channel , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2004-11-14 12:27:58 +01:00
{ " 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 } ,
2004-08-23 02:31:33 +02:00
{ " volstep " , & volstep , CONF_TYPE_INT , CONF_RANGE , 0 , 100 , NULL } ,
2008-10-31 19:44:45 +01:00
{ " volume " , & start_volume , CONF_TYPE_FLOAT , CONF_RANGE , - 1 , 10000 , NULL } ,
2005-01-07 13:13:39 +01:00
{ " master " , " Option -master has been removed, use -af volume instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
// override audio buffer size (used only by -ao oss, anyway obsolete...)
2002-01-15 00:54:31 +01:00
{ " abs " , & ao_data . buffersize , CONF_TYPE_INT , CONF_MIN , 0 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
// -ao pcm options:
2006-11-14 12:14:03 +01:00
{ " 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 } ,
2001-06-23 21:58:32 +02:00
2004-05-03 12:09:18 +02:00
{ " alsa " , " -alsa has been removed. Remove it from your config file. \n " ,
2002-01-15 00:54:31 +01:00
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2004-05-03 12:09:18 +02:00
{ " noalsa " , " -noalsa has been removed. Remove it from your config file. \n " ,
2002-01-15 00:54:31 +01:00
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-12-23 01:33:22 +01:00
{ " edlout " , & edl_output_filename , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2001-06-23 21:58:32 +02:00
2008-08-04 08:16:23 +02:00
# ifdef CONFIG_X11
2002-05-04 23:26:45 +02:00
{ " display " , & mDisplayName , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
# endif
2001-11-02 01:32:35 +01:00
2002-05-04 23:26:45 +02:00
// -vo png only:
2008-08-05 10:47:51 +02:00
# ifdef CONFIG_PNG
2006-11-14 12:14:03 +01:00
{ " z " , " -z has been removed. Use -vo png:z=<0-9> instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2001-12-02 21:03:26 +01:00
# endif
2002-05-04 23:26:45 +02:00
// -vo jpeg only:
2008-08-05 10:47:51 +02:00
# ifdef CONFIG_JPEG
2006-11-14 12:14:03 +01:00
{ " jpeg " , " -jpeg has been removed. Use -vo jpeg:<options> instead. \n " ,
2004-09-05 00:59:33 +02:00
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-04-16 13:21:59 +02:00
# endif
2002-05-04 23:26:45 +02:00
// -vo sdl only:
2005-03-01 04:51:48 +01:00
{ " sdl " , " Use -vo sdl:driver=<driver> instead of -vo sdl -sdl driver. \n " ,
2002-01-15 00:54:31 +01:00
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2006-11-14 12:14:03 +01:00
{ " 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 } ,
2002-05-04 23:26:45 +02:00
// -ao sdl only:
2004-05-03 12:09:18 +02:00
{ " sdla " , " Use -ao sdl:driver instead of -ao sdl -sdla driver. \n " ,
2002-01-15 00:54:31 +01:00
CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
2008-08-02 19:38:11 +02:00
# if defined(CONFIG_FBDEV) || defined(CONFIG_VESA)
2003-10-27 01:23:39 +01: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 } ,
2002-09-10 22:40:49 +02:00
# endif
2008-08-02 19:38:11 +02:00
# ifdef CONFIG_FBDEV
2002-05-04 23:26:45 +02: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 14:57:42 +01:00
# endif
2008-08-02 19:38:11 +02:00
# ifdef CONFIG_DIRECTFB
2002-11-10 14:57:42 +01:00
# if DIRECTFBVERSION > 912
2006-11-14 12:14:03 +01:00
{ " dfbopts " , " -dfbopts has been removed. Use -vf directfb:dfbopts=... instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2002-11-10 14:57:42 +01:00
# endif
2002-05-04 23:26:45 +02:00
# endif
// force window width/height or resolution (with -vm)
2002-01-15 00:55:51 +01:00
{ " x " , & opt_screen_size_x , CONF_TYPE_INT , CONF_RANGE , 0 , 4096 , NULL } ,
{ " y " , & opt_screen_size_y , CONF_TYPE_INT , CONF_RANGE , 0 , 4096 , NULL } ,
2002-05-04 23:26:45 +02:00
// set screen dimensions (when not detectable or virtual!=visible)
2002-11-12 02:56:42 +01:00
{ " screenw " , & vo_screenwidth , CONF_TYPE_INT , CONF_RANGE | CONF_OLD , 0 , 4096 , NULL } ,
{ " screenh " , & vo_screenheight , CONF_TYPE_INT , CONF_RANGE | CONF_OLD , 0 , 4096 , NULL } ,
2002-10-23 18:52:54 +02:00
// Geometry string
{ " geometry " , & vo_geometry , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2008-01-16 10:30:28 +01:00
// set aspect ratio of monitor - useful for 16:9 TV-out
2007-07-29 00:42:20 +02:00
{ " monitoraspect " , & force_monitor_aspect , CONF_TYPE_FLOAT , CONF_RANGE , 0.0 , 9.0 , NULL } ,
2007-04-28 01:16:45 +02:00
{ " monitorpixelaspect " , & monitor_pixel_aspect , CONF_TYPE_FLOAT , CONF_RANGE , 0.2 , 9.0 , NULL } ,
2002-05-04 23:26:45 +02:00
// video mode switching: (x11,xv,dga)
2002-01-15 00:54:31 +01:00
{ " vm " , & vidmode , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " novm " , & vidmode , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
// start in fullscreen mode:
2002-01-15 00:54:31 +01:00
{ " fs " , & fullscreen , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nofs " , & fullscreen , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
// set fullscreen switch method (workaround for buggy WMs)
2004-05-03 12:09:18 +02:00
{ " 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 } ,
2002-05-13 00:17:28 +02:00
{ " fsmode-dontuse " , & vo_fsmode , CONF_TYPE_INT , CONF_RANGE , 0 , 31 , NULL } ,
2002-05-04 23:26:45 +02:00
// set bpp (x11+vm, dga, fbdev, vesa, svga?)
{ " bpp " , & vo_dbpp , CONF_TYPE_INT , CONF_RANGE , 0 , 32 , NULL } ,
2003-10-03 20:13:45 +02:00
{ " colorkey " , & vo_colorkey , CONF_TYPE_INT , 0 , 0 , 0 , NULL } ,
2003-10-22 15:22:00 +02:00
{ " nocolorkey " , & vo_colorkey , CONF_TYPE_FLAG , 0 , 0 , 0x1000000 , NULL } ,
2002-01-15 00:54:31 +01:00
{ " double " , & vo_doublebuffering , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nodouble " , & vo_doublebuffering , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
// wait for v-sync (vesa)
2002-02-12 16:06:04 +01:00
{ " vsync " , & vo_vsync , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " novsync " , & vo_vsync , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2007-07-29 00:46:10 +02:00
{ " panscan " , & vo_panscan , CONF_TYPE_FLOAT , CONF_RANGE , - 1.0 , 1.0 , NULL } ,
2005-09-27 10:32:37 +02:00
{ " panscanrange " , & vo_panscanrange , CONF_TYPE_FLOAT , CONF_RANGE , - 19.0 , 99.0 , NULL } ,
2002-05-04 23:26:45 +02:00
2002-09-28 22:09:14 +02:00
{ " grabpointer " , & vo_grabpointer , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nograbpointer " , & vo_grabpointer , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2004-02-29 21:33:07 +01:00
2004-03-13 17:48:52 +01: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 } ,
2004-12-21 21:33:51 +01:00
{ " wid " , & WinID , CONF_TYPE_INT , 0 , 0 , 0 , NULL } ,
2008-08-04 08:16:23 +02:00
# ifdef CONFIG_X11
2002-05-04 23:26:45 +02:00
// x11,xv,xmga,xvidix
2006-11-14 12:14:03 +01:00
{ " icelayer " , " -icelayer has been removed. Use -fstype layer:<number> instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2003-10-27 01:23:39 +01:00
{ " 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 } ,
2003-02-08 10:08:11 +01:00
{ " fstype " , & vo_fstype_list , CONF_TYPE_STRING_LIST , 0 , 0 , 0 , NULL } ,
2004-07-23 15:00:16 +02:00
# endif
2008-01-07 13:30:15 +01:00
{ " heartbeat-cmd " , & heartbeat_cmd , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " 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 15:00:16 +02:00
2006-04-16 15:38:28 +02:00
{ " xineramascreen " , & xinerama_screen , CONF_TYPE_INT , CONF_RANGE , - 2 , 32 , NULL } ,
2002-05-04 23:26:45 +02:00
2002-07-24 19:25:13 +02:00
{ " brightness " , & vo_gamma_brightness , CONF_TYPE_INT , CONF_RANGE , - 100 , 100 , NULL } ,
{ " saturation " , & vo_gamma_saturation , CONF_TYPE_INT , CONF_RANGE , - 100 , 100 , NULL } ,
{ " contrast " , & vo_gamma_contrast , CONF_TYPE_INT , CONF_RANGE , - 100 , 100 , NULL } ,
{ " hue " , & vo_gamma_hue , CONF_TYPE_INT , CONF_RANGE , - 100 , 100 , NULL } ,
2004-05-01 16:52:15 +02:00
{ " keepaspect " , & vo_keepaspect , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nokeepaspect " , & vo_keepaspect , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
// direct rendering (decoding to video out buffer)
2002-03-20 16:39:08 +01:00
{ " dr " , & vo_directrendering , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
{ " nodr " , & vo_directrendering , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2006-11-14 12:14:03 +01:00
{ " 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 23:26:45 +02:00
2008-08-02 19:38:11 +02:00
# ifdef CONFIG_AA
2002-05-04 23:26:45 +02:00
// -vo aa
2006-11-14 12:14:03 +01:00
{ " aa* " , " -aa* has been removed. Use -vo aa:suboption instead. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2001-08-14 21:00:00 +02:00
# endif
2008-08-03 17:21:40 +02:00
# ifdef CONFIG_ZR
2002-05-04 23:26:45 +02:00
// -vo zr
2002-01-19 17:59:59 +01:00
{ " zr* " , vo_zr_parseoption , CONF_TYPE_FUNC_FULL , 0 , 0 , 0 , & vo_zr_revertoption } ,
2002-01-17 02:28:20 +01:00
# endif
2008-08-03 17:21:40 +02:00
# ifdef CONFIG_DXR2
2002-10-23 19:21:01 +02:00
{ " dxr2 " , & dxr2_opts , CONF_TYPE_SUBCONFIG , 0 , 0 , 0 , NULL } ,
# endif
2002-08-05 02:39:07 +02:00
2002-05-04 23:26:45 +02:00
//---------------------- mplayer-only options ------------------------
2006-10-15 23:27:15 +02:00
{ " use-filedir-conf " , & use_filedir_conf , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2006-10-27 21:19:40 +02:00
{ " nouse-filedir-conf " , & use_filedir_conf , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2008-08-07 14:20:50 +02:00
# ifdef CONFIG_CRASH_DEBUG
2004-10-29 01:25:18 +02: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 } ,
# endif
2003-01-02 17:51:19 +01:00
{ " osdlevel " , & osd_level , CONF_TYPE_INT , CONF_RANGE , 0 , 3 , NULL } ,
2005-11-16 17:51:48 +01:00
{ " osd-duration " , & osd_duration , CONF_TYPE_INT , CONF_MIN , 0 , 0 , NULL } ,
2008-07-30 20:07:19 +02:00
# ifdef CONFIG_MENU
2002-11-15 00:49:05 +01: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 } ,
2004-09-15 15:37:49 +02:00
{ " menu-startup " , & menu_startup , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2007-05-07 18:46:24 +02:00
{ " menu-keepdir " , & menu_keepdir , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2007-05-29 20:49:38 +02:00
{ " menu-chroot " , & menu_chroot , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2008-08-07 12:36:07 +02:00
# ifdef CONFIG_FRIBIDI
2007-05-07 17:59:53 +02: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 12:36:07 +02:00
# endif /* CONFIG_FRIBIDI */
2002-11-15 00:49:05 +01:00
# else
2004-05-03 12:09:18 +02:00
{ " menu " , " OSD menu support was not compiled in. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2008-07-30 20:07:19 +02:00
# endif /* CONFIG_MENU */
2002-05-04 23:26:45 +02:00
2004-05-03 12:09:18 +02:00
// these should be moved to -common, and supported in MEncoder
2002-05-04 23:26:45 +02:00
{ " vobsub " , & vobsub_name , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
{ " vobsubid " , & vobsub_id , CONF_TYPE_INT , CONF_RANGE , 0 , 31 , NULL } ,
2008-07-30 14:01:30 +02:00
# ifdef CONFIG_UNRAR_EXEC
2007-12-14 09:16:39 +01:00
{ " unrarexec " , & unrar_executable , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
# endif
2002-05-04 23:26:45 +02:00
{ " sstep " , & step_sec , CONF_TYPE_INT , CONF_MIN , 0 , 0 , NULL } ,
{ " 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 } ,
{ " autoq " , & auto_quality , CONF_TYPE_INT , CONF_RANGE , 0 , 100 , NULL } ,
{ " benchmark " , & benchmark , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
// dump some stream out instead of playing the file
2004-05-03 12:09:18 +02:00
// this really should be in MEncoder instead of MPlayer... -> TODO
2002-05-04 23:26:45 +02:00
{ " 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 } ,
2002-05-27 19:30:46 +02:00
{ " dumpsrtsub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 6 , NULL } ,
2002-09-21 19:23:46 +02:00
{ " dumpmicrodvdsub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 7 , NULL } ,
2002-12-05 00:58:38 +01:00
{ " dumpjacosub " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 8 , NULL } ,
2002-12-05 01:07:59 +01:00
{ " dumpsami " , & stream_dump_type , CONF_TYPE_FLAG , 0 , 0 , 9 , NULL } ,
2002-05-04 23:26:45 +02:00
2008-08-07 10:58:07 +02:00
# ifdef CONFIG_LIRC
2002-10-28 20:31:04 +01:00
{ " lircconf " , & lirc_configfile , CONF_TYPE_STRING , CONF_GLOBAL , 0 , 0 , NULL } ,
2001-11-02 01:32:35 +01:00
# endif
2006-11-10 17:39:44 +01:00
{ " gui " , " The -gui option will only work as the first command line argument. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , ( void * ) 1 } ,
{ " nogui " , " The -nogui option will only work as the first command line argument. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , ( void * ) 1 } ,
2001-08-14 21:00:00 +02:00
2008-07-30 15:44:59 +02:00
# ifdef CONFIG_GUI
2002-01-15 00:55:51 +01:00
{ " skin " , & skinName , CONF_TYPE_STRING , CONF_GLOBAL , 0 , 0 , NULL } ,
2003-02-06 00:02:35 +01:00
{ " enqueue " , & enqueue , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " noenqueue " , & enqueue , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2003-02-07 19:06:16 +01:00
{ " guiwid " , & guiWinID , CONF_TYPE_INT , 0 , 0 , 0 , NULL } ,
2001-09-07 23:04:14 +02:00
# endif
2001-11-02 01:32:35 +01:00
2007-07-09 16:51:47 +02:00
{ " noloop " , & mpctx_s . loop_times , CONF_TYPE_FLAG , 0 , 0 , - 1 , NULL } ,
{ " loop " , & mpctx_s . loop_times , CONF_TYPE_INT , CONF_RANGE , - 1 , 10000 , NULL } ,
2002-01-15 00:55:51 +01:00
{ " playlist " , NULL , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2002-05-04 23:26:45 +02:00
// a-v sync stuff:
2008-02-03 13:14:29 +01:00
{ " correct-pts " , & user_correct_pts , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2008-05-21 17:11:49 +02:00
{ " nocorrect-pts " , & user_correct_pts , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2002-10-02 00:29:04 +02:00
{ " noautosync " , & autosync , CONF_TYPE_FLAG , 0 , 0 , - 1 , NULL } ,
{ " autosync " , & autosync , CONF_TYPE_INT , CONF_RANGE , 0 , 10000 , NULL } ,
2002-09-24 00:12:29 +02:00
// {"dapsync", &dapsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
// {"nodapsync", &dapsync, CONF_TYPE_FLAG, 0, 1, 0, NULL},
2002-01-15 00:54:31 +01:00
{ " softsleep " , & softsleep , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2002-03-12 19:02:02 +01:00
# ifdef HAVE_RTC
{ " nortc " , & nortc , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " rtc " , & nortc , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2004-06-28 14:17:36 +02:00
{ " rtc-device " , & rtc_device , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2002-03-12 19:02:02 +01:00
# endif
2005-11-16 17:51:48 +01:00
{ " term-osd " , & term_osd , CONF_TYPE_FLAG , 0 , 0 , 1 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " noterm-osd " , & term_osd , CONF_TYPE_FLAG , 0 , 1 , 0 , NULL } ,
2005-11-16 17:51:48 +01:00
{ " term-osd-esc " , & term_osd_esc , CONF_TYPE_STRING , 0 , 0 , 1 , NULL } ,
2006-03-22 01:19:02 +01:00
{ " playing-msg " , & playing_msg , CONF_TYPE_STRING , 0 , 0 , 0 , NULL } ,
2005-11-16 17:51:48 +01:00
2002-05-04 23:26:45 +02:00
{ " slave " , & slave_mode , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2005-09-02 10:44:55 +02:00
{ " idle " , & player_idle_mode , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " noidle " , & player_idle_mode , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2004-07-14 11:27:04 +02:00
{ " use-stdin " , " -use-stdin has been renamed to -noconsolecontrols, use that instead. " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2004-12-01 13:22:39 +01:00
{ " key-fifo-size " , & key_fifo_size , CONF_TYPE_INT , CONF_RANGE , 2 , 65000 , NULL } ,
2004-07-14 11:27:04 +02:00
{ " noconsolecontrols " , & noconsolecontrols , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " consolecontrols " , & noconsolecontrols , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2006-09-16 17:48:56 +02:00
{ " mouse-movements " , & enable_mouse_movements , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2007-06-08 09:49:03 +02:00
{ " nomouse-movements " , & enable_mouse_movements , CONF_TYPE_FLAG , CONF_GLOBAL , 1 , 0 , NULL } ,
2007-01-18 20:30:02 +01:00
{ " doubleclick-time " , & doubleclick_time , CONF_TYPE_INT , CONF_RANGE , 0 , 1000 , NULL } ,
2008-07-30 14:01:30 +02:00
# ifdef CONFIG_TV
2007-08-26 14:12:02 +02:00
{ " tvscan " , tvscan_conf , CONF_TYPE_SUBCONFIG , 0 , 0 , 0 , NULL } ,
2007-08-23 18:09:30 +02:00
# else
{ " tvscan " , " MPlayer was compiled without TV interface support. \n " , CONF_TYPE_PRINT , 0 , 0 , 0 , NULL } ,
2008-07-30 14:01:30 +02:00
# endif /* CONFIG_TV */
2002-05-04 23:26:45 +02:00
2008-04-11 11:48:36 +02:00
# include "cfg-common-opts.h"
2006-03-22 17:35:17 +01:00
{ " list-properties " , & list_properties , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , 1 , NULL } ,
2006-08-04 20:46:32 +02:00
{ " identify " , & mp_msg_levels [ MSGT_IDENTIFY ] , CONF_TYPE_FLAG , CONF_GLOBAL , 0 , MSGL_V , NULL } ,
2002-01-15 00:55:51 +01:00
{ " -help " , help_text , CONF_TYPE_PRINT , CONF_NOCFG | CONF_GLOBAL , 0 , 0 , NULL } ,
{ " help " , help_text , CONF_TYPE_PRINT , CONF_NOCFG | CONF_GLOBAL , 0 , 0 , NULL } ,
{ " h " , help_text , CONF_TYPE_PRINT , CONF_NOCFG | CONF_GLOBAL , 0 , 0 , NULL } ,
2005-02-23 02:37:03 +01:00
{ " vd " , vd_conf , CONF_TYPE_SUBCONFIG , 0 , 0 , 0 , NULL } ,
2002-01-15 00:54:31 +01:00
{ NULL , NULL , 0 , 0 , 0 , 0 , NULL }
2001-03-19 00:32:31 +01:00
} ;
2008-01-01 22:35:58 +01:00
2008-02-22 10:09:46 +01:00
# endif /* MPLAYER_CFG_MPLAYER_H */
2008-01-01 22:35:58 +01:00