annotate cfg-mplayer.h @ 385:3360c39a6bb7

- added -bpp switch (only takes effect if IMGFMT_BGR) to select the desired depth (15,16,24,32) by querying libvo for just this depth (if supported by codec)
author acki2
date Fri, 13 Apr 2001 11:15:25 +0000
parents 6e813c134226
children ccb5ebfaaeac
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;
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
9 extern int fb_mode_depth;
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
10 #endif
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
11
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
12 struct config conf[]={
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
13 /* name, pointer, type, flags, min, max */
162
effc62af528c new option: -include
szabii
parents: 153
diff changeset
14 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
15 {"o", "Option -o has been renamed to -vo (video-out), use -vo !\n",
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
16 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
17 {"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
18 {"dsp", &dsp, CONF_TYPE_STRING, 0, 0, 0},
225
62ec84961b27 vo_fbdev added
szabii
parents: 215
diff changeset
19 #ifdef HAVE_FBDEV
62ec84961b27 vo_fbdev added
szabii
parents: 215
diff changeset
20 {"fb", &fb_dev_name, CONF_TYPE_STRING, 0, 0, 0},
360
fd152aa6fcf3 -fbmode/-fbmodecfg
szabii
parents: 337
diff changeset
21 {"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0},
fd152aa6fcf3 -fbmode/-fbmodecfg
szabii
parents: 337
diff changeset
22 {"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0},
363
f02474901080 -fbdepth added
szabii
parents: 360
diff changeset
23 {"fbdepth", &fb_mode_depth, CONF_TYPE_INT, CONF_RANGE, 15, 32},
225
62ec84961b27 vo_fbdev added
szabii
parents: 215
diff changeset
24 #endif
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
25 {"encode", &encode_name, CONF_TYPE_STRING, 0, 0, 0},
258
66017e126280 subtitles (.sub files) support
arpi_esp
parents: 225
diff changeset
26 {"sub", &sub_name, CONF_TYPE_STRING, 0, 0, 0},
66017e126280 subtitles (.sub files) support
arpi_esp
parents: 225
diff changeset
27 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0},
66017e126280 subtitles (.sub files) support
arpi_esp
parents: 225
diff changeset
28 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0},
212
7034ef1f685d new option: -font
arpi_esp
parents: 207
diff changeset
29 {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0},
215
09d565842a33 font alpha resampling, see -ffactor
arpi_esp
parents: 212
diff changeset
30 {"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0},
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
31 {"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
32 {"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0},
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
33 {"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
34 {"ss", &seek_to_sec, CONF_TYPE_INT, CONF_MIN, 0, 0},
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
35 {"sound", &has_audio, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
36 {"nosound", &has_audio, CONF_TYPE_FLAG, 0, 1, 0},
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
37 {"abs", &audio_buffer_size, CONF_TYPE_INT, CONF_MIN, 0, 0},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
38 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0},
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
39 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
40 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
41 {"alsa", &alsa, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
42 {"noalsa", &alsa, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
43 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
44 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0},
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
45 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
46 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 256},
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 258
diff changeset
47 // {"auds", &avi_header.audio_codec, CONF_TYPE_STRING, 0, 0, 0},
828ec81e0d64 codecs.conf support
arpi_esp
parents: 258
diff changeset
48 // {"vids", &avi_header.video_codec, CONF_TYPE_STRING, 0, 0, 0},
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
49 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
50 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
51 {"afm", &audio_format, CONF_TYPE_INT, CONF_RANGE, 1, 6},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
52 {"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
53 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
54 CONF_TYPE_PRINT, 0, 0, 0},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
55 {"pp", &divx_quality, CONF_TYPE_INT, CONF_RANGE, 0, 63},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
56 {"br", &encode_bitrate, CONF_TYPE_INT, CONF_RANGE, 10000, 10000000},
337
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
57
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
58 {"x", &screen_size_x, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
59 {"y", &screen_size_y, CONF_TYPE_INT, CONF_RANGE, 1, 4096},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
60 {"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
61 {"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1},
337
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
62 {"novm", &vidmode, CONF_TYPE_FLAG, 0, 1, 0},
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
63 {"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
64 {"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0},
337
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
65 {"zoom", &softzoom, CONF_TYPE_FLAG, 0, 0, 1},
3ca0b1b739a5 changed fs+vm+zoom flags for libvo
arpi_esp
parents: 303
diff changeset
66 {"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0},
385
3360c39a6bb7 - added -bpp switch (only takes effect if IMGFMT_BGR) to select the desired depth
acki2
parents: 378
diff changeset
67
3360c39a6bb7 - added -bpp switch (only takes effect if IMGFMT_BGR) to select the desired depth
acki2
parents: 378
diff changeset
68 {"bpp", &user_bpp, CONF_TYPE_INT, CONF_RANGE, 0, 32},
3360c39a6bb7 - added -bpp switch (only takes effect if IMGFMT_BGR) to select the desired depth
acki2
parents: 378
diff changeset
69
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
70 {"idx", &no_index, CONF_TYPE_FLAG, 0, 1, 0},
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
71 {"noidx", &no_index, CONF_TYPE_FLAG, 0, 0, 1},
153
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
72 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
73 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
74 {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
75 {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
8e55121885b2 new configfile/cmdline parser
arpi_esp
parents: 151
diff changeset
76 {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
147
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
77 {NULL, NULL, 0, 0, 0, 0}
0a0d7dd8fb51 new command line/config file parser
szabii
parents:
diff changeset
78 };
378
6e813c134226 variables related to fbdev moved to cfg-mplayer.h
szabii
parents: 363
diff changeset
79