2790
|
1 #ifdef MAIN_CONF /* this will be included in conf[] */
|
2616
|
2 // ------------------------- stream options --------------------
|
|
3
|
|
4 #ifdef USE_STREAM_CACHE
|
4157
|
5 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 4, 65536, NULL},
|
2616
|
6 #else
|
4157
|
7 {"cache", "MPlayer was compiled WITHOUT cache2 support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2616
|
8 #endif
|
3260
|
9 #ifdef HAVE_VCD
|
4157
|
10 {"vcd", &vcd_track, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
|
3260
|
11 #else
|
4157
|
12 {"vcd", "VCD support is NOT available on this system!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
3260
|
13 #endif
|
2616
|
14 #ifdef USE_DVDREAD
|
4157
|
15 {"dvd", &dvd_title, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
|
|
16 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
|
|
17 {"chapter", &dvd_chapter, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
|
2616
|
18 #else
|
4157
|
19 {"dvd", "MPlayer was compiled WITHOUT libdvdread support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2616
|
20 #endif
|
|
21
|
|
22 #ifdef HAVE_LIBCSS
|
4157
|
23 {"dvdauth", &dvd_auth_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
24 {"dvdkey", &dvdimportkey, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
25 {"csslib", &css_so, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
2616
|
26 #else
|
4157
|
27 {"dvdauth", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
28 {"dvdkey", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
29 {"csslib", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2616
|
30 #endif
|
|
31
|
|
32 // ------------------------- demuxer options --------------------
|
|
33
|
4157
|
34 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
35 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
2616
|
36
|
4157
|
37 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
38 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
2616
|
39
|
4157
|
40 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0, NULL},
|
|
41 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL},
|
|
42 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL},
|
2616
|
43
|
4157
|
44 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
|
|
45 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
|
|
46 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
|
2616
|
47
|
|
48 // ------------------------- a-v sync options --------------------
|
|
49
|
4157
|
50 {"frames", &play_n_frames, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
|
2643
|
51
|
4157
|
52 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 10, NULL},
|
|
53 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0, NULL},
|
|
54 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
|
2616
|
55
|
|
56 // ------------------------- codec/pp options --------------------
|
|
57
|
|
58 #ifdef USE_FAKE_MONO
|
4157
|
59 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
|
2616
|
60 #endif
|
|
61
|
4157
|
62 {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 16, NULL}, // keep ranges in sync
|
|
63 {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 14, NULL}, // with codec-cfg.c
|
|
64 {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
65 {"vc", &video_codec, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
2616
|
66
|
|
67 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
|
4157
|
68 CONF_TYPE_PRINT, 0, 0, 0, NULL},
|
|
69 {"pp", &divx_quality, CONF_TYPE_INT, CONF_MIN, 0, 63, NULL},
|
|
70 {"npp", readPPOpt, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL},
|
2616
|
71 #ifdef HAVE_ODIVX_POSTPROCESS
|
4157
|
72 {"oldpp", &use_old_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2616
|
73 #else
|
4157
|
74 {"oldpp", "MPlayer was compiled without opendivx library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2616
|
75 #endif
|
4157
|
76 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL},
|
2616
|
77
|
2790
|
78 #ifdef USE_TV
|
4157
|
79 {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2822
|
80 #else
|
4157
|
81 {"tv", "MPlayer was compiled without TV Interface support\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
|
2790
|
82 #endif
|
4157
|
83 {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2790
|
84
|
|
85 #else
|
|
86
|
|
87 #include "config.h"
|
|
88
|
|
89 #include "libmpdemux/tv.h"
|
|
90
|
2831
|
91 #ifdef USE_TV
|
2790
|
92 struct config tvopts_conf[]={
|
4157
|
93 {"on", &tv_param_on, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
94 {"driver", &tv_param_driver, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
95 {"device", &tv_param_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
96 {"freq", &tv_param_freq, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
97 {"channel", &tv_param_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
98 {"chanlist", &tv_param_chanlist, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
99 {"norm", &tv_param_norm, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
100 {"width", &tv_param_width, CONF_TYPE_INT, 0, 0, 4096, NULL},
|
|
101 {"height", &tv_param_height, CONF_TYPE_INT, 0, 0, 4096, NULL},
|
|
102 {"input", &tv_param_input, CONF_TYPE_INT, 0, 0, 20, NULL},
|
|
103 {"outfmt", &tv_param_outfmt, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
104 {"fps", &tv_param_fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
|
|
105 {NULL, NULL, 0, 0, 0, 0, NULL}
|
2790
|
106 };
|
|
107 #endif
|
|
108
|
3502
|
109 /* VIVO demuxer options: */
|
3503
|
110 extern int vivo_param_version;
|
3502
|
111 extern char *vivo_param_acodec;
|
|
112 extern int vivo_param_abitrate;
|
|
113 extern int vivo_param_samplerate;
|
|
114 extern int vivo_param_bytesperblock;
|
|
115 extern int vivo_param_width;
|
|
116 extern int vivo_param_height;
|
|
117 extern int vivo_param_vformat;
|
|
118
|
|
119 struct config vivoopts_conf[]={
|
4157
|
120 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0, NULL},
|
3502
|
121 /* audio options */
|
4157
|
122 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
123 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
124 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
125 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0, NULL},
|
3502
|
126 /* video options */
|
4157
|
127 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
128 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
129 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
130 {NULL, NULL, 0, 0, 0, 0, NULL}
|
3502
|
131 };
|
|
132
|
2790
|
133 #endif
|