annotate cfg-common.h @ 3769:8398ffdc0a8e

JAF added
author arpi
date Wed, 26 Dec 2001 15:55:24 +0000
parents 1f9e0e08b3d7
children a14b3a600b81
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
1 #ifdef MAIN_CONF /* this will be included in conf[] */
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
2 // ------------------------- stream options --------------------
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
3
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
4 #ifdef USE_STREAM_CACHE
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
5 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 4, 65536},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
6 #else
3460
fac2acb51706 added new-lines to TYPE_PRINT options
alex
parents: 3409
diff changeset
7 {"cache", "MPlayer was compiled WITHOUT cache2 support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
8 #endif
3260
80e1e29e71e7 -vcd prints message if not supported
arpi
parents: 2941
diff changeset
9 #ifdef HAVE_VCD
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
10 {"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99},
3260
80e1e29e71e7 -vcd prints message if not supported
arpi
parents: 2941
diff changeset
11 #else
80e1e29e71e7 -vcd prints message if not supported
arpi
parents: 2941
diff changeset
12 {"vcd", "VCD support is NOT available on this system!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
80e1e29e71e7 -vcd prints message if not supported
arpi
parents: 2941
diff changeset
13 #endif
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
14 #ifdef USE_DVDREAD
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
15 {"dvd", &dvd_title, CONF_TYPE_INT, CONF_RANGE, 1, 99},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
16 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
17 {"chapter", &dvd_chapter, CONF_TYPE_INT, CONF_RANGE, 1, 99},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
18 #else
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
19 {"dvd", "MPlayer was compiled WITHOUT libdvdread support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
20 #endif
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
21
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
22 #ifdef HAVE_LIBCSS
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
23 {"dvdauth", &dvd_auth_device, CONF_TYPE_STRING, 0, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
24 {"dvdkey", &dvdimportkey, CONF_TYPE_STRING, 0, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
25 // {"dvd", "Option -dvd will be \"full disk\" mode, old meaning has been renamed to -dvdauth.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
26 #else
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
27 // {"dvd", "DVD support was not compiled in. See file DOCS/DVD.\n",
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
28 // CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
29 #ifdef USE_DVDREAD
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
30 {"dvdkey", "MPlayer was compiled with libdvdread support, this option not available.\n",
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
31 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
32 {"dvdauth", "MPlayer was compiled with libdvdread support! Use option -dvd !\n",
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
33 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
34 #else
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
35 {"dvdkey", "DVD support was not compiled in. See file DOCS/DVD.\n",
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
36 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
37 {"dvdauth", "DVD support was not compiled in. See file DOCS/DVD.\n",
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
38 CONF_TYPE_PRINT, CONF_NOCFG, 0 , 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
39 #endif
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
40 #endif
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
41
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
42 // ------------------------- demuxer options --------------------
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
43
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
44 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
45 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
46
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
47 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
48 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
49
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
50 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
51 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
52 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
53
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
54 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 255},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
55 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 255},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
56 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
57
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
58 // ------------------------- a-v sync options --------------------
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
59
2643
9d0a638e211a divx4 2-pass support, -frames option
arpi
parents: 2616
diff changeset
60 {"frames", &play_n_frames, CONF_TYPE_INT, CONF_MIN, 0, 0},
9d0a638e211a divx4 2-pass support, -frames option
arpi
parents: 2616
diff changeset
61
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
62 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
63 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
64 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
65
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
66 // ------------------------- codec/pp options --------------------
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
67
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
68 #ifdef USE_FAKE_MONO
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
69 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
70 #endif
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
71
3765
1f9e0e08b3d7 afm/vfm synced
alex
parents: 3503
diff changeset
72 {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 16}, // keep ranges in sync
1f9e0e08b3d7 afm/vfm synced
alex
parents: 3503
diff changeset
73 {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 14}, // with codec-cfg.c
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
74 {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
75 {"vc", &video_codec, CONF_TYPE_STRING, 0, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
76
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
77 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
78 CONF_TYPE_PRINT, 0, 0, 0},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
79 {"pp", &divx_quality, CONF_TYPE_INT, CONF_MIN, 0, 63},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
80 #ifdef HAVE_ODIVX_POSTPROCESS
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
81 {"oldpp", &use_old_pp, CONF_TYPE_FLAG, 0, 0, 1},
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
82 #else
3460
fac2acb51706 added new-lines to TYPE_PRINT options
alex
parents: 3409
diff changeset
83 {"oldpp", "MPlayer was compiled without opendivx library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
84 #endif
3272
7e4399d1eb65 horizontal up/downscale linear & cubic
michael
parents: 3260
diff changeset
85 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2},
2616
f96462d7453e common options moved out - for mencoder
arpi
parents:
diff changeset
86
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
87 #ifdef USE_TV
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
88 {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
2822
7679d983c52f displaying msg if no tv support
alex
parents: 2816
diff changeset
89 #else
3460
fac2acb51706 added new-lines to TYPE_PRINT options
alex
parents: 3409
diff changeset
90 {"tv", "MPlayer was compiled without TV Interface support\n", CONF_TYPE_PRINT, 0, 0, 0},
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
91 #endif
3502
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
92 {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
93
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
94 #else
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
95
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
96 #include "config.h"
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
97
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
98 #include "libmpdemux/tv.h"
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
99
2831
7746bf29000a tv.h has its own USE_TV check
arpi
parents: 2827
diff changeset
100 #ifdef USE_TV
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
101 struct config tvopts_conf[]={
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
102 {"on", &tv_param_on, CONF_TYPE_FLAG, 0, 0, 1},
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
103 {"driver", &tv_param_driver, CONF_TYPE_STRING, 0, 0, 0},
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
104 {"device", &tv_param_device, CONF_TYPE_STRING, 0, 0, 0},
2838
3e045cebc446 changed tv_param_freq to string
alex
parents: 2831
diff changeset
105 {"freq", &tv_param_freq, CONF_TYPE_STRING, 0, 0, 0},
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
106 {"channel", &tv_param_channel, CONF_TYPE_STRING, 0, 0, 0},
2941
60c1b7c0ea21 added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
alex
parents: 2838
diff changeset
107 {"chanlist", &tv_param_chanlist, CONF_TYPE_STRING, 0, 0, 0},
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
108 {"norm", &tv_param_norm, CONF_TYPE_STRING, 0, 0, 0},
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
109 {"width", &tv_param_width, CONF_TYPE_INT, 0, 0, 4096},
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
110 {"height", &tv_param_height, CONF_TYPE_INT, 0, 0, 4096},
2802
09d5c9834580 tv update
alex
parents: 2790
diff changeset
111 {"input", &tv_param_input, CONF_TYPE_INT, 0, 0, 20},
2816
190e713d8e07 supporting -tv outfmt
alex
parents: 2802
diff changeset
112 {"outfmt", &tv_param_outfmt, CONF_TYPE_STRING, 0, 0, 0},
3285
bd7bff4cb453 add tv fps support
alex
parents: 3272
diff changeset
113 {"fps", &tv_param_fps, CONF_TYPE_FLOAT, 0, 0, 100.0},
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
114 {NULL, NULL, 0, 0, 0, 0}
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
115 };
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
116 #endif
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
117
3502
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
118 /* VIVO demuxer options: */
3503
7aed2edd99ab -vivo version option added
alex
parents: 3502
diff changeset
119 extern int vivo_param_version;
3502
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
120 extern char *vivo_param_acodec;
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
121 extern int vivo_param_abitrate;
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
122 extern int vivo_param_samplerate;
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
123 extern int vivo_param_bytesperblock;
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
124 extern int vivo_param_width;
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
125 extern int vivo_param_height;
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
126 extern int vivo_param_vformat;
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
127
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
128 struct config vivoopts_conf[]={
3503
7aed2edd99ab -vivo version option added
alex
parents: 3502
diff changeset
129 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0},
3502
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
130 /* audio options */
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
131 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0},
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
132 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0},
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
133 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0},
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
134 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0},
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
135 /* video options */
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
136 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0},
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
137 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0},
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
138 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0},
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
139 {NULL, NULL, 0, 0, 0, 0}
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
140 };
1ff0ff94ac91 added -vivo subconfig
alex
parents: 3460
diff changeset
141
2790
98769cea155c added tv subsystem
alex
parents: 2643
diff changeset
142 #endif