annotate cfg-mplayer.h @ 617:33b559940fb4

*** empty log message ***
author se7encode
date Tue, 24 Apr 2001 12:21:42 +0000
parents 96621b6b7f9f
children 550ea1eba1a1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
1 /*
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
2 * config for cfgparser
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
3 */
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
4
378
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
5 #ifdef HAVE_FBDEV
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
6 extern char *fb_dev_name;
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
7 extern char *fb_mode_cfgfile;
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
8 extern char *fb_mode_name;
448
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
9 extern char *monitor_hfreq_str;
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
10 extern char *monitor_vfreq_str;
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
11 extern char *monitor_dotclock_str;
378
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
12 #endif
526
e537bdec1ecc added png out support (-z switch)
atmosfear
parents: 515
diff changeset
13 #ifdef HAVE_PNG
e537bdec1ecc added png out support (-z switch)
atmosfear
parents: 515
diff changeset
14 extern int z_compression;
e537bdec1ecc added png out support (-z switch)
atmosfear
parents: 515
diff changeset
15 #endif
585
96621b6b7f9f added: extern int vo_dbpp
arpi_esp
parents: 570
diff changeset
16 extern int vo_dbpp;
378
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
17
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
18 struct config conf[]={
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
19 /* name, pointer, type, flags, min, max */
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
20 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
21 {"o", "Option -o has been renamed to -vo (video-out), use -vo !\n",
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
22 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
23 {"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
24 {"dsp", &dsp, CONF_TYPE_STRING, 0, 0, 0},
460
2056ddd20c50 add mixer support
pontscho
parents: 458
diff changeset
25 {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0},
2056ddd20c50 add mixer support
pontscho
parents: 458
diff changeset
26 {"master", &mixer_usemaster, CONF_TYPE_FLAG, 0, 0, 1},
492
888a85621f50 preliminary DVD support using libcss
lgb
parents: 460
diff changeset
27 #ifdef HAVE_LIBCSS
888a85621f50 preliminary DVD support using libcss
lgb
parents: 460
diff changeset
28 {"dvd", &dvd_device, CONF_TYPE_STRING, 0, 0, 0},
546
22ed5f5821e2 command line requested DVD key support for Arpi :)
lgb
parents: 526
diff changeset
29 {"dvdkey", &dvdimportkey, CONF_TYPE_STRING, 0, 0, 0},
492
888a85621f50 preliminary DVD support using libcss
lgb
parents: 460
diff changeset
30 #else
888a85621f50 preliminary DVD support using libcss
lgb
parents: 460
diff changeset
31 {"dvd", "DVD support was not compiled in. See file DOCS/DVD.\n",
888a85621f50 preliminary DVD support using libcss
lgb
parents: 460
diff changeset
32 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0},
888a85621f50 preliminary DVD support using libcss
lgb
parents: 460
diff changeset
33 #endif
888a85621f50 preliminary DVD support using libcss
lgb
parents: 460
diff changeset
34
225
62ec84961b27 vo_fbdev added
szabii
parents: 215
diff changeset
35 #ifdef HAVE_FBDEV
448
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
36 {"fb", &fb_dev_name, CONF_TYPE_STRING, 0, 0, 0},
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
37 {"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0},
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
38 {"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0},
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
39 {"monitor_hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0},
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
40 {"monitor_vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0},
198b46b739d8 qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
arpi_esp
parents: 445
diff changeset
41 {"monitor_dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0},
225
62ec84961b27 vo_fbdev added
szabii
parents: 215
diff changeset
42 #endif
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
43 {"encode", &encode_name, CONF_TYPE_STRING, 0, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
44 {"sub", &sub_name, CONF_TYPE_STRING, 0, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
45 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
46 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0},
515
d82c71fefdda add noautosub option
pontscho
parents: 492
diff changeset
47 {"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0},
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
48 {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
49 {"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
50 {"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
51 {"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
52 {"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
53 // {"ss", &seek_to_sec, CONF_TYPE_INT, CONF_MIN, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
54 {"sound", &has_audio, CONF_TYPE_FLAG, 0, 0, 1},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
55 {"nosound", &has_audio, CONF_TYPE_FLAG, 0, 1, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
56 {"abs", &audio_buffer_size, CONF_TYPE_INT, CONF_MIN, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
57 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
58 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
59 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
60 {"alsa", &alsa, CONF_TYPE_FLAG, 0, 0, 1},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
61 {"noalsa", &alsa, CONF_TYPE_FLAG, 0, 1, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
62 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
63 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0},
552
c2a449f90087 dvd sub support reading
arpi_esp
parents: 549
diff changeset
64
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
65 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
66 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
552
c2a449f90087 dvd sub support reading
arpi_esp
parents: 549
diff changeset
67 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 32},
549
c97496b240c1 new options: -dumpaudio and -dumpvideo
arpi_esp
parents: 546
diff changeset
68
c97496b240c1 new options: -dumpaudio and -dumpvideo
arpi_esp
parents: 546
diff changeset
69 {"dumpfile", &stream_dump_name, CONF_TYPE_STRING, 0, 0, 0},
c97496b240c1 new options: -dumpaudio and -dumpvideo
arpi_esp
parents: 546
diff changeset
70 {"dumpaudio", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 1},
c97496b240c1 new options: -dumpaudio and -dumpvideo
arpi_esp
parents: 546
diff changeset
71 {"dumpvideo", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 2},
c97496b240c1 new options: -dumpaudio and -dumpvideo
arpi_esp
parents: 546
diff changeset
72
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
73 // {"auds", &avi_header.audio_codec, CONF_TYPE_STRING, 0, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
74 // {"vids", &avi_header.video_codec, CONF_TYPE_STRING, 0, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
75 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
76 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
77 {"afm", &audio_format, CONF_TYPE_INT, CONF_RANGE, 1, 6},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
78 {"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
79 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
80 CONF_TYPE_PRINT, 0, 0, 0},
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
81 {"pp", &divx_quality, CONF_TYPE_INT, CONF_RANGE, 0, 63},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
82 {"br", &encode_bitrate, CONF_TYPE_INT, CONF_RANGE, 10000, 10000000},
526
e537bdec1ecc added png out support (-z switch)
atmosfear
parents: 515
diff changeset
83 #ifdef HAVE_PNG
552
c2a449f90087 dvd sub support reading
arpi_esp
parents: 549
diff changeset
84 {"z", &z_compression, CONF_TYPE_INT, CONF_RANGE, 0, 10},
526
e537bdec1ecc added png out support (-z switch)
atmosfear
parents: 515
diff changeset
85 #endif
337
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
86
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
87 {"x", &screen_size_x, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
88 {"y", &screen_size_y, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
89 {"xy", &screen_size_xy, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
207
8626c23f4a47 Addes a -vm option, which when used together with -fs and -vo x11 will
mgraffam
parents: 162
diff changeset
90 {"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1},
337
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
91 {"novm", &vidmode, CONF_TYPE_FLAG, 0, 1, 0},
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
92 {"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
93 {"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0},
337
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
94 {"zoom", &softzoom, CONF_TYPE_FLAG, 0, 0, 1},
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
95 {"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0},
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
96
388
ccb5ebfaaeac -bpp changes
arpi_esp
parents: 385
diff changeset
97 {"bpp", &vo_dbpp, CONF_TYPE_INT, CONF_RANGE, 0, 32},
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
98
570
839b2255c43b -forceidx added
arpi_esp
parents: 565
diff changeset
99 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0},
565
6e747808386e changed behavior or -idx/-noidx
arpi_esp
parents: 552
diff changeset
100 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1},
570
839b2255c43b -forceidx added
arpi_esp
parents: 565
diff changeset
101 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2},
565
6e747808386e changed behavior or -idx/-noidx
arpi_esp
parents: 552
diff changeset
102
458
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
103 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
104 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
105 {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
106 {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
107 {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
49b0474b2e26 I really hope that you will learn how to use cvs, sooner or later...
arpi_esp
parents: 457
diff changeset
108 {NULL, NULL, 0, 0, 0, 0}
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
109 };
378
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
110