2001-03-18 23:32:31 +00:00
|
|
|
/*
|
|
|
|
* config for cfgparser
|
|
|
|
*/
|
|
|
|
|
2001-04-12 20:37:25 +00:00
|
|
|
#ifdef HAVE_FBDEV
|
|
|
|
extern char *fb_dev_name;
|
|
|
|
extern char *fb_mode_cfgfile;
|
|
|
|
extern char *fb_mode_name;
|
2001-04-15 20:31:58 +00:00
|
|
|
extern char *monitor_hfreq_str;
|
|
|
|
extern char *monitor_vfreq_str;
|
|
|
|
extern char *monitor_dotclock_str;
|
2001-04-12 20:37:25 +00:00
|
|
|
#endif
|
2001-04-19 20:11:27 +00:00
|
|
|
#ifdef HAVE_PNG
|
|
|
|
extern int z_compression;
|
|
|
|
#endif
|
2001-04-25 20:44:30 +00:00
|
|
|
#ifdef HAVE_SDL
|
|
|
|
extern char *sdl_driver;
|
|
|
|
extern int sdl_noxv;
|
|
|
|
extern int sdl_forcexv;
|
|
|
|
#endif
|
2001-05-08 21:49:00 +00:00
|
|
|
#ifdef USE_FAKE_MONO
|
|
|
|
extern int fakemono; // defined in dec_audio.c
|
|
|
|
#endif
|
2001-04-25 20:44:30 +00:00
|
|
|
|
2001-04-23 03:38:17 +00:00
|
|
|
extern int vo_dbpp;
|
2001-04-26 15:50:45 +00:00
|
|
|
extern int osd_level;
|
2001-05-08 19:39:21 +00:00
|
|
|
extern int sub_unicode;
|
2001-04-12 20:37:25 +00:00
|
|
|
|
2001-03-18 23:32:31 +00:00
|
|
|
struct config conf[]={
|
2001-04-15 23:22:01 +00:00
|
|
|
/* name, pointer, type, flags, min, max */
|
|
|
|
{"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */
|
|
|
|
{"o", "Option -o has been renamed to -vo (video-out), use -vo !\n",
|
2001-03-19 03:45:49 +00:00
|
|
|
CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
{"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"dsp", &dsp, CONF_TYPE_STRING, 0, 0, 0},
|
2001-04-16 00:21:00 +00:00
|
|
|
{"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"master", &mixer_usemaster, CONF_TYPE_FLAG, 0, 0, 1},
|
2001-04-26 15:50:45 +00:00
|
|
|
{"osdlevel", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 2 },
|
2001-04-17 22:04:44 +00:00
|
|
|
#ifdef HAVE_LIBCSS
|
|
|
|
{"dvd", &dvd_device, CONF_TYPE_STRING, 0, 0, 0},
|
2001-04-20 14:32:09 +00:00
|
|
|
{"dvdkey", &dvdimportkey, CONF_TYPE_STRING, 0, 0, 0},
|
2001-04-17 22:04:44 +00:00
|
|
|
#else
|
|
|
|
{"dvd", "DVD support was not compiled in. See file DOCS/DVD.\n",
|
|
|
|
CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0},
|
|
|
|
#endif
|
|
|
|
|
2001-03-28 12:08:44 +00:00
|
|
|
#ifdef HAVE_FBDEV
|
2001-04-15 20:31:58 +00:00
|
|
|
{"fb", &fb_dev_name, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"monitor_hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"monitor_vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"monitor_dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0},
|
2001-03-28 12:08:44 +00:00
|
|
|
#endif
|
2001-04-15 23:22:01 +00:00
|
|
|
{"encode", &encode_name, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"sub", &sub_name, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0},
|
|
|
|
{"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0},
|
2001-04-18 20:45:42 +00:00
|
|
|
{"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0},
|
2001-05-08 19:39:21 +00:00
|
|
|
{"unicode", &sub_unicode, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"nounicode", &sub_unicode, CONF_TYPE_FLAG, 0, 1, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
{"font", &font_name, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0},
|
|
|
|
{"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0},
|
|
|
|
{"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0},
|
2001-04-26 22:10:25 +00:00
|
|
|
{"ss", &seek_to_sec, CONF_TYPE_INT, CONF_MIN, 0, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
{"sound", &has_audio, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"nosound", &has_audio, CONF_TYPE_FLAG, 0, 1, 0},
|
|
|
|
{"abs", &audio_buffer_size, CONF_TYPE_INT, CONF_MIN, 0, 0},
|
|
|
|
{"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0},
|
|
|
|
{"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0},
|
|
|
|
{"alsa", &alsa, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"noalsa", &alsa, CONF_TYPE_FLAG, 0, 1, 0},
|
|
|
|
{"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0},
|
2001-04-20 22:35:15 +00:00
|
|
|
|
2001-04-15 23:22:01 +00:00
|
|
|
{"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
|
|
|
|
{"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
|
2001-04-20 22:35:15 +00:00
|
|
|
{"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 32},
|
2001-05-08 21:49:00 +00:00
|
|
|
#ifdef USE_FAKE_MONO
|
|
|
|
{"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2},
|
|
|
|
#endif
|
2001-04-20 18:28:13 +00:00
|
|
|
|
|
|
|
{"dumpfile", &stream_dump_name, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"dumpaudio", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"dumpvideo", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 2},
|
|
|
|
|
2001-04-15 23:22:01 +00:00
|
|
|
// {"auds", &avi_header.audio_codec, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
// {"vids", &avi_header.video_codec, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10},
|
|
|
|
{"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
|
|
|
|
{"afm", &audio_format, CONF_TYPE_INT, CONF_RANGE, 1, 6},
|
2001-04-24 22:51:05 +00:00
|
|
|
{"dshow", &allow_dshow, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"nodshow", &allow_dshow, CONF_TYPE_FLAG, 0, 1, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
{"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99},
|
|
|
|
{"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
|
2001-03-19 03:45:49 +00:00
|
|
|
CONF_TYPE_PRINT, 0, 0, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
{"pp", &divx_quality, CONF_TYPE_INT, CONF_RANGE, 0, 63},
|
|
|
|
{"br", &encode_bitrate, CONF_TYPE_INT, CONF_RANGE, 10000, 10000000},
|
2001-04-19 20:11:27 +00:00
|
|
|
#ifdef HAVE_PNG
|
2001-04-20 22:35:15 +00:00
|
|
|
{"z", &z_compression, CONF_TYPE_INT, CONF_RANGE, 0, 10},
|
2001-04-19 20:11:27 +00:00
|
|
|
#endif
|
2001-04-25 20:44:30 +00:00
|
|
|
#ifdef HAVE_SDL
|
|
|
|
{"sdl", &sdl_driver, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"noxv", &sdl_noxv, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"forcexv", &sdl_forcexv, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
#endif
|
2001-04-15 23:22:01 +00:00
|
|
|
{"x", &screen_size_x, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
|
|
|
|
{"y", &screen_size_y, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
|
|
|
|
{"xy", &screen_size_xy, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
|
2001-03-24 21:34:08 +00:00
|
|
|
{"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1},
|
2001-04-11 00:35:57 +00:00
|
|
|
{"novm", &vidmode, CONF_TYPE_FLAG, 0, 1, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
{"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0},
|
2001-04-11 00:35:57 +00:00
|
|
|
{"zoom", &softzoom, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
|
2001-04-13 13:47:36 +00:00
|
|
|
{"bpp", &vo_dbpp, CONF_TYPE_INT, CONF_RANGE, 0, 32},
|
2001-04-15 23:22:01 +00:00
|
|
|
|
2001-04-21 20:45:17 +00:00
|
|
|
{"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0},
|
2001-04-22 01:35:18 +00:00
|
|
|
{"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1},
|
|
|
|
{"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2},
|
2001-04-21 20:45:17 +00:00
|
|
|
|
2001-04-15 23:22:01 +00:00
|
|
|
{"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100},
|
|
|
|
{"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0},
|
2001-05-09 14:17:55 +00:00
|
|
|
{"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
{"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
{"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
2001-04-15 23:22:01 +00:00
|
|
|
{NULL, NULL, 0, 0, 0, 0}
|
2001-03-18 23:32:31 +00:00
|
|
|
};
|
2001-04-12 20:37:25 +00:00
|
|
|
|